Missing Tool Implementation: closeAllDiffTabs in MCP Protocol
Bug Description
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: McpError: MCP error -32602: MCP error -32602: Tool closeAllDiffTabs not found at Mc1._onresponse (file:///Users/timapple/.nvm/versions/node/v23.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:20090)
Environment Info
- Platform: macos
- Terminal: cursor
- Version: 1.0.15
- Feedback ID: cc32c364-b1d2-4df6-b0ab-2c0a034e3337
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at WZ (file:///Users/timapple/.nvm/versions/node/v23.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:654:3921)\n at file:///Users/timapple/.nvm/versions/node/v23.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11799\n at Q (file:///Users/timapple/.nvm/versions/node/v23.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n at QV (file:///Users/timapple/.nvm/versions/node/v23.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10945)\n at VG (file:///Users/timapple/.nvm/versions/node/v23.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10391)\n at dO2 (file:///Users/timapple/.nvm/versions/node/v23.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2049:4758)","timestamp":"2025-06-05T22:49:13.302Z"}]
I've got this as well.
I'm also getting this error. Thought it was just me and tried uninstalling/reinstalling claude code via npm, but it didn't do anything.
Same here
same here. on IntelliJ
Just started getting this error after updating (vscode and ternimal)
I'm experiencing the same thing as well. PHPStorm.
same...
reproduced on Ubuntu 24.04.2 LTS (x86) with Claude Code v1.0.15 in Cursor v1.0.0
same. it appeared today after I updated cursor.
Just noticed this as well, using the latest version of Claude Code (1.0.15), the Claude Code [Beta] (0.1.7-beta) plugin, and WebStorm (2025.1.2), and launching CC from the IDE terminal.
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
McpError: MCP error -32603: Tool not found: closeAllDiffTabs
at Mc1._onresponse (file:///Users/robertkomaromi/.local/share/mise/installs/node/22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:20090)
at _transport.onmessage (file:///Users/robertkomaromi/.local/share/mise/installs/node/22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:17296)
at X.client.transport.onmessage (file:///Users/robertkomaromi/.local/share/mise/installs/node/22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1921:6811)
I have the same error but in an IntelliJ terminal, I do have the Claude Code plugin installed. Don't get the error in a terminal outside of the IDE.
Getting this weird double line thing with that error. It seems to be handling requests fine but its weirdly showing 2 lines after I submit a request. (VS Code Terminal with Claude Code)
Feedback ID: 6f95994a-7bc0-4817-8f56-770a787a42f2
Also see this in status:
IDE Integration • /config ⚠ Error installing Cursor extension: 1: ENOENT Please restart your IDE and try again.
Does restarting the IDE after hitting this help?
Does restarting the IDE after hitting this help?
Nope, unfortunately not. It appears that IDE line selection is registering as well, you just see this error after every chat submission if IDE integration is enabled.
Same here
Same here
claude update to resolve folks - sorry for the break!
claude updateto resolve folks - sorry for the break!
All good now! Thanks
Now am getting: ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.293: tool_use ids were found without tool_result blocks immediately after:
toolu_018eVdLaCNySD2J2Um6Uqyud. Each tool_use block must have a corresponding tool_result block in the next message."}}
Additionally, still seeing:
IDE Integration • /config ✔ Connected to Cursor extension ⚠ Error installing Cursor extension: 1: ENOENT Please restart your IDE and try again.
v1.0.16 is out now and should fix both the closeAllDiffTabs and tool_result error. Please update again with claude update – sorry for the churn @illusivejosiah
v1.0.16 is out now and should fix both the
closeAllDiffTabsandtool_resulterror. Please update again withclaude update– sorry for the churn @illusivejosiah
Thank you! Will let you know if anything else pops up! Cheers
IDE Integration • /config
✔ Connected to Cursor extension
⚠ Error installing Cursor extension: 1: ENOENT
Please restart your IDE and try again.
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.129:
tool_use ids were found without tool_result blocks immediately after:
toolu_01PTe6Cdfiqnb2D7on8uXDXU. Each tool_use block must have a corresponding tool_result block
in the next message."}}
Back again. On v1.0.17
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.