Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MCP overview

Castellan exposes stigmergy and harness tools via castellan mcp (stdio CLI) and live episodes (castellan run --mcp).

Start the server

castellan mcp

Wire your MCP client to stdin/stdout JSON-RPC (same surface as cargo run -p castellan-mcp).

Quick tool list

ToolDescription
castellan_discover_toolsBrowse tool domains
castellan_search_toolsKeyword search
castellan_describe_toolFull schema for one tool
castellan_deposit_signalDeposit stigmergic signal
castellan_read_blackboardRead blackboard slot
castellan_topology_snapshotHarness topology JSON
castellan_multiplexer_statusDashboard statusline
castellan_propose_mutationTopology mutation (governed)

Full catalog with live-column and governance notes: MCP tools.

Operational tools in LIVE_TOOL_NAMES are available on castellan run --mcp (see crates/castellan-runtime/src/mcp/registry.rs).

Live episode example

{
  "mcp_tools": [
    {
      "tool": "castellan_deposit_signal",
      "args": { "zone": "grid", "signal": "coordination", "amount": 2.0 }
    }
  ]
}

Governance pre/post hooks apply on the MCP hot path when --mcp is set.

Editor integration