{"name":"@modelcontextprotocol/server","version":"2.0.0-alpha.1","keywords":["modelcontextprotocol","mcp","server"],"author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","_id":"@modelcontextprotocol/server@2.0.0-alpha.1","maintainers":[{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},{"name":"pcarleton","email":"paulcarletonjr@gmail.com"},{"name":"fweinberger","email":"fweinberger@anthropic.com"},{"name":"thedsp","email":"experimentalworks@gmail.com"},{"name":"ashwin-ant","email":"ashwin@anthropic.com"},{"name":"ochafik","email":"olivier.chafik@gmail.com"}],"homepage":"https://modelcontextprotocol.io","bugs":{"url":"https://github.com/modelcontextprotocol/typescript-sdk/issues"},"dist":{"shasum":"0e963aec706d3d6631f87ca90b294e6a540ebfc5","tarball":"http://registry-npm.ywwl.com/@modelcontextprotocol/server/download/@modelcontextprotocol/server-2.0.0-alpha.1.tgz","fileCount":17,"integrity":"sha512-BtySbGyxxYp3XUsuluypzPiq0DbbcPl8k1f4K/MtG6H3tCGEgQV6Sq08sR2gfQo8E3T9VjgaUb8ymDuA0t0aJw==","signatures":[{"sig":"MEUCIGdIoJxpdACpzt5FlAOyxC61GCRHYp9SnYPb8D9tBe+DAiEA/+d+hsNtRbC2HaoJI1XJKZH5O67efgfd3i0EJ5KGzKI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@modelcontextprotocol%2fserver@2.0.0-alpha.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1677408,"size":341191,"noattachment":false,"key":"/@modelcontextprotocol/server/-/@modelcontextprotocol/server-2.0.0-alpha.1.tgz"},"type":"module","_from":"file:modelcontextprotocol-server-2.0.0-alpha.1.tgz","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./_shims":{"node":{"types":"./dist/shimsNode.d.mts","import":"./dist/shimsNode.mjs"},"browser":{"types":"./dist/shimsWorkerd.d.mts","import":"./dist/shimsWorkerd.mjs"},"default":{"types":"./dist/shimsNode.d.mts","import":"./dist/shimsNode.mjs"},"workerd":{"types":"./dist/shimsWorkerd.d.mts","import":"./dist/shimsWorkerd.mjs"}}},"scripts":{"lint":"eslint src/ && prettier --ignore-path ../../.prettierignore --check .","test":"vitest run","build":"tsdown","check":"pnpm run typecheck && pnpm run lint","client":"tsx scripts/cli.ts client","server":"tsx watch --clear-screen=false scripts/cli.ts server","lint:fix":"eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .","typecheck":"tsgo -p tsconfig.json --noEmit","test:watch":"vitest","build:watch":"tsdown --watch"},"_npmUser":{"name":"fweinberger","email":"fweinberger@anthropic.com"},"_resolved":"/tmp/81dbb562180133af89d8ce1d1beac69b/modelcontextprotocol-server-2.0.0-alpha.1.tgz","_integrity":"sha512-BtySbGyxxYp3XUsuluypzPiq0DbbcPl8k1f4K/MtG6H3tCGEgQV6Sq08sR2gfQo8E3T9VjgaUb8ymDuA0t0aJw==","deprecated":"Broken DTS exports — use 2.0.0-alpha.2","repository":{"url":"git+https://github.com/modelcontextprotocol/typescript-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Model Context Protocol implementation for TypeScript - Server package","directories":{},"_nodeVersion":"24.14.0","dependencies":{"zod":"^4.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.5","eslint":"^9.39.2","tsdown":"^0.18.0","vitest":"^4.0.15","prettier":"3.6.2","supertest":"^7.0.0","@eslint/js":"^9.39.2","typescript":"^5.9.3","eslint-plugin-n":"^17.23.1","typescript-eslint":"^8.48.1","@types/cross-spawn":"^6.0.6","@types/eventsource":"^1.1.15","@cfworker/json-schema":"^4.1.1","eslint-config-prettier":"^10.1.8","@modelcontextprotocol/core":"^2.0.0-alpha.1","@typescript/native-preview":"^7.0.0-dev.20251217.1","@modelcontextprotocol/tsconfig":"^2.0.0","@modelcontextprotocol/test-helpers":"^2.0.0-alpha.0","@modelcontextprotocol/eslint-config":"^2.0.0","@modelcontextprotocol/vitest-config":"^2.0.0"},"peerDependencies":{"@cfworker/json-schema":"^4.1.1"},"peerDependenciesMeta":{"@cfworker/json-schema":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/server_2.0.0-alpha.1_1775054774326_0.8848643356854295","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@modelcontextprotocol/server`\n\nThe MCP (Model Context Protocol) TypeScript server SDK. Build MCP servers that expose tools, resources, and prompts.\n\n<!-- prettier-ignore -->\n> [!WARNING]\n> **v2 is the stable release line**, implementing the [2026-07-28 MCP spec](https://modelcontextprotocol.io/specification/2026-07-28). Migrating from v1? Start with the [migration guide](https://ts.sdk.modelcontextprotocol.io/v2/migration/).\n\n<!-- prettier-ignore -->\n> [!NOTE]\n> This is **v2** of the MCP TypeScript SDK. It replaces the monolithic `@modelcontextprotocol/sdk` package from v1. See the **[migration guide](https://github.com/modelcontextprotocol/typescript-sdk/blob/main/docs/migration/upgrade-to-v2.md)** if you're coming from v1.\n\n## Install\n\n```bash\nnpm install @modelcontextprotocol/server\n```\n\nTypeScript ≥6.0 no longer auto-includes `@types/*` — add `\"types\": [\"node\"]` to your `tsconfig.json` `compilerOptions` (the published `.d.mts` references `Buffer`).\n\nOptional framework adapters: [`@modelcontextprotocol/express`](https://www.npmjs.com/package/@modelcontextprotocol/express), [`@modelcontextprotocol/fastify`](https://www.npmjs.com/package/@modelcontextprotocol/fastify), [`@modelcontextprotocol/hono`](https://www.npmjs.com/package/@modelcontextprotocol/hono),\n[`@modelcontextprotocol/node`](https://www.npmjs.com/package/@modelcontextprotocol/node).\n\n## Documentation\n\n- **[Repository README](https://github.com/modelcontextprotocol/typescript-sdk#readme)** — overview, package layout, examples\n- **[Server guide](https://ts.sdk.modelcontextprotocol.io/v2/servers/tools)** — tools, resources, prompts, and the rest of the server surface\n- **[Serving guide](https://ts.sdk.modelcontextprotocol.io/v2/serving/http)** — stdio, HTTP, the framework adapters, sessions, and authorization\n- **[API reference](https://ts.sdk.modelcontextprotocol.io/v2/)**\n- **[MCP specification](https://modelcontextprotocol.io)**\n","publish_time":1775054774524,"_cnpm_publish_time":1775054774524,"dist-tags":{"latest":"2.4.0"}}