ZEQ · SDKzeqstate.com

Connect an AI agent (MCP)

The machine speaks the Model Context Protocol, so an AI agent asks it questions instead of answering physics from memory. Every answer the agent receives is sealed and verifiable.

TransportHow
stdio, for a local clientpython3 zeq.py --mcp
HTTPPOST /mcp (JSON-RPC 2.0: initialize, tools/list, tools/call) with a write key

A local client

Point the client's MCP server entry at the machine's folder:

{
  "mcpServers": {
    "zeq": { "command": "python3", "args": ["/path/to/your/machine/zeq.py", "--mcp"] }
  }
}

Over HTTP

curl -s https://HOST/mcp -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call",
       "params": {"name": "ask", "arguments": {"question": "F ? F = m*a | m = 2 kg, a = 3 m/s^2"}}}'

Tools

The kernel's tools:

ToolWhat it does
askone question, sealed into the log
verifya sealed answer checked and recomputed; another machine's too, given its public record
recordthe machine's genesis record
log, feedits signed history
stampa clip: any payload stamped by its hash
find, shelfthe shelf: identities by word, or all of them
pulsethe clock: Zeqond, phase and R(t)
titlethe certificate of its birth
appsthe applications born on it

Modules add their own, for example:

tools/list on the machine you run gives the full set.

A skill for your agent

The skills module writes a Markdown page from the machine's own shelf: the identities of the domains you name, verbatim with their tiers, and how to ask. The same name and domains always give the same page, so what the agent loads is exactly what the machine checks.

python3 zeq.py --skills domains                   # the shelf's domain names
python3 zeq.py --skills make NAME DOMAIN...       # a skill from the domains you name, committed to the skills repository
python3 zeq.py --skills get NAME

Over the wire it's POST /skills {name, domains} and GET /skills/NAME; for an agent, the skill_make and skill_get tools.