Tool Name Length Exceeds Limit in MCP Server Configuration

Resolved 💬 5 comments Opened Jun 25, 2025 by kousen Closed Jun 25, 2025

Bug Description
When I add the Official GitHub MCP server via the Docker MCP Toolkit
(claude mcp add docker-mcp docker mcp gateway run), internally
Claude creates method names that append the name I chose (here docker-mcp)
to the tools. That results in at least one tool (I believe it's
add_pull_request_review_comment_to_pending_review) whose full name
exceeds 64 characters. That results in a 400 error complaining about
a name too long, and nothing works properly after that.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.34
  • Feedback ID: e285f710-2839-479e-bb4e-6bdf12aa47c8

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:892:11)\n    at execSync (node:child_process:964:15)\n    at NZ (file:///Users/kennethkousen/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n    at file:///Users/kennethkousen/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///Users/kennethkousen/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at GX (file:///Users/kennethkousen/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at mS (file:///Users/kennethkousen/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at T9 (file:///Users/kennethkousen/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-25T15:06:05.712Z"}]

Note: That error does not reflect what actually happens, since I had to remove the MCP server in order
for Claude Code to run at all. I have no idea why you have a 64 character limit on a string, but the 400
error gives an error message about the 64-character length limit being exceeded.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗