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.
| Transport | How |
|---|---|
| stdio, for a local client | python3 zeq.py --mcp |
| HTTP | POST /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:
| Tool | What it does |
|---|---|
ask | one question, sealed into the log |
verify | a sealed answer checked and recomputed; another machine's too, given its public record |
record | the machine's genesis record |
log, feed | its signed history |
stamp | a clip: any payload stamped by its hash |
find, shelf | the shelf: identities by word, or all of them |
pulse | the clock: Zeqond, phase and R(t) |
title | the certificate of its birth |
apps | the applications born on it |
Modules add their own, for example:
export,notebook;repo_commit,repo_read;skill_make,skill_get;vault_get,contract_list,reactor_step;connect_call,rpn,zeq_system.
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.