Rootpath MCP Server
Allows the incident agent to inspect and act on a Dockerized microservice stack, using Docker Compose labels and environment data to map service topology, read service health/logs, and restart or roll back services during incident remediation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Rootpath MCP Server frontend is throwing 50% errors — find the real root cause and fix it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.

Quickstart
curl -fsSL https://rootpath.iwhitebird.com/install.sh | sh
rootpath initrootpath 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 500sOr 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 itRelated 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 .-> ServiceThe agent decides | From the graph | Tool |
where the failure starts |
|
|
which change matters | deploys via |
|
what fixed it before | full-text index on incidents, then |
|
what a fix would break | upstream |
|
whether it may act | a matching dry-run | safety hook |
who to page |
|
|
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
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 hopsFlag 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, xTie-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 pathIncident 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.handleThe 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_QUERYwith 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 proposemakes the server refuse real actions.The headless agent gets only the Rootpath tools: no shell, file or web access.
Agents
Claude Code:
rootpath initinstalls the plugin, or run/plugin marketplace add IWhitebird/rootpathand/plugin install rootpath@rootpath. Skills:/rootpath:map,/rootpath:oncall,/rootpath:blast-radius,/rootpath:postmortem.Codex, Cursor, any MCP host:
rootpath mcpover stdio, orhttp://localhost:7100/mcpwhilerootpath startis running. The playbook for Codex is inAGENTS.md.
CLI
Command | |
| connect a FalkorDB and your agents |
| background server: console, ingest and MCP over HTTP |
| MCP server on stdio |
| the demo stack |
| break something |
| alert watcher that starts the headless agent |
| 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 consoleAI 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 toolsadd_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_incidentBRead-only
The full evidence chain for an incident: impacted services, root cause, actions and why.
Inputs: incident_id (required).
find_similar_incidentsARead-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_radiusBRead-only
Who is affected if service misbehaves (upstream callers) and what it depends on (downstream).
Inputs: service (required).
get_logsCRead-only
Recent log entries, de-duplicated: distinct messages with counts, plus the latest entries.
Inputs: service (required), lines, contains.
get_ownerCRead-only
Owning team, who is on call, escalation path and runbooks for a service.
Inputs: service (required).
get_service_healthCRead-only
Live health from the services' stats endpoints (last 20s).
Inputs: service.
map_overviewARead-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_graphARead-only
Escape hatch: run your own read-only Cypher (RO_QUERY, 2s timeout, max 100 rows).
Inputs: cypher (required).
rank_suspectsARead-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_changesBRead-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_serviceCDestructive
Restart a service's container (clears in-memory state such as stuck connection pools).
Inputs: reason (required), service (required), dry_run, incident_id.
rollback_serviceCDestructive
Redeploy the version that ran before the latest deploy of service.
Inputs: reason (required), service (required), dry_run, incident_id.
set_feature_flagCDestructive
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_pathBRead-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_recoveryARead-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
Scored across 24 tools
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.
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.
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.
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
Related MCP Connectors
Autonomous and governed SRE & MLOps control plane for AI agent platforms.
Causal reasoning for reliability: root cause, blast radius, and service health for agents.
Finds what's broken in your product, explains why, and fixes it from your agent.
AI SRE: investigate production incidents across your observability stack.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables 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-
- FlicenseNot gradedqualityCmaintenanceEnables 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.-
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseNot gradedqualityBmaintenanceEnables 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