pub async fn dispatch_request(
request: &JsonRpcRequest,
client: &mut McpClient,
) -> Option<JsonRpcResponse>Expand description
Dispatch a JSON-RPC request to the appropriate handler.
Supports the MCP methods needed for tool proxy:
initialize/notifications/initializedtools/list/tools/callresources/list/resources/readprompts/list/prompts/get
Returns a JSON-RPC response. Notifications (no id) return None.