typescript-sdk/packages/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Konstantin Konstantinov 5fc42e9be1
fix README.md badges and blockquote icon (#2022)
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
2026-05-22 13:49:17 +03:00
..
src fix: add | undefined to transport option callbacks for exactOptionalPropertyTypes (#1855) 2026-05-04 02:12:25 +01:00
test/server feat(compat): registerTool/registerPrompt accept raw Zod shape, auto-wrap with z.object() (#1901) 2026-04-29 16:34:01 +01:00
CHANGELOG.md Version Packages (alpha) (#1841) 2026-04-01 17:42:17 +01:00
eslint.config.mjs [v2] Мonorepo, sdk-client, sdk-server, sdk-core package split (#1279) 2025-12-19 14:19:02 +01:00
package.json refactor(client,server): move stdio transports to ./stdio subpath export (#1871) 2026-04-29 14:48:36 +01:00
README.md fix README.md badges and blockquote icon (#2022) 2026-05-22 13:49:17 +03:00
tsconfig.json fix(core): move @cfworker/json-schema out of main barrel into /validators/cf-worker subpath (#1897) 2026-04-28 12:40:18 +00:00
tsdown.config.ts refactor(client,server): move stdio transports to ./stdio subpath export (#1871) 2026-04-29 14:48:36 +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

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