[BUG]
Environment
- Platform (select one):
- [x ] Anthropic API
- Claude CLI version: 1.10.25
- Operating System: Sequoia 15.5
- Terminal: iTerm2
Bug Description
When making any request:
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/davidandrews/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:20090)
Steps to Reproduce
- Launch code.
- Make request.
Expected Behavior
No error.
Actual Behavior
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/{username}/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:20090)
'claude update' to resolve
'claude update' to resolve
> claude update
Current version: 1.0.16
Checking for updates...
Claude Code is up to date (1.0.16)
Still experiencing the issue after a claude update which says there are no updates. It only seemed to happen after I installed the updated VSCode extension, and "Install specific version" is greyed out and doesn't appear to be supported.
What does claude --version show? What error exactly are you hitting?
The error message is similar to OP's:
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:
Error: command 'type' already exists
at hX2 (file:///Users/digismack/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1376:12108)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async oY5 (file:///Users/digismack/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1921:10075)
at async J (file:///Users/digismack/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1921:8929)
claude --version outputs:
1.0.16 (Claude Code)
Any time it tries to modify code in what would pull up the new VSCode integrated diff viewer/editor, it shows this error.
Edit: Someone just opened a ticket for this exact error message here.
Let's continue on that issue
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.