typescript-sdk/packages/server
xiaoxue 7e65fec24a 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
..
src 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
test/server 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
CHANGELOG.md 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
README.md 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
eslint.config.mjs 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
package.json 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
tsconfig.json 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
tsdown.config.ts 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
typedoc.json 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00
vitest.config.js 同步完整源码 - 2026-05-25 2026-05-25 00:25:13 +08:00

README.md

@modelcontextprotocol/server

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

[!WARNING] This is an alpha release. Expect breaking changes until v2 stabilizes. We're publishing early to gather feedback — please try it and open issues — but we can't guarantee API stability yet. We'll aim to minimize disruption between alphas.

[!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@alpha

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

Documentation