(max_body_bytes: u32)
| 170 | } |
| 171 | |
| 172 | fn json_rpc_config_from_proto(max_body_bytes: u32) -> Option<JsonRpcConfigDef> { |
| 173 | (max_body_bytes > 0).then_some(JsonRpcConfigDef { max_body_bytes }) |
| 174 | } |
| 175 | |
| 176 | // MCP rides the same HTTP/JSON-RPC inspection machinery at runtime, but it |
| 177 | // gets its own policy stanza so user-authored YAML can name the primary |