Skip to content

McpError: MCP error -32601: Method not found #415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
evilArsh opened this issue Apr 26, 2025 · 2 comments
Closed

McpError: MCP error -32601: Method not found #415

evilArsh opened this issue Apr 26, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@evilArsh
Copy link

Describe the bug
use in nodejs v22.14.0,listTools callTool works well,but listResources``listPrompts``listResourceTemplates failed.just throw:McpError: MCP error -32601: Method not found

To Reproduce
Steps to reproduce the behavior:

  const newClient = new Client({ name: "aichat-mcp-client", version: "v0.0.1" })
  const transport = new StdioClientTransport({
    command: "npx",
    args: ["-y", "@modelcontextprotocol/server-filesystem", "D:\\"],
    env: {},
  })
  await newClient.connect(transport)
  const res = await newClient.listPrompts()
  console.log(res)

Expected behavior
A clear and concise description of what you expected to happen.

Logs

McpError: MCP error -32601: Method not found
    at Client._onresponse (file:///E:/web/box/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js:213:27)
    at _transport.onmessage (file:///E:/web/box/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js:76:22)
    at StdioClientTransport.processReadBuffer (file:///E:/web/box/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js:118:79)
    at Socket.<anonymous> (file:///E:/web/box/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js:93:22)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23) {
  code: -32601,
  data: undefined
}
@evilArsh evilArsh added the bug Something isn't working label Apr 26, 2025
@evilArsh
Copy link
Author

fixed,not all servers implement this

@amitabak-MA
Copy link

@evilArsh Hi, when will the fix be released as formal release ? modelcontextprotocol/sdk@^1.11.0 manifest the bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants