typescript-sdk/packages/client
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-06 20:29:58 +01:00
..
src fix(server): validate Content-Type by parsed media type instead of substring match (#2441) 2026-07-06 20:29:58 +01:00
test/client fix(server): validate Content-Type by parsed media type instead of substring match (#2441) 2026-07-06 20:29:58 +01:00
CHANGELOG.md Version Packages (beta) (#2416) 2026-07-02 13:26:04 +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) (#2416) 2026-07-02 13:26:04 +01:00
README.md chore: enter beta prerelease mode (#2402) 2026-06-30 23:05:07 +01:00
tsconfig.json v2: codemod iterations, canonical zod schema exports from sdk-shared (#2354) 2026-06-25 19:42:44 +01:00
tsdown.config.ts feat(packaging): ship CommonJS builds alongside ESM for v2 packages (#2405) 2026-07-01 19:40:37 +03: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