ADR 0005 — AI surface: MCP over the tree, agent as a connector
Status: accepted · 2026-10-20
Decision
tools/wyrm-mcp: an MCP server overwyrm-client(stdio and HTTP) exposingtree_list/resolve/meta,value_get/history,node_set/action_invoke(alwaysdry_runfirst; config-level only withapproval_id),profiles/device_models,flow_*,link_*,spec. Runs with a service-accountptok; auditorigin=ai:<agent>.links/agent: an ordinary connector exposing tasks as nodes (tasks/<id>/~valstate machineplanning → awaiting_approval → running → done|failed,~act/approve|reject|cancel). Uses an LLM + the same MCP tools + a device-model catalog underpub/models/<vendor>/<model>. Human approval is enforced byptok.maxperm, not by prompt.- Flow node
llmfor small in-flow tasks with token budget and caching. wyrgains dev commands:new link|flow,dev(hot-reload),sim,replay,ai,mcp. Repo ships.claude/skills/wyrm-linkandwyrm-flow.
Why
The tree is self-describing (~meta types, action param schemas, profiles, resolve filters), so the MCP layer is mechanical and the agent needs no privileged path. Safety comes from the existing authorization model, not from the model’s behaviour.
Phase
Iteration 9, after core, control-plane, flow and security.