v2.0.0 introduces some breaking changes to standardize the API and improve maintainability. This guide will help you upgrade your application from v1.x to v2.x.Documentation Index
Fetch the complete documentation index at: https://docs.mcp-assistant.in/llms.txt
Use this file to discover all available pages before exploring further.
1. Storage API changes
In previous versions, session and connection management was handled through thestorage object. This has been renamed to sessions to better reflect its purpose and provide a more intuitive API.
Before (v1.x)
After (v2.0.0)
2. useMcp hook update
TheuseMcp React hook has been updated to use userId instead of identity, standardizing how we refer to user identifiers across the SDK.
Before (v1.x)
After (v2.0.0)
3. Database Schema Migrations
If you are using a database-backed storage solution such as Supabase, Neon, SQLite, or any other SQL backend, the schema has changed to reflect the newsessions and userId terminology.
You must run the provided database migrations to update your schema.
Migration scripts are located in the migrations directory of the mcp-ts repository (mcp-ts/migrations). Be sure to apply the appropriate migration script for your specific storage backend before deploying v2.0.0 to production.
For more detailed information, see the Storage Backends documentation.
