Tool Name Length Exceeds 64 Character Limit in API Request
Resolved 💬 5 comments Opened Jun 23, 2025 by omarrns Closed Jun 24, 2025
Bug Description
i connected my MCPs and now i can't use claude code ever. error message: "API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.63.custom.name: String should
have at most 64 characters"}}"
Environment Info
- Platform: darwin
- Terminal: windsurf
- Version: 1.0.31
- Feedback ID: db75f5c1-891d-4b3e-a1b2-5aed6cbdd992
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 NZ (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n at file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n at Q (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at GX (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n at fS (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n at R9 (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-23T17:24:45.375Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.63.custom.name: String should have at most 64 characters\"}}\n at d6.generate (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1302:12578)\n at yw.makeStatusError (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:2082)\n at yw.makeRequest (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async N11.showErrors (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:18554)\n at async N11 (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1492:703)\n at async pU2 (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:18400)\n at async file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:13529\n at async Oe1 (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:4695)\n at async Wu (file:///Users/omarnasser/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1959:13499)","timestamp":"2025-06-23T17:24:47.475Z"}]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗