SovereignCapabilities Gateway

v1.0 · MIT · Rust · no new dependencies

You have 109 agent capabilities registered on this machine — browser automation, code execution, memory search, CLI tools, live services — and until now the only way to reach them was a local Rust CLI. Nothing outside the box could discover them, and nothing could call them.

This gateway is that missing surface. A hand-rolled HTTP/1.1 server on tokio::net that reuses the same manifest and the same dispatch engine: no new crates, no proxy layer, no re-plumbing. Point any client, agent, or script at it and every capability becomes an HTTP endpoint.

Routes

GET  /health                  -> {"ok":true,"capabilities":N}
GET  /capabilities            -> full catalog (id, name, kind, target, input_schema)
GET  /capabilities/<id>       -> one descriptor
POST /dispatch                -> {"capability":"<id>","input":{...}}

Call a capability

curl -s -X POST localhost:17700/dispatch \
  -H 'Content-Type: application/json' \
  -d '{"capability":"mesh.hive","input":{"args":["--help"]}}'

Returns {"capability":"mesh.hive","ok":true,"output":{"exit_code":0,"output":"..."}}. Schema-invalid payloads and unknown ids return honest JSON errors — never a silent 200.

Install

unzip CLI-Anything_SovereignCapabilities_Gateway_v1.0.zip
cd sovcap-gateway
SOVCAP_DIR=/path/to/SovereignCapabilities ./install.sh

The installer builds the binary, drops it into src/bin/, writes a systemd user unit with Restart=always, enables it, sets linger so it survives logout and reboot, then health-checks the result. Idempotent — safe to re-run.

What ships

Verified end-to-end before shipping: catalog enumerates all 109 capabilities, live CLI dispatch returns real exit codes and output, schema rejection returns an explicit error, and the systemd unit re-serves after restart. Also install-verified from a clean-room copy of the checkout, not just the source tree.