-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Description
Currently, following error is occured.
file:///workspace/node_modules/.pnpm/@[email protected]/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js:134
throw new Error(`Server does not support completions (required for ${method})`);
^
Error: Server does not support completions (required for completion/complete)
at Server.assertRequestHandlerCapability (/workspace/node_modules/.pnpm/@[email protected]/node_modules/@modelcontextprotocol/sdk/src/server/index.ts:242:27)
Reproduction Code
import { FastMCP } from "fastmcp";
const server = new FastMCP({
name: "My MCP Server",
version: "1.0.0",
instructions:
"...,
});
server.addTool(myAnyTool);
void server.start({
transportType: "stdio",
});Temporaly Solution
@modelcontextprotocol/[email protected] seems to have some issues.
Downgrading @modelcontextprotocol/sdk to 1.21.2 , it works.
In my case, I use pnpm, so I specified @modelcontextprotocol/sdk version explicitly.
// package.json
"dependencies": {
+ "@modelcontextprotocol/sdk": "1.21.2",
}And I ran pnpm install, pnpm-lock.yaml was changed, so it was resolved.
amar-awx, yujeongJeon, meirk-brd, Crunchyman-ralph and felladrin
Metadata
Metadata
Assignees
Labels
No labels