Skip to main content

generate_mcp_config

Function generate_mcp_config 

Source
pub fn generate_mcp_config(_agent: &AgentKind, config: &McpConfig) -> String
Expand description

Generate an MCP configuration snippet for the given agent.

Returns a JSON string that can be written to the agent’s config file or appended to an existing config.

All agent types share the same mcpServers JSON format; the agent parameter is kept for forward-compatibility with format divergence.