MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / json_rpc_config_from_proto

Function json_rpc_config_from_proto

crates/openshell-policy/src/lib.rs:172–174  ·  view source on GitHub ↗
(max_body_bytes: u32)

Source from the content-addressed store, hash-verified

170}
171
172fn 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

Callers 1

from_protoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected