Title: McpError: MCP error -32601: Method not found · Issue #415 · modelcontextprotocol/typescript-sdk · GitHub
Open Graph Title: McpError: MCP error -32601: Method not found · Issue #415 · modelcontextprotocol/typescript-sdk
X Title: McpError: MCP error -32601: Method not found · Issue #415 · modelcontextprotocol/typescript-sdk
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: cons...
Open Graph 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 Reprodu...
X 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 Reprodu...
Opengraph URL: https://github.com/modelcontextprotocol/typescript-sdk/issues/415
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"McpError: MCP error -32601: Method not found","articleBody":"**Describe the bug**\nuse in nodejs v22.14.0,`listTools` `callTool` works well,but `listResources``listPrompts``listResourceTemplates` failed.just throw:McpError: MCP error -32601: Method not found\n\n**To Reproduce**\nSteps to reproduce the behavior:\n```typescript\n const newClient = new Client({ name: \"aichat-mcp-client\", version: \"v0.0.1\" })\n const transport = new StdioClientTransport({\n command: \"npx\",\n args: [\"-y\", \"@modelcontextprotocol/server-filesystem\", \"D:\\\\\"],\n env: {},\n })\n await newClient.connect(transport)\n const res = await newClient.listPrompts()\n console.log(res)\n```\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Logs**\n```json\nMcpError: MCP error -32601: Method not found\n at Client._onresponse (file:///E:/web/box/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js:213:27)\n at _transport.onmessage (file:///E:/web/box/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js:76:22)\n at StdioClientTransport.processReadBuffer (file:///E:/web/box/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js:118:79)\n at Socket.\u003canonymous\u003e (file:///E:/web/box/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js:93:22)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23) {\n code: -32601,\n data: undefined\n}\n```\n","author":{"url":"https://github.com/evilArsh","@type":"Person","name":"evilArsh"},"datePublished":"2025-04-26T15:56:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/415/typescript-sdk/issues/415"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cbc0e811-0e6f-7851-39bd-692c16a90c52 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7C4:2DDB6E:14CF360:1C23BD3:6A5DC7A3 |
| html-safe-nonce | 22697ac5b6bc5e004aeb25bcaa0acb6d53b2b13aa5f46a538f7696f164fb2a6d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0M0OjJEREI2RToxNENGMzYwOjFDMjNCRDM6NkE1REM3QTMiLCJ2aXNpdG9yX2lkIjoiMTE3MzkwMzU1OTc5ODY3MTI2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c47d7de1eed045e7fa4fda56579b3de8f909a057b6ec5fb63533c4d76c426266 |
| hovercard-subject-tag | issue:3022053406 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/typescript-sdk/415/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c881d67a86687249d8e190ce81b557ab6746b7839e7cac4d9e4e2059478c9a04/modelcontextprotocol/typescript-sdk/issues/415 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c881d67a86687249d8e190ce81b557ab6746b7839e7cac4d9e4e2059478c9a04/modelcontextprotocol/typescript-sdk/issues/415 |
| og:image:alt | 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 Reprodu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | evilArsh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/typescript-sdk git https://github.com/modelcontextprotocol/typescript-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862578138 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/typescript-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862578138 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/typescript-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width