Skip to main content

as_unknown_method

Function as_unknown_method 

Source
fn as_unknown_method(body: &[u8]) -> Option<McpRequest>
Expand description

The request body would produce if McpMethod::Unknown accepted params, or None when its method is one we know, whose parse error must stand.

#[serde(other)] only matches a unit variant, so an unknown method with params fails the whole body. Every 2026-07-28 client sends params.