Skip to main content

call_mcp

Function call_mcp 

Source
pub async fn call_mcp(
    proxy_url: &str,
    method: &str,
    params: Option<Value>,
    token_env: Option<&str>,
    override_mcp_url: Option<&str>,
) -> Result<Value, ProxyError>
Expand description

Forward a raw MCP JSON-RPC message via the proxy’s /mcp endpoint.

token_env works the same way as for call_tool — see issue #121.

override_mcp_url works the same way as for call_tool — see issue #124.