-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working