Skip to main content

strip_mcp_prefix

Function strip_mcp_prefix 

Source
pub fn strip_mcp_prefix(tool_name: &str) -> &str
Expand description

MCP prefixes stripped, or the name itself when it carries none.

Total form of mcp_tool_display_name for surfaces that never show the prefix. The legacy single-underscore arm runs last, so it cannot misfire on the qualified mcp__ form.