rr-context-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RR_TRACE_DIR | No | Override rr's standard recording directory. | ~/.local/share/rr |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| rr_recordA | Record a failing or suspicious program run with rr. Pass the executable and each argument as separate array items. The command is executed directly, without a shell. Use the same build and inputs that reproduce the bug. Returns a trace_id and trace_path for replay_start. |
| rr_environmentA | Check whether this host appears ready to record and replay with rr. |
| rr_list_tracesA | List local rr recordings, newest first. Use trace_path with rr_replay_start. |
| rr_replay_startA | Start an interactive replay session for a trace and its debug-symbol binary. Provide the exact executable used by the recording, preferably an unstripped build with debug symbols. The response includes session_id and the initial stopped location. Use rr_inspect to collect context before moving execution. |
| rr_inspectA | Return the current stack, selected-frame locals, thread summary, and stop reason. Call after replay_start and after each execution movement. This compact evidence bundle is the best starting point for root-cause analysis. |
| rr_root_cause_hintA | Return an investigation checklist based on stop reason and observed symptom. symptom may be auto, segfault, assertion, wrong_value, or hang. Use wrong_value after a breakpoint/watchpoint exposes the incorrect state; use hang when replay is stopped at a chosen progress marker for a suspected stuck path. |
| rr_whenB | Return rr's current event number and per-thread tick position. Use these coordinates to compare observations and to describe where in the recorded execution a failure or state transition occurred. |
| rr_moveB | Move deterministically through the recording. action is one of continue, reverse_continue, step, reverse_step, next, reverse_next. For memory corruption, set a breakpoint/watchpoint near the observed bad state, then reverse_continue to find the earlier cause. |
| rr_interruptC | Interrupt a currently running continue or reverse-continue operation. |
| rr_breakpointC | Set a GDB breakpoint by function, source.cpp:line, or address expression. |
| rr_watchpointB | Watch a value and stop when it is written, read, or accessed. A write watchpoint is useful after observing a corrupted variable: set it while the value is still correct, then continue or reverse through the trace to identify the instruction that changes it. Hardware watchpoint limits vary. |
| rr_evaluateB | Evaluate one C/C++ expression in the current frame; does not run a GDB console command. |
| rr_session_closeC | Close the replay and GDB processes for a session. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| debugging_guide | A root-cause workflow for using rr-context-mcp tools. |
TDQS
Scored across 13 tools
Each tool maps to a distinct rr/GDB operation: recording, replay start, execution movement, breakpoints vs. watchpoints, inspection, coordinates, and session teardown are all clearly separated. rr_inspect vs. rr_when both report state but descriptions make the boundary explicit (full evidence bundle vs. raw event/tick coordinates).
All tools share a consistent rr_ prefix and snake_case, giving a predictable namespace. Internal ordering varies slightly (rr_list_traces is verb_noun, rr_replay_start and rr_session_close are noun_verb, rr_when/rr_evaluate are single tokens) but the pattern remains readable and uniform overall.
13 tools is well-scoped for an rr record/replay debugging workflow, sitting comfortably in the ideal 3-15 range. Each tool earns its place, with no redundant or filler operations.
The surface covers the full record→replay→inspect→move→root-cause lifecycle plus environment checks and session teardown. Minor gaps exist (e.g. no explicit thread switching, register/memory reads, or disassembly), but core debugging workflows are fully supported.