code wiki / (root) / nx_mcp_control.nx

nx_mcp_control.nx

buildroot/runtime/nx_mcp_control.nx

7513 B180 linesdepth 6pulls 11 transitivereach 23 importersview sourcekind librarytopic mcp
docsdependenciesstructsconstsfunctions

about

Borrowed MCP control metadata. JSON stays at the boundary; no value tree survives in the long-lived connector. Scratch sizes derive from this input.

dependencies 2 imports · 8 importers

nx_json.nx nx_mcp_route.nx nx_mcp_control.nx nx_mcp_control_gate.nx nx_mcp_pending.nx nx_mcp_pending_candidate_t230.nx nx_mcp_pending_http_t174.nx nx_mcp_stdio.nx nx_mcp_stdio_candidate_t230.nx nx_mcp_stdio_http_t174.nx nx_mcp_stdio_sse_t316.nx

imports: nx_json.nxnx_mcp_route.nx

imported by: nx_mcp_control_gate.nxnx_mcp_pending.nxnx_mcp_pending_candidate_t230.nxnx_mcp_pending_http_t174.nxnx_mcp_stdio.nxnx_mcp_stdio_candidate_t230.nxnx_mcp_stdio_http_t174.nxnx_mcp_stdio_sse_t316.nx

structs

6struct NxMcpControl
15struct NxMcpControlFrame { mode: i64, key: i64, params: i64 }

consts

19const MCT_OBJ_KEY: i64 = 1
20const MCT_OBJ_COLON: i64 = 2
21const MCT_OBJ_VALUE: i64 = 3
22const MCT_OBJ_NEXT: i64 = 4
23const MCT_OBJ_REQUIRED: i64 = 5
24const MCT_ARR_VALUE: i64 = 6
25const MCT_ARR_NEXT: i64 = 7
26const MCT_ARR_REQUIRED: i64 = 8
27const MCT_INITIALIZE: i64 = 1
28const MCT_INITIALIZED: i64 = 2
29const MCT_CANCEL: i64 = 3
30const MCT_OTHER: i64 = 4

functions

32func mct_frame(frames: *u8, index: i64) -> *NxMcpControlFrame
called by 1: mct_scan
36func mct_scan(t: *NxJsonTok, frames: *u8, scratch: *u8, out: *NxMcpControl) -> i64
152func mct_read(src: *u8, n: i64, out: *NxMcpControl) -> i64