You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot find module '@modelcontextprotocol/sdk/server' or its corresponding type declarations.
Cannot find module '@modelcontextprotocol/sdk/server/mcp' or its corresponding type declarations.
Changing from: import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp";
To: import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
We're experiencing issues with TypeScript module resolution when trying to import the MCP SDK in an ESM project. We've tried several approaches:
Both approaches result in TypeScript errors:
Our project configuration:
Could you please provide guidance on the correct way to import the SDK in an ESM TypeScript project?
The text was updated successfully, but these errors were encountered: