Skip to content

API Reference ​

TIP

Use this page as the hub. Deep tool schemas and endpoint lists are summarized here; always verify against node dist/index.js --help and source files when shipping changes.

1. CLI (Commander) ​

  • Entry: src/index.ts registers the program as cm.
  • Registry: src/cli/command-registry.ts calls registerAllCommands.
  • Verification:
bash
npm run build
node dist/index.js --help

2. Dashboard HTTP API ​

  • Implementation: src/dashboard.ts (Express).
  • Starts with: cm dashboard start (src/cli/commands/dashboard.ts).
  • Default URL: http://localhost:6969 (see DEFAULT_PORT in src/data.ts).
  • Data backing store: ~/.codymaster/kanban.json (src/data.ts).

The dashboard exposes REST-style routes for Mission Control operations (projects, tasks, deployments, changelog, continuity helpers). Inspect src/dashboard.ts for the authoritative route table when you extend the UI.

3. Browse daemon HTTP API ​

  • Implementation: src/browse-server.ts.
  • Typical endpoints: /health, /session/start, /navigate, /click, /fill, /screenshot, /console, /network (see file for exact contracts).
  • Security model: bearer token for non-health routes (see server source).

4. MCP (stdio JSON-RPC) ​

  • Server: src/mcp-context-server.ts
  • Launch pattern:
bash
node dist/mcp-context-server.js --project /absolute/path/to/repo
  • Protocol: JSON-RPC 2.0 with Content-Length framing on stdio.
  • Tool catalog: tools/list returns schemas defined in TOOLS array in src/mcp-context-server.ts.

MCP tools (18 total) ​

ToolPurposeAdded
cm_queryFTS5 BM25 search across learnings/decisionsv4.5.0
cm_resolveResolve cm:// URIs at L0/L1/L2 depthv4.5.0
cm_bus_readRead context bus statev4.5.0
cm_bus_writePublish skill output to context busv4.5.0
cm_budget_checkToken budget preflight by categoryv4.5.0
cm_memory_decayTTL-based archival of expired learningsv4.5.0
cm_index_refreshRegenerate L0 compact indexesv4.5.0
cm_advisory_reportAdvisory analyses as structured JSONv5.1.0
cm_advisory_metricsSkill metrics + quality weights as structured JSONv5.1.0
cm_advisory_handoffStructured recovery handoff for self-healing skillsv5.1.0
cm_planSprint + pipeline snapshot bridgev4.8.0
cm_reviewReview artifact hintsv4.8.0
cm_qaQA workflow hintsv4.8.0
cm_deployDeploy workflow hintsv4.8.0
cm_searchSearch learnings/decisions (alias)v4.8.0
cm_memory_queryMemory search (alias)v4.8.0
cm_memory_writeNEW v5.1 β€” Persist a learning with auto-detected category, scope, TTLv5.1.0
cm_naturalNEW v5.1 β€” NLI router: "remember that…" / "forget…" / "what did we learn…"v5.1.0

Launch with cm mcp-serve (v5.1+) ​

bash
# Start MCP server (stdio)
cm mcp-serve --project /path/to/project

# Print Goose or Claude Desktop config snippet
cm mcp-serve --print-config

CodyMaster β€” AI-assisted engineering toolkit