nx_tools_api_gate.nx
buildroot/runtime/nx_tools_api_gate.nx
about
nx_tools_api_gate.nx -- drives ta_handle_pfx IN-PROCESS (no socket, no curl): register two test tools, then
assert the REST surface (/api/tools) and the MCP surface (/mcp: tools/list, initialize, error) are well-formed.
Proves R0 = MCP-compatible + superset, sovereignly. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_tools_api.nxnx_gate.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 7 | func tg_has(out: *u8, n: i64, needle: *u8) -> i64 { if ta_indexof(out, n, needle) >= 0 { return 1 } return 0 } |
| 9 | func tg_streq(p: i64, expect: *u8) -> i64 called by 1: main |
| 17 | func tg_slice_eq(buf: *u8, o2: *i64, expect: *u8) -> i64 called by 1: main |
| 25 | func tg_write(path: *u8, content: *u8) -> i64 called by 1: main |
| 33 | func main() -> i64 |