Skip to main content

map_mcp_prompt_to_available_command

Function map_mcp_prompt_to_available_command 

Source
pub fn map_mcp_prompt_to_available_command(prompt: &Prompt) -> AvailableCommand
Expand description

Converts an MCP Prompt to an ACP AvailableCommand

Strips the MCP namespace from the prompt name (e.g., “coding__web” -> “web”) and creates a slash command that clients can invoke.