claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Missing Tool Implementation: closeAllDiffTabs in MCP Protocol

Open humanwritten opened this issue 6 months ago • 23 comments

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"}]

humanwritten avatar Jun 05 '25 22:06 humanwritten

I've got this as well.

glassBead-tc avatar Jun 05 '25 23:06 glassBead-tc

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.

psvillanueva avatar Jun 05 '25 23:06 psvillanueva

Same here

gabadi avatar Jun 05 '25 23:06 gabadi

same here. on IntelliJ

jamesguo71 avatar Jun 05 '25 23:06 jamesguo71

Just started getting this error after updating (vscode and ternimal)

jzumwalt avatar Jun 05 '25 23:06 jzumwalt

I'm experiencing the same thing as well. PHPStorm.

xHeaven avatar Jun 05 '25 23:06 xHeaven

same...

pmallek avatar Jun 05 '25 23:06 pmallek

reproduced on Ubuntu 24.04.2 LTS (x86) with Claude Code v1.0.15 in Cursor v1.0.0

GeorgeShao avatar Jun 05 '25 23:06 GeorgeShao

same. it appeared today after I updated cursor.

lostjs avatar Jun 05 '25 23:06 lostjs

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)

chipit24 avatar Jun 05 '25 23:06 chipit24

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.

miclip avatar Jun 06 '25 00:06 miclip

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)

Image

RogaJess avatar Jun 06 '25 00:06 RogaJess

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.

illusivejosiah avatar Jun 06 '25 00:06 illusivejosiah

Does restarting the IDE after hitting this help?

igorkofman avatar Jun 06 '25 00:06 igorkofman

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.

illusivejosiah avatar Jun 06 '25 00:06 illusivejosiah

Same here

zaxier avatar Jun 06 '25 00:06 zaxier

Same here

raseniero avatar Jun 06 '25 00:06 raseniero

claude update to resolve folks - sorry for the break!

igorkofman avatar Jun 06 '25 00:06 igorkofman

claude update to resolve folks - sorry for the break!

All good now! Thanks

illusivejosiah avatar Jun 06 '25 00:06 illusivejosiah

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."}}

illusivejosiah avatar Jun 06 '25 01:06 illusivejosiah

Additionally, still seeing:

IDE Integration • /config ✔ Connected to Cursor extension ⚠ Error installing Cursor extension: 1: ENOENT Please restart your IDE and try again.

illusivejosiah avatar Jun 06 '25 01:06 illusivejosiah

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

rboyce-ant avatar Jun 06 '25 01:06 rboyce-ant

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

Thank you! Will let you know if anything else pops up! Cheers

illusivejosiah avatar Jun 06 '25 01:06 illusivejosiah

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

illusivejosiah avatar Jun 07 '25 19:06 illusivejosiah

Image

illusivejosiah avatar Jun 08 '25 01:06 illusivejosiah

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.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]