Commit 255f3c2
authored
fix: expose ./dist/cjs/types.js in package.json exports for @modelcontextprotocol/sdk
- Add "./types": "./dist/cjs/types.js" to the "exports" field in package.json.
- Allows correct import of types from the MCP SDK in TypeScript projects using ts-node or internal paths.
- Fixes "Cannot find module .../dist/cjs/types" error when running custom MCP servers.
- Improves integration and extension of the SDK in modern Node.js environments.1 parent 824c1f5 commit 255f3c2
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments