Skip to content

Integrate

Model Context Protocol (MCP)

Connect Reactive Skills as a stdio tool server for GUI agent environments and host-integrated tool workflows.

MCP as a host-integrated transport

The Model Context Protocol (MCP) enables GUI agent hosts to interact with external tools over JSON-RPC. Use it when the host provides MCP tool integration or when a persistent stdio bridge fits the workflow.

Local-first runtime selection

During INIT, Reactive Skills checks MCP and AXI capabilities and versions, then selects one compatible local transport for the run. AXI remains available through a direct command or its npx zero-install launcher.

When attached, the Reactive Skills MCP server exposes tools for state inspection, signal emission, query execution, sync distribution, and migration, alongside append-only event resources.

Start the stdio server

bash
npx -y @reactive-skills/axi mcp
Launches the Reactive Skills MCP server over stdio using the unified package entrypoint. It prints nothing and waits for an MCP client to connect over stdin and stdout.

Configure Cursor or VS Code

The easiest route is npx -y @reactive-skills/axi setup, which writes the entry below into every detected client, pinned to the exact installed version (or the absolute script path for a global install). It also rewrites older entries that use the bare reactive-skills-axi name or an unpinned version, and --dry-run previews the changes. A pinned entry never moves on its own, so re-run setup after upgrading to re-pin it. To configure by hand, add the server definition to your client’s MCP settings, replacing <version> with the version you want to run.

json
{
  "mcpServers": {
    "reactive-skills-axi": {
      "command": "npx",
      "args": ["-y", "@reactive-skills/axi@<version>", "mcp"]
    }
  }
}
Add to client MCP settings and reload. Always pin the scoped package to an exact version; the unscoped `reactive-skills-axi` alias is not a supported way to launch the server.

Configure Claude Desktop

Claude Desktop consumes the same stdio server definition inside its config file.

json
{
  "mcpServers": {
    "reactive-skills-axi": {
      "command": "npx",
      "args": ["-y", "@reactive-skills/axi@<version>", "mcp"]
    }
  }
}
Save configuration and restart Claude Desktop to enable reactive state and signal tools.

Registered tools and capabilities

  • reactive_state — read the active state, active path, and context snapshot.
  • reactive_emit_signal — dispatch a typed signal into the bus to advance the FSM.
  • reactive_query — run structured queries against the skill state and event ledger.
  • reactive_query_events — bounded replay of the append-only event stream.
  • reactive_inspect — inspect statecharts, transitions, and guard contracts.
  • reactive_invoke_skill — invoke and orchestrate child skills.
  • reactive_respond_human — respond to Human-in-the-Loop (HITL) review gates.
  • reactive_reset — reset active execution run while preserving deliverables.
  • reactive_sync — synchronize skills across authoring workspaces and agent satellites via zero-drift junctions.
  • reactive_migrate — apply schema migrations and WAL recovery to event stores.

Structured failure diagnostics

When a guard check or transition fails, the server returns structured error metadata rather than raw stack traces. Each failure specifies what invariant failed and the concrete remediation action.

Example recovery payload

Guard "exit_code == 0" evaluated to false on signal TEST_RAN — recovery: inspect failure output in events ledger, apply code fix, and re-emit TEST_RAN.