Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/mailhand/blob/main/tests/drv/mcp_stub.om # mailhand mailhand: agents look after a person's email in seeded Omega. Maildir + MIME parsing, JSONL CLI and MCP, rule triage, policy-gated sending, hash-chained audit. Free (Apache-2.0). Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `mailhand / tests / drv / mcp_stub.om` 34 lines ยท 629 bytes Raw Blame History 1 note Test-only CLI: report the exact dispatched name and every q_addks argument, including lengths. 2 text mcst_op "op" 3 text mcst_args "args" 4 text mcst_k "key" 5 text mcst_v "value" 6 text mcst_n "bytes" 7 text mcst_fail "stub-fail" 8 text mcst_id "id" 9 fn cli_run s ulong off ulong n ulong to int 10 o_ob 11 o_kr mcst_op s off n 12 o_k mcst_args 13 o_ab 14 p = ulong 0 15 while lt p s_len S_REQ bound `9223372036854775807` 16 kl = ulong s_get S_REQ p 17 vo = add add p 1 kl 18 vl = q_u64 vo 19 o_ob 20 o_kr mcst_k S_REQ add p 1 kl 21 o_kr mcst_v S_REQ add vo 8 vl 22 o_ku mcst_n vl 23 o_oe 24 p = add add vo 8 vl 25 end 26 o_ae 27 o_oe 28 o_nl 29 o_flush 30 if q_is mcst_id mcst_fail 31 ret 3 32 end 33 ret 0 34 end