Skip to main content
Glama

Rootpath is an incident agent that reasons over a FalkorDB graph of your services, deploys, feature flags, owners and past incidents. It follows a failure from the alert to where it starts, fixes it, checks the fix, and remembers. It runs inside the agent you already use: Claude Code, Codex, Cursor or any MCP host.

A recorded incident: the agent follows the graph from the alerting frontend three hops down to a feature flag, turns it off, verifies and remembers

Quickstart

curl -fsSL https://rootpath.iwhitebird.com/install.sh | sh
rootpath init

rootpath init asks where your FalkorDB is (local Docker, FalkorDB Cloud or any URL), tests the connection and connects your agents. Then, in Claude Code, inside your repository:

/rootpath:map
/rootpath:oncall checkout is throwing 500s

Or try the demo: seven services in Docker that you can break.

rootpath demo up
rootpath ui                # console at http://localhost:7100
rootpath chaos flag        # or bad-deploy, pool, deploy-noise, flag-collision, pool-after-deploy
rootpath watch --once      # the alert fires and a headless agent fixes it

Related MCP server: IncidentIQ

How it works

flowchart LR
  Team -- OWNS --> Service
  Service -- CALLS --> Service
  Person -- ON_CALL_FOR --> Team
  Runbook -- FOR --> Service
  Flag -- AFFECTS --> Service
  Deploy -- CHANGED --> Service
  FlagChange -- TOGGLED --> Flag
  Incident -- IMPACTED --> Service
  Incident -- ROOT_CAUSE --> Deploy
  Incident -- RESOLVED_BY --> Action
  Action -- BECAUSE --> Evidence
  Investigation -. STEP .-> Service

The agent decides

From the graph

Tool

where the failure starts

(alerting)-[:CALLS*0..6]->(d): the deepest unhealthy service whose dependencies are healthy

rank_suspects

which change matters

deploys via CHANGED, flag flips via TOGGLED → Flag → AFFECTS; anything off the failing path is ruled out

rank_suspects

what fixed it before

full-text index on incidents, then ROOT_CAUSE and RESOLVED_BY

find_similar_incidents

what a fix would break

upstream CALLS traversal

get_blast_radius

whether it may act

a matching dry-run Action from the last 15 minutes

safety hook

who to page

OWNS, ON_CALL_FOR, ESCALATES_TO

notify_owner

Afterwards it writes the incident back with a ROOT_CAUSE edge to the exact change, and every tool call as a STEP edge. The next agent, in a new session, finds it.

The graph is built three ways: /rootpath:map (Claude Code reads your compose files, manifests, CODEOWNERS, runbooks and flags, and writes through validated tools that require evidence for every dependency), rootpath ingest --watch (health, deploys and flag changes), and the agent itself.

flowchart LR
  A["Claude Code · Codex · Cursor<br/>or the headless watcher"] -- MCP --> M["Rootpath MCP server<br/>(local process)"]
  M -- read-only Cypher --> DB[("Your FalkorDB<br/>Docker or FalkorDB Cloud")]
  M -- rollback · restart · flag --> S["Your system"]
  S -- rootpath ingest --> DB

The Rootpath console mid-incident

Graph data model

(:Team)-[:OWNS]->(:Service)-[:CALLS {declared, optional, observed}]->(:Service)
(:Person)-[:ON_CALL_FOR]->(:Team)-[:ESCALATES_TO]->(:Team)
(:Runbook)-[:FOR]->(:Service)
(:Team)-[:OWNS]->(:Flag)-[:AFFECTS]->(:Service)

(:Change:Deploy {version, prev_version, at})-[:CHANGED]->(:Service)
(:Change:FlagChange {flag, from, to, at})-[:TOGGLED]->(:Flag)
(:Person)-[:AUTHORED]->(:Change)      (:Deploy)-[:ROLLED_BACK]->(:Deploy)

(:Incident)-[:IMPACTED]->(:Service)
(:Incident)-[:ROOT_CAUSE]->(:Change | :Service)
(:Incident)-[:RESOLVED_BY]->(:Action)-[:BECAUSE]->(:Evidence)
(:Action)-[:REVERTS]->(:Change)

(:Investigation)-[:FOR]->(:Incident)
(:Investigation)-[:STEP {n, tool, at}]->(any node the agent looked at)

Key Cypher

Every service that could be causing the alert:

MATCH p = (s:Service {name: $s})-[:CALLS*0..6]->(d:Service)
RETURN d.name AS service, min(length(p)) AS hops

Flag changes that reach those services, though nothing was deployed there:

MATCH (x:FlagChange)-[:TOGGLED]->(f:Flag)-[:AFFECTS]->(d:Service)
WHERE d.name IN $names AND x.at >= $since
RETURN d.name, x

Tie-breaking and the evidence path:

CALL algo.betweenness({nodeLabels: ['Service'], relationshipTypes: ['CALLS']}) YIELD node, score

MATCH (a:Service {name: $a}), (b:Service {name: $b})
CALL algo.SPpaths({sourceNode: a, targetNode: b, relTypes: ['CALLS'], pathCount: 1}) YIELD path

Incident memory, a full-text index plus the graph:

CALL db.idx.fulltext.queryNodes('Incident', $q) YIELD node, score RETURN node.id AS id, score

MATCH (i:Incident)-[:IMPACTED|ROOT_CAUSE]->(s:Service {name: $s}) RETURN DISTINCT i.id AS id

MATCH (i:Incident) WHERE i.id IN $ids AND i.status = 'resolved'
OPTIONAL MATCH (i)-[:ROOT_CAUSE]->(rc)
OPTIONAL MATCH (i)-[:RESOLVED_BY]->(a:Action)
RETURN i.id, collect(DISTINCT rc), collect(DISTINCT a)

Who to page:

MATCH (t:Team)-[:OWNS]->(s:Service {name: $s})
OPTIONAL MATCH (p:Person)-[:ON_CALL_FOR]->(t)
OPTIONAL MATCH (t)-[:ESCALATES_TO]->(e:Team)
OPTIONAL MATCH (ep:Person)-[:ON_CALL_FOR]->(e)
RETURN t.name, p.handle, e.name, ep.handle

The safety hook, itself a query: no real action without a dry run.

MATCH (a:Action {kind: $kind, target: $target, dry_run: true}) WHERE a.at >= $since RETURN count(a)

Benchmark

The same agent (Claude Opus 5.5, headless) and the same remediation tools on six injected failures, with the graph and without it. Baseline gets only health, logs and a flat list of changes. Every scenario ran twice per mode, with and without tracing: 48 runs.

graph

baseline

clean fixes

24/24

23/24

service logs read before the fix

24

63

agent time

1051 s

1362 s

cost

$3.30

$3.35

With tracing, both agents find the cause; the graph gets there reading fewer logs. The one baseline miss rolled back a healthy fraud-check release before turning the flag off. Two runs per cell is a small sample. Every run is in bench/.

Safety

  • Agent queries are read-only: GRAPH.RO_QUERY with a timeout and a row cap.

  • Actions are dry runs by default. A Claude Code hook refuses a real action without a recent dry run, or during a change freeze, and fails closed.

  • rootpath watch --autonomy propose makes the server refuse real actions.

  • The headless agent gets only the Rootpath tools: no shell, file or web access.

Agents

  • Claude Code: rootpath init installs the plugin, or run /plugin marketplace add IWhitebird/rootpath and /plugin install rootpath@rootpath. Skills: /rootpath:map, /rootpath:oncall, /rootpath:blast-radius, /rootpath:postmortem.

  • Codex, Cursor, any MCP host: rootpath mcp over stdio, or http://localhost:7100/mcp while rootpath start is running. The playbook for Codex is in AGENTS.md.

CLI

Command

rootpath init

connect a FalkorDB and your agents

rootpath start, stop, status

background server: console, ingest and MCP over HTTP

rootpath mcp

MCP server on stdio

rootpath demo up, down, reset

the demo stack

rootpath chaos <scenario>

break something

rootpath watch

alert watcher that starts the headless agent

rootpath bench

the benchmark above

Development

uv sync
uv run pytest tests/test_unit.py           # no Docker needed
uv run pytest tests/test_integration.py    # against the demo stack
uv run ruff check . && uv run ruff format --check .
cd web && npm ci && npm run build          # website and console

AI assistance

Built with Claude Code as a pair programmer: it wrote much of the code under my direction. The design, decisions, review and testing are mine.

License

Apache-2.0. FalkorDB is licensed separately.

Available Tools

24 tools
add_dependencyA

Record that caller calls callee. evidence must say where you saw it (file and key or line).

Inputs: callee (required), caller (required), evidence (required), optional.

add_runbookC

Attach a runbook (plain-text steps) to a service.

Inputs: steps (required), title (required), service (required), runbook_id (required).

explain_incidentB
Read-only

The full evidence chain for an incident: impacted services, root cause, actions and why.

Inputs: incident_id (required).

find_similar_incidentsA
Read-only

Search incident memory: full-text match on past symptoms, boosted when the past incident involved the same service. Returns root causes and what fixed them.

Inputs: symptom (required), limit, service.

get_blast_radiusB
Read-only

Who is affected if service misbehaves (upstream callers) and what it depends on (downstream).

Inputs: service (required).

get_logsC
Read-only

Recent log entries, de-duplicated: distinct messages with counts, plus the latest entries.

Inputs: service (required), lines, contains.

get_ownerC
Read-only

Owning team, who is on call, escalation path and runbooks for a service.

Inputs: service (required).

get_service_healthC
Read-only

Live health from the services' stats endpoints (last 20s).

Inputs: service.

map_overviewA
Read-only

What the graph already knows: counts per node label, every service with its owner and dependencies, teams and flags. Call this before mapping so you update instead of duplicating.

Inputs: no named parameters.

notify_ownerC

Page the on-call person of the owning team (Slack/Discord webhook if configured).

Inputs: message (required), service (required), incident_id.

open_incidentB

Open an incident in the graph (or return the one already open for these services).

Inputs: title (required), symptom (required), impacted_services (required), severity.

query_graphA
Read-only

Escape hatch: run your own read-only Cypher (RO_QUERY, 2s timeout, max 100 rows).

Inputs: cypher (required).

rank_suspectsA
Read-only

Rank root-cause suspects for a symptom by walking the dependency graph downstream from it, combining live health, recent changes (deploys + flag flips), and betweenness centrality. Also returns the top suspect's runbooks and the past incidents caused there, with their fixes.

Inputs: symptom_service (required), window_minutes.

recent_changesB
Read-only

Deploys and feature-flag flips in the time window, scoped through the graph to service (plus everything it depends on, and flags that affect those services).

Inputs: minutes, service, include_dependencies.

record_changeA

Record a deploy (kind="deploy": service, version, prev_version) or a flag flip (kind="flag": flag, enabled) that happened at at_iso (ISO 8601; default now).

Inputs: kind (required), author (required), flag, note, +5 more.

register_flagC

Register a feature flag and the services whose behaviour it changes.

Inputs: flag (required), affects (required), team, description.

resolve_incidentB

Close the incident and write what was learned into incident memory.

Inputs: summary (required), incident_id (required), root_cause_service (required), root_cause_change_id.

restart_serviceC
Destructive

Restart a service's container (clears in-memory state such as stuck connection pools).

Inputs: reason (required), service (required), dry_run, incident_id.

rollback_serviceC
Destructive

Redeploy the version that ran before the latest deploy of service.

Inputs: reason (required), service (required), dry_run, incident_id.

set_feature_flagC
Destructive

Turn a feature flag on or off (takes effect within a second, no deploy).

Inputs: flag (required), reason (required), enabled (required), dry_run, +1 more.

set_teamC

Create or update a team: chat channel, members, who is on call now, and the team it escalates to.

Inputs: team (required), channel, members, on_call, +1 more.

trace_dependency_pathB
Read-only

Shortest call path between two services (algo.SPpaths), with live health per hop.

Inputs: to_service (required), from_service (required).

upsert_serviceB

Create or update a service (and its owning team). tier: 1 = user-facing or critical, 3 = background.

Inputs: name (required), team, tier, description, +1 more.

verify_recoveryA
Read-only

Poll live health until service is healthy for two consecutive samples (or time out).

Inputs: service (required), timeout_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 24 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes across graph discovery, diagnostics, incident lifecycle, and topology writes. A few read-only graph tools such as get_blast_radius, trace_dependency_path, and recent_changes are related but distinguishable by their descriptions.

    Naming Consistency4/5

    The set is predominantly consistent snake_case with verb_noun names such as get_logs, open_incident, resolve_incident, and rollback_service. Minor deviations like recent_changes and map_overview are still readable and fit the domain.

    Tool Count3/5

    At 24 tools, the surface is heavy for an incident-response server and borders on being difficult to scan. Each tool has a role, but the count could likely be reduced by combining some graph-reading operations.

    Completeness4/5

    The server covers the core lifecycle well: discovery, diagnosis, incident opening/resolution, ownership, runbooks, change tracking, flags, and recovery actions. Minor gaps exist around deleting or updating certain entities such as dependencies and runbooks, though query_graph provides an escape hatch for reads.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables users to investigate infrastructure incidents in plain English, correlate observability and deploy data with runbooks, and get evidence-backed root-cause proposals with approval-gated remediation.
      5
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to autonomously investigate simulated production incidents by checking live service health, logs, deployments, and database status while retrieving relevant historical postmortems and runbooks to propose evidence-backed root causes.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to trace upstream dependencies and downstream blast radius across a Neo4j-modeled service topology, rank root-cause hypotheses, and score composite risk from graph, temporal, git-diff, and trace signals. It also stages rollback-ready remediation plans that execute only after human approval and the required scope.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to traverse a FalkorDB service graph by reading topology and open incidents, running graph algorithms, and executing multi-hop root-cause investigations whose LOCATE, SUGGEST and PROPOSE stages persist as resumable traces. It also surfaces episodic memories and searches runbooks and ownership records, while keeping raw Cypher, tenant switching, approvals and simulation out of reach.
      MIT