nx_mcp_control.nx
buildroot/runtime/nx_mcp_control.nx
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
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
| 6 | struct NxMcpControl |
| 15 | struct NxMcpControlFrame { mode: i64, key: i64, params: i64 } |
consts
| 19 | const MCT_OBJ_KEY: i64 = 1 |
| 20 | const MCT_OBJ_COLON: i64 = 2 |
| 21 | const MCT_OBJ_VALUE: i64 = 3 |
| 22 | const MCT_OBJ_NEXT: i64 = 4 |
| 23 | const MCT_OBJ_REQUIRED: i64 = 5 |
| 24 | const MCT_ARR_VALUE: i64 = 6 |
| 25 | const MCT_ARR_NEXT: i64 = 7 |
| 26 | const MCT_ARR_REQUIRED: i64 = 8 |
| 27 | const MCT_INITIALIZE: i64 = 1 |
| 28 | const MCT_INITIALIZED: i64 = 2 |
| 29 | const MCT_CANCEL: i64 = 3 |
| 30 | const MCT_OTHER: i64 = 4 |
functions
| 32 | func mct_frame(frames: *u8, index: i64) -> *NxMcpControlFrame called by 1: mct_scan |
| 36 | func mct_scan(t: *NxJsonTok, frames: *u8, scratch: *u8, out: *NxMcpControl) -> i64 |
| 152 | func mct_read(src: *u8, n: i64, out: *NxMcpControl) -> i64 |