Expand description
MCP tool-name parsing utilities.
Re-exports from vtcode-commons for backward compatibility.
Constants§
- MCP_
QUALIFIED_ TOOL_ PREFIX - The MCP tool name prefix used in model-visible form.
Functions§
- canonical_
tool_ name - Use direct tool name without alias resolution. Alias resolution is now handled by the tool registry inventory which maintains a mapping of aliases to canonical tool names.
- is_
legacy_ mcp_ tool_ name - Check if a tool name uses the legacy MCP format (
mcp_<provider>_<tool>). - legacy_
mcp_ tool_ name - Extract the tool name from a legacy MCP tool name.
- model_
visible_ mcp_ tool_ name - Build a model-visible MCP tool name from provider and tool name.
- parse_
canonical_ mcp_ tool_ name - Parse a canonical MCP tool name of the form
mcp::<provider>::<tool_name>.