Skip to content

64-Character Limit on Tool Names Conflicts with MCP Spec β€” Should Be Removed or ConfigurableΒ #520

Closed as duplicate of#431
@jlwainwright

Description

@jlwainwright

Hi team πŸ‘‹ β€” I’ve run into the following validation error when using github-mcp-server in conjunction with Claude Code CLI:

After reviewing the official Model Context Protocol (MCP) specification, I found that no 64-character limit is defined for tool names or combined identifiers. This appears to be an implementation-specific constraint within this repo.


πŸ” Problem Summary

  • The github-mcp-server enforces a 64-character limit on tool names (possibly via schema validation).
  • This limit is not part of the MCP spec.
  • It creates friction for valid client tools (e.g. Claude Code) that generate descriptive or concatenated tool names.

πŸ›  Suggestions

  1. Remove or relax the 64-character limit
    Unless technically necessary, this constraint should be removed to comply with the MCP spec.

  2. Make it configurable
    If the limit is required (e.g. for DB/index safety), allow it to be set via environment variable or config.

  3. Document the implementation limit clearly
    Add a note in the README or a dedicated validation section to avoid confusion for tool developers.

  4. Improve the error message
    Recommend clarifying that the limit is from this server, not from MCP itself:

    "Tool name exceeds 64-character limit set by github-mcp-server (not MCP spec-defined)"


Thanks for your work on this β€” happy to help with a PR if the maintainers are open to adjustments!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions