code wiki / (root) / nx_mcp_envelope.nx

nx_mcp_envelope.nx

buildroot/runtime/nx_mcp_envelope.nx

3036 B62 linesdepth 5pulls 5 transitivereach 50 importersview sourcekind librarytopic mcp
docsdependenciesstructsconstsfunctions

about

Native MCP envelope selection. Reuses the estate value parser. Spans refer to original request bytes; nested params cannot supply envelope fields.

dependencies 1 imports · 8 importers

nx_value_parse_json.nx nx_mcp_envelope.nx nx_mcp_envelope_gate.nx nx_tools_api.nx nx_tools_api_candidate_t182.nx nx_tools_api_canonical_candidate_t nx_tools_api_idem_candidate_t190.n nx_tools_api_recovery_candidate_t3 nx_tools_api_recovery_candidate_v2 nx_tools_api_recovery_candidate_v3

imports: nx_value_parse_json.nx

imported by: nx_mcp_envelope_gate.nxnx_tools_api.nxnx_tools_api_candidate_t182.nxnx_tools_api_canonical_candidate_t182.nxnx_tools_api_idem_candidate_t190.nxnx_tools_api_recovery_candidate_t316.nxnx_tools_api_recovery_candidate_v2_t316.nxnx_tools_api_recovery_candidate_v3_t316.nx

structs

4struct NxMcpEnvelope { id_off: i64, id_len: i64, method_off: i64, method_len: i64 }

consts

5const NX_MCP_ENVELOPE_BYTES: i64 = 4 * 8

functions

6func nme_equal(v: *NxValue, s: *u8, n: i64) -> i64
called by 1: nme_read calls 1: nx_value_bytes_equal
12func nme_read(src: *u8, n: i64, e: *NxMcpEnvelope) -> i64