typescript-sdk/packages/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Pavlovschii 75dc7ea6e2
fix(server): reject a modern POST without the required MCP-Protocol-Version header (#2590)
Co-authored-by: Konstantin Konstantinov <konstantin@mach5technology.com>
Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
2026-08-17 09:31:47 +03:00
..
src fix(server): reject a modern POST without the required MCP-Protocol-Version header (#2590) 2026-08-17 09:31:47 +03:00
test fix(server): reject a modern POST without the required MCP-Protocol-Version header (#2590) 2026-08-17 09:31:47 +03:00
CHANGELOG.md Version Packages (#2555) 2026-07-28 00:52:57 +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 (#2555) 2026-07-28 00:52:57 +01:00
README.md docs: comprehensive GA pass — stable-release wording, released-spec links, install tags (#2566) 2026-07-27 23:32:17 +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 perf: add preloadSchemas() and warm wire schemas eagerly on workerd (#2483) 2026-07-13 17:27:22 +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

@modelcontextprotocol/server

The MCP (Model Context Protocol) TypeScript server SDK. Build MCP servers that expose tools, resources, and prompts.

Warning

v2 is the stable release line, implementing the 2026-07-28 MCP spec. Migrating from v1? Start with the migration guide.

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/server

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

Optional framework adapters: @modelcontextprotocol/express, @modelcontextprotocol/fastify, @modelcontextprotocol/hono, @modelcontextprotocol/node.

Documentation