Documentation Menu · Interop, Serve & MCP Agents
Interop, Serve & MCP Agents
Call compiled Hector from 7 host languages, run TLS 1.3 HTTP services with O(1) provenance, or connect AI agents via 29 native MCP tools.
Native Shared Libraries (ABI v16) #
Run hector build <program> --lib -o libapp.so to compile a W^X shared library with generated typed bindings across 7 host languages: C, C++, C#, Go, Rust, Node.js, and TypeScript (plus OpenAPI 3.1 contracts).
- Row Authority (
--row-access): Embeds row-level authority directly inside the delivered library contract. - Zero-Downtime Compatibility (
--admits older.hector): One compiled library accepts bindings from older compatible versions when major treaty guarantees hold. - Atomic Batches (
hx_send_batch&hx_submit_batch): Single-lock fast path skipping text encoding when no text arguments exist.
#include "program.g.h"
hx_world *world = hx_open(NULL);
hx_outcome r = hx_Send(world, 1, alice_acct, bob_acct, 35000, alice_person);
if (r.kind == HX_REFUSED) {
printf("Refused status=%u\n", r.code);
}
Production HTTP Server (hector serve) #
hector serve embeds native OS event loops (RIO, epoll, kqueue), TLS 1.3 + fail-closed mTLS, Bearer auth, POST /events/<event> with Idempotency-Key, /healthz, /readyz, /metrics, and O(1) provenance queries via /why (via WhyIndex, hidden from unauthenticated observers).
Signed .orp Bundles & hector absorb #
hector bundle pack emits deterministic deployment bundles carrying bytecode/Wasm, CALM monotonicity metadata, and fail-closed Ed25519 signatures. hector absorb migrates existing SQL schemas, OpenAPI specs, and production traces (CutoverJournal / shadow).
29 MCP Tools for AI Agents #
Hector exposes a dedicated thin JSON-RPC MCP server (hector mcp serve) with 29 agent tools (workspace, map, questions, card, propose, answer, try, status, dossier, review, lanes, explain, why, chosen, guide, config, scenes, explore, whynot, whatif, diff, fix, treaty, absorb, shadow, apply_ops, hole_context, next, fill) plus author admit/reject.
{
"mcpServers": {
"hector": {
"command": "hector",
"args": ["mcp", "serve", "./my-room"]
}
}
}