typescript-sdk/packages/client
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-20 16:09:55 +01:00
..
src Align 2026-07-28 wire with spec PR #3002: serverInfo in result _meta, clientInfo optional (#2513) 2026-07-20 16:09:55 +01:00
test Align 2026-07-28 wire with spec PR #3002: serverInfo in result _meta, clientInfo optional (#2513) 2026-07-20 16:09:55 +01:00
CHANGELOG.md Version Packages (beta) (#2484) 2026-07-13 18:38:22 +01:00
eslint.config.mjs v2: codemod iterations, canonical zod schema exports from sdk-shared (#2354) 2026-06-25 19:42:44 +01:00
package.json Version Packages (beta) (#2484) 2026-07-13 18:38:22 +01:00
README.md chore: enter beta prerelease mode (#2402) 2026-06-30 23:05:07 +01:00
tsconfig.json refactor: move the schema source modules into @modelcontextprotocol/core (#2477) 2026-07-13 17:19:58 +01:00
tsdown.config.ts refactor: move the schema source modules into @modelcontextprotocol/core (#2477) 2026-07-13 17:19:58 +01:00
typedoc.json Add API documentation with GitHub Pages deployment (#1109) 2026-01-20 17:22:24 +02:00
vitest.config.js [v2] Мonorepo, sdk-client, sdk-server, sdk-core package split (#1279) 2025-12-19 14:19:02 +01:00
vitest.setup.js [v2] Мonorepo, sdk-client, sdk-server, sdk-core package split (#1279) 2025-12-19 14:19:02 +01:00

@modelcontextprotocol/client

The MCP (Model Context Protocol) TypeScript client SDK. Build MCP clients that connect to MCP servers.

Warning

This is a beta release. The API surface is settling but breaking changes remain possible until v2 stabilizes. Please try it and open issues — feedback during the beta directly shapes the stable release.

Note

This is v2 of the MCP TypeScript SDK. It replaces the monolithic @modelcontextprotocol/sdk package from v1. See the migration guide if you're coming from v1.

Install

npm install @modelcontextprotocol/client@beta

TypeScript ≥6.0 no longer auto-includes @types/* — add "types": ["node"] to your tsconfig.json compilerOptions (the published .d.mts references Buffer).

Documentation