{"versions":{"1.0.0":{"name":"@chatmcp/sdk","version":"1.0.0","keywords":["modelcontextprotocol","sdk","chatmcp","jsonrpc"],"author":{"name":"ChatMCP"},"license":"MIT","description":"ChatMCP SDK","dependencies":{"@modelcontextprotocol/sdk":"^1.8.0","content-type":"^1.0.5","express":"^5.1.0"},"type":"module","exports":{".":"./dist/index.js","./server/*":"./dist/server/*.js","./client/*":"./dist/client/*.js"},"typesVersions":{"*":{"*":["./dist/*"]}},"scripts":{"build":"tsc","build:all":"npm run build -ws --include-workspace-root","watch":"tsc --watch","check":"npx @biomejs/biome check --write --unsafe","link":"npm link -ws --include-workspace-root"},"devDependencies":{"@types/content-type":"^1.1.8","@types/express":"^5.0.1","@types/node":"^22.13.17","typescript":"^5.8.2"},"repository":{"type":"git","url":"git+https://github.com/chatmcp/sdk.git"},"_id":"@chatmcp/sdk@1.0.0","bugs":{"url":"https://github.com/chatmcp/sdk/issues"},"homepage":"https://github.com/chatmcp/sdk#readme","_nodeVersion":"22.2.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-q/i030+AVljddjUndSxAULzSCWLCTju0YPS8PPa+Vruop1G7uhgMC7Q0/pfHaqWaAxA3yNM2tBc1Dc7gFkH4SQ==","shasum":"145ca7f511102658e00ddaaf74ef9c34ffbd6700","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@chatmcp/sdk/-/sdk-1.0.0.tgz","fileCount":7,"unpackedSize":19197,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC2nEA94TwRpxKMFOfZBZykbE5AgdQDuw0e1AGW8kvuaQIhAPcqmWYNI1LjaN3qO5AaX0b/OjfYfCKjBc60xY9fLZj/"}],"size":5175},"_npmUser":{"name":"anonymous","email":"me@idoubi.cc"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@idoubi.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.0_1743587439597_0.022155940763207482"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-02T09:50:39.769Z","publish_time":1743587439769,"_source_registry_name":"default","contributors":[]},"1.0.1":{"name":"@chatmcp/sdk","version":"1.0.1","description":"ChatMCP implementation for MCP TypeScript SDK","license":"MIT","author":{"name":"ChatMCP, PBC","url":"https://mcp.so"},"homepage":"https://mcp.so","bugs":{"url":"https://github.com/chatmcp/typescript-sdk/issues"},"type":"module","repository":{"type":"git","url":"git+https://github.com/chatmcp/typescript-sdk.git"},"engines":{"node":">=18"},"keywords":["chatmcp","mcp","mcp-sdk","mcp-typescript-sdk"],"exports":{"./*":{"import":"./dist/esm/*","require":"./dist/cjs/*"}},"typesVersions":{"*":{"*":["./dist/esm/*"]}},"scripts":{"build":"npm run build:esm && npm run build:cjs","build:esm":"tsc -p tsconfig.prod.json && echo '{\"type\": \"module\"}' > dist/esm/package.json","build:cjs":"tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json","prepack":"npm run build:esm && npm run build:cjs","lint":"eslint src/","test":"jest","start":"npm run server","server":"tsx watch --clear-screen=false src/cli.ts server","client":"tsx src/cli.ts client"},"dependencies":{"@modelcontextprotocol/sdk":"^1.8.0","content-type":"^1.0.5","cors":"^2.8.5","cross-spawn":"^7.0.3","eventsource":"^3.0.2","express":"^5.0.1","express-rate-limit":"^7.5.0","pkce-challenge":"^4.1.0","raw-body":"^3.0.0","zod":"^3.23.8","zod-to-json-schema":"^3.24.1"},"devDependencies":{"@eslint/js":"^9.8.0","@jest-mock/express":"^3.0.0","@types/content-type":"^1.1.8","@types/cors":"^2.8.17","@types/cross-spawn":"^6.0.6","@types/eslint__js":"^8.42.3","@types/eventsource":"^1.1.15","@types/express":"^5.0.0","@types/jest":"^29.5.12","@types/node":"^22.0.2","@types/supertest":"^6.0.2","@types/ws":"^8.5.12","eslint":"^9.8.0","jest":"^29.7.0","supertest":"^7.0.0","ts-jest":"^29.2.4","tsx":"^4.16.5","typescript":"^5.5.4","typescript-eslint":"^8.0.0","ws":"^8.18.0"},"resolutions":{"strip-ansi":"6.0.1"},"_id":"@chatmcp/sdk@1.0.1","_nodeVersion":"22.2.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-ezqWxzBtOqGYEPyJ/6KAakwIER7qxKt2Ig1C4gV2jPh8eaaX9XCbIF1DVm+0Jmd9gvco8XPNNTJxAaD1DISRtA==","shasum":"923ad956e41d4e9f9f3b8c09379b4da16dc4c37b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@chatmcp/sdk/-/sdk-1.0.1.tgz","fileCount":11,"unpackedSize":41589,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDTY5iu9d7eFUrd2n23HJUe5WHiHuIg9CABjew0Lfa8XgIhAMSXcbJCWk9XXPjW3bp5HVHqkezP9w8wV9wC/1HwX/vq"}],"size":6923},"_npmUser":{"name":"anonymous","email":"me@idoubi.cc"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@idoubi.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.1_1743588550964_0.797279144728291"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-02T10:09:11.136Z","publish_time":1743588551136,"_source_registry_name":"default","contributors":[]},"1.0.3":{"name":"@chatmcp/sdk","version":"1.0.3","description":"Connect language models to Model Context Protocols","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./*":"./dist/*"},"scripts":{"build":"tsc","build:all":"npm run build -ws --include-workspace-root","watch":"tsc --watch","check":"npx @biomejs/biome check --write --unsafe","link":"npm link -ws --include-workspace-root"},"license":"MIT","dependencies":{"@modelcontextprotocol/sdk":"^1.8.0","content-type":"^1.0.5","express":"^5.1.0","raw-body":"^3.0.0"},"devDependencies":{"@types/content-type":"^1.1.8","@types/express":"^5.0.1","@types/node":"^20.17.30","typescript":"^5.0.0"},"_id":"@chatmcp/sdk@1.0.3","_nodeVersion":"22.2.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-w39mKbkvIF7HE4xNzdb4gwkXAPG7e0+34GqVzKBI9tBuyBg6WbUITBCsemHTn54eKIoo2TaPeUmgtpVWFmwBEw==","shasum":"b4850e0137a9496134da4b6a1fd2ea76bd3091b6","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@chatmcp/sdk/-/sdk-1.0.3.tgz","fileCount":3,"unpackedSize":11805,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDhaCWXgKjMPEOnLoOowdqeZTkKANHa8Ctitv2mD8AkPwIgcmZcTiw5t2zRvor6UuZPFYIbW0c1Ermr70tmWzaeziQ="}],"size":3185},"_npmUser":{"name":"anonymous","email":"me@idoubi.cc"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@idoubi.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.3_1743589167490_0.8177391518087029"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-02T10:19:27.677Z","publish_time":1743589167677,"_source_registry_name":"default","contributors":[]},"1.0.5":{"name":"@chatmcp/sdk","version":"1.0.5","description":"Typescript Implementation of Model Context Protocols","author":{"name":"ChatMCP"},"homepage":"https://mcp.so","repository":{"type":"git","url":"git+https://github.com/chatmcp/typescript-sdk.git"},"bugs":{"url":"https://github.com/chatmcp/typescript-sdk/issues"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./*":"./dist/*"},"scripts":{"build":"tsc","build:all":"npm run build -ws --include-workspace-root","watch":"tsc --watch","check":"npx @biomejs/biome check --write --unsafe","link":"npm link -ws --include-workspace-root"},"license":"MIT","dependencies":{"@modelcontextprotocol/sdk":"^1.8.0","content-type":"^1.0.5","express":"^5.1.0","raw-body":"^3.0.0"},"devDependencies":{"@types/content-type":"^1.1.8","@types/express":"^5.0.1","@types/node":"^20.17.30","typescript":"^5.0.0"},"_id":"@chatmcp/sdk@1.0.5","gitHead":"936808782d36c79566288de99b8e97b28222ce9e","_nodeVersion":"22.2.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-jAOpkol1ZdyXWOS2IW9dDNU3OLv4DLrYj+xLB09cvHPBVkW+CIJ3y8zS1QYdoBfXLwBlYmPSTFsJGx8qeGr1OQ==","shasum":"647f79db52c7d8063fcd8554b350b22adf38e086","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@chatmcp/sdk/-/sdk-1.0.5.tgz","fileCount":6,"unpackedSize":14191,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDAtSWGcclBpXhS+CGfl/vwfNTdqPgZT21wbh4YLWxQnAiEA22jtWO1yBHoE4ShSKGjRm6n3bDDWTU24P4ntX40/ZWI="}],"size":3987},"_npmUser":{"name":"anonymous","email":"me@idoubi.cc"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@idoubi.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.5_1743737500212_0.8402905328820807"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-04T03:31:40.429Z","publish_time":1743737500429,"_source_registry_name":"default","contributors":[]},"1.0.6":{"name":"@chatmcp/sdk","version":"1.0.6","description":"Typescript Implementation of Model Context Protocols","author":{"name":"ChatMCP"},"homepage":"https://mcp.so","repository":{"type":"git","url":"git+https://github.com/chatmcp/typescript-sdk.git"},"bugs":{"url":"https://github.com/chatmcp/typescript-sdk/issues"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":"./dist/index.js","./*":"./dist/*"},"scripts":{"build":"tsc","build:all":"npm run build -ws --include-workspace-root","watch":"tsc --watch","check":"npx @biomejs/biome check --write --unsafe","link":"npm link -ws --include-workspace-root"},"license":"MIT","dependencies":{"@modelcontextprotocol/sdk":"^1.8.0","content-type":"^1.0.5","express":"^5.1.0","raw-body":"^3.0.0"},"devDependencies":{"@types/content-type":"^1.1.8","@types/express":"^5.0.1","@types/node":"^20.17.30","typescript":"^5.0.0"},"_id":"@chatmcp/sdk@1.0.6","gitHead":"96d0d60478eca9350b873108e3dcd6ae25b4bbb4","_nodeVersion":"22.2.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-EBH6iDHd6k8o8yUZhF67+9LCTMlU3AL8/YSBfpqVAI1e2vW2+iRiMfXlmi02HdZzycybFkT+QXeagAMzwyg8yg==","shasum":"b1781b0bc78de4ba8eecb7950b214146d16aaa03","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@chatmcp/sdk/-/sdk-1.0.6.tgz","fileCount":6,"unpackedSize":14187,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGKBDn/Ug6RDTMNmyRn9K+mm94Xd/SRgnAh4fmNZgqrxAiEA02J6W/Fr0Z8ffBh3R83kyaLV64xOsZU3gYEFv21M5gY="}],"size":3993},"_npmUser":{"name":"anonymous","email":"me@idoubi.cc"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@idoubi.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.6_1744888273162_0.7730129960872201"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-17T11:11:13.394Z","publish_time":1744888273394,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.0.6"},"name":"@chatmcp/sdk","time":{"created":"2025-04-02T09:57:47.912Z","modified":"2025-04-17T11:11:29.159Z","1.0.0":"2025-04-02T09:50:39.769Z","1.0.1":"2025-04-02T10:09:11.136Z","1.0.3":"2025-04-02T10:19:27.677Z","1.0.5":"2025-04-04T03:31:40.429Z","1.0.6":"2025-04-17T11:11:13.394Z"},"readme":"# MCP Typescript SDK by ChatMCP\n\n## How to use\n\n1. install sdk\n\n```shell\nnpm i @chatmcp/sdk\n```\n\n2. update MCP Server\n\n```typescript\nimport { RestServerTransport } from \"@chatmcp/sdk/server/rest.js\";\n\nasync function main() {\n  const port = 9593;\n  const endpoint = \"/rest\";\n\n  const transport = new RestServerTransport({ port, endpoint });\n  await server.connect(transport);\n\n  await transport.startServer();\n}\n```\n\n3. request api\n\n```curl\ncurl -X POST http://127.0.0.1:9593/rest \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"jsonrpc\": \"2.0\",\n  \"id\": \"1\",\n  \"method\": \"initialize\",\n  \"params\": {\n    \"protocolVersion\": \"1.0\",\n    \"capabilities\": {},\n    \"clientInfo\": {\n      \"name\": \"your_client_name\",\n      \"version\": \"your_version\"\n    }\n  }\n}'\n```","users":{}}