Skip to content

MCP tools

Terminal window
graphmind mcp

Serves your recorded runs to MCP clients over stdio. Four read-only tools, each result carrying a deep link back into the viewer so your coding agent can cite the exact run or node it is talking about.

It reads the SQLite database directly, so it works with the server and viewer closed.

Terminal window
claude mcp add graphmind -- npx graphmind-ai mcp

--db selects the database; --port sets the port used in generated deep links (default 4747 — pass it if you serve on another port, or the links will point at the wrong viewer).

Recent agent runs, most recently started first: id, app, status (running / ok / error / aborted), start and finish times, event and error counts, source (live / import / demo), and a viewer deep link.

limit defaults to 20, capped at 100.

One run’s summary plus its logical nodes — agents, LLM steps, tool calls: nodeId, kind, name, status, execution count, total duration, last error message, and a deep link per node.

This is the map. Use it to find the node worth looking at, then call get_node.

Everything recorded for one logical node: every execution instance with input and output, error and stack trace, timings and token usage.

Payloads are truncated to a preview cap (about 4000 characters) with a note, and at most the 25 most recent instances are listed, with an instancesOmitted count — so a node called 400 times still returns something an agent can read.

Recent node failures across all runs, newest runs first: run, node, error name and message, when it happened, and a deep link.

This is the right first call for “why did my last run fail?” — it goes straight to the failures without walking the run list.

You: why did my last support-agent run fail?

The agent calls find_errors, gets the failing node and message, calls get_node for that node’s inputs and stack, and answers with a link like http://127.0.0.1:4747/#/run/run_01H8…/node/tool%3AissueRefund that you can click to open the node in the viewer.

Other things it is good at:

  • “Compare the last two runs of support-agent — which node first got different input?”
  • “What did searchOrders get called with across this run?”
  • “Which node is eating the tokens in run run_01H8…?”

Links follow the viewer’s hash router:

http://127.0.0.1:4747/#/run/<runId>
http://127.0.0.1:4747/#/run/<runId>/node/<nodeId>

Both segments are URI-component encoded, so a nodeId like tool:issueRefund becomes tool%3AissueRefund.

  • Read-only. Every tool is annotated readOnlyHint: true; nothing writes, deletes or resumes. MCP cannot control a live run.
  • Local. It reads a local SQLite file over stdio. No network, no openWorld.
  • Your data stays yours. Payloads reach your MCP client — the same client you are already pasting code into — and nowhere else.

User-facing failures (unknown run, bad argument, unknown node) come back as tool results marked isError, with a helpful message — an unknown runId suggests list_runs, an unknown nodeId lists the node ids that do exist in that run — rather than as protocol errors that leave the agent stuck.