From a9d9005bac993836a58e8604c173f40a5c6943d1 Mon Sep 17 00:00:00 2001 From: Nyk <0xnykcd@googlemail.com> Date: Sat, 21 Mar 2026 21:41:36 +0700 Subject: [PATCH] docs: add agent control interfaces section to CLAUDE.md --- CLAUDE.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 8a60cf6..33e0b01 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -72,6 +72,31 @@ Database path: `MISSION_CONTROL_DB_PATH` (defaults to `.data/mission-control.db` - **Icons**: No icon libraries -- use raw text/emoji in components - **Standalone output**: `next.config.js` sets `output: 'standalone'` +## Agent Control Interfaces + +Mission Control provides three interfaces for autonomous agents: + +### MCP Server (recommended for agents) +```bash +# Add to any Claude Code agent: +claude mcp add mission-control -- node /path/to/mission-control/scripts/mc-mcp-server.cjs + +# Environment config: +MC_URL=http://127.0.0.1:3000 MC_API_KEY= +``` +35 tools: agents, tasks, sessions, memory, soul, comments, tokens, skills, cron, status. +See `docs/cli-agent-control.md` for full tool list. + +### CLI +```bash +pnpm mc agents list --json +pnpm mc tasks queue --agent Aegis --max-capacity 2 --json +pnpm mc events watch --types agent,task +``` + +### REST API +OpenAPI spec: `openapi.json`. Interactive docs at `/docs` when running. + ## Common Pitfalls - **Standalone mode**: Use `node .next/standalone/server.js`, not `pnpm start` (which requires full `node_modules`)