Missing Tool Implementation: closeAllDiffTabs in MCP Protocol

Resolved 💬 26 comments Opened Jun 5, 2025 by humanwritten Closed Jun 6, 2025
💡 Likely answer: A maintainer (igorkofman, collaborator) responded on this thread — see the highlighted reply below.

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

View original on GitHub ↗

26 Comments

glassBead-tc · 1 year ago

I've got this as well.

psvillanueva · 1 year ago

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.

gabadi · 1 year ago

Same here

jamesguo71 · 1 year ago

same here. on IntelliJ

jzumwalt · 1 year ago

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

xHeaven · 1 year ago

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

pmallek · 1 year ago

same...

GeorgeShao · 1 year ago

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

lostjs · 1 year ago

same. it appeared today after I updated cursor.

chipit24 · 1 year ago

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)
miclip · 1 year ago

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.

RogaJess · 1 year ago

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

illusivejosiah · 1 year ago

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.

igorkofman collaborator · 1 year ago

Does restarting the IDE after hitting this help?

illusivejosiah · 1 year ago
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.

zaxier · 1 year ago

Same here

raseniero · 1 year ago

Same here

igorkofman collaborator · 1 year ago

claude update to resolve folks - sorry for the break!

illusivejosiah · 1 year ago
claude update to resolve folks - sorry for the break!

All good now! Thanks

illusivejosiah · 1 year ago

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 · 1 year ago

Additionally, still seeing:

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

rboyce-ant contributor · 1 year ago

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

illusivejosiah · 1 year ago
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 · 1 year ago

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 · 1 year ago
github-actions[bot] · 11 months ago

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.