to_canonical_json

Function to_canonical_json 

Source
pub fn to_canonical_json(schema: &McpSchema) -> Result<String, Error>
Expand description

Serialize MCP schema to canonical JSON.

Uses sorted keys and consistent formatting for byte-identical output.