Skip to content

Claude agent: preserve configured MCP server names in SDK tool names (no index-based renaming) #1835

Description

@atsushi-ishibashi

Request

Guarantee that MCP server names configured via ACP mcpServers are preserved verbatim in the SDK tool names for the packaged Claude agent (mcp__<configured-name>__<tool>). If the current adapter renames servers to index-based names (mcp-1, mcp-2, …), please fix it, and add a regression test on the tool-name shape.

Why

Observed with the 0.1.x adapter (@rivet-dev/agent-os-claude), where servers were renamed by index:

  • Tool names became mcp__mcp-1__ask_question instead of mcp__deepwiki__ask_question, which hurts the model's tool selection and makes tool-call logs/permission prompts unreadable.
  • Tool identity is unstable: adding/removing a server shifts the indices, so allowlists or analytics keyed by tool name silently break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions