Skip to content

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

Closed

Description

@evilArsh

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
}

Activity

  1. added
    bug
    on Apr 26, 2025
  2. evilArsh commented on Apr 28, 2025

    @evilArsh
    Author

    fixed,not all servers implement this

  3. amitabak-MA commented on May 7, 2025

    @amitabak-MA

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

  4. evilArsh commented on May 12, 2025

    @evilArsh
    Author

    @amitabak-MA not a bug bro!just because the server not implement the method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions