fix(server): resolve the MCP SDK types module at runtime

The tool registry imports McpError from @modelcontextprotocol/sdk/types, which Node only finds through the tsconfig path list the other SDK modules use.
This commit is contained in:
Maurice
2026-11-23 16:02:37 +01:00
parent 0aa53b81e1
commit af88aef35e
+2 -1
View File
@@ -34,7 +34,8 @@
"@modelcontextprotocol/sdk/server/auth/types": ["../node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js"],
"@modelcontextprotocol/sdk/shared/auth": ["../node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js"],
"@modelcontextprotocol/sdk/client/index": ["../node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js"],
"@modelcontextprotocol/sdk/inMemory": ["../node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js"]
"@modelcontextprotocol/sdk/inMemory": ["../node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js"],
"@modelcontextprotocol/sdk/types": ["../node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js"]
}
},
"include": ["src"],