firedbg-mcp
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., "@firedbg-mcplist all Rust targets in this workspace"
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.
firedbg-mcp
A small, repository-scoped MCP server for FireDBG. It lets an agent discover Rust targets, run them under FireDBG, index traces, and inspect the complete SQLite trace without granting access to other workspaces.
Prerequisites
Node.js 22 or newer
A Rust Cargo workspace
firedbgandfiredbg-indexerinstalled and available onPATH
FireDBG provides installation instructions in its upstream repository. This server checks the base installation with firedbg_status; it does not replace the global FireDBG CLI, indexer, or bundled LLDB runtime.
If upstream does not publish a precompiled debugger for the active compiler, call firedbg_prepare_compatible. The tool installs the exact matching Rustup toolchain, builds only firedbg-debugger from a pinned upstream revision, smoke-tests it, and activates it under <workspace>/.firedbg-mcp/firedbg/<rust-major.minor>/. It reuses the installed FireDBG LLDB runtime and does not replace global FireDBG binaries.
Related MCP server: cpp-debug-mcp
Setup
npm install
npm run buildConfigure an MCP client to launch the compiled server with its repository root:
{
"mcpServers": {
"firedbg": {
"command": "node",
"args": ["/absolute/path/to/firedbg-mcp/dist/index.js", "--workspace-root", "/absolute/path/to/rust-workspace"]
}
}
}--workspace-root defaults to the server process's initial working directory. FIREDBG_BIN and FIREDBG_INDEXER_BIN may select non-default executable paths.
Every attempted tool call is appended to <workspace>/.firedbg-mcp/actions.jsonl. Raw target arguments, program output, SQL, and query parameters are excluded from the audit record; hashes are retained for correlation. In Git worktrees the directory is added to .git/info/exclude automatically.
Tools
firedbg_statusfiredbg_prepare_compatiblefiredbg_list_targetsfiredbg_runfiredbg_list_runsfiredbg_index_runfiredbg_trace_schemafiredbg_query_trace
Trace queries accept one parameterized SELECT or WITH statement. The database is opened read-only and responses are capped at 1,000 rows and 1 MiB. Use offset and limit for pagination.
Development
npm test
npm run typecheck
npm run build
npm run inspect -- --workspace-root /path/to/cargo/workspaceDebug runs are synchronous in v1. Background execution would require persisted job state, status and cancellation tools, process-tree cleanup, and restart recovery; that is intentionally outside this server's KISS-oriented scope.
Compatible-debugger builds use <workspace>/.firedbg-mcp/build only while compiling and remove that directory after success or failure. The resulting debugger is repository-local; future runs automatically pass its home to the FireDBG CLI when its embedded Rust minor version matches the workspace's active compiler.
This server cannot be deployed
Maintenance
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Ask a codebase what calls what: search, blast radius, paths between symbols, and diffs.
Behavioral oracle for Rust crate APIs: runtime behavior, yank/advisory, deprecation, sig search
Related MCP Servers
- AlicenseCqualityAmaintenanceEnables AI agents to perform step-through debugging of Python, JavaScript/Node.js, and Rust programs using the Debug Adapter Protocol, with support for breakpoints, variable inspection, and stack traces.21166MIT
- AlicenseAqualityCmaintenanceProvides GDB and clangd-based tools for debugging C++ programs, enabling step execution, variable inspection, diagnostics, and combined runtime-static analysis.271MIT
- FlicenseNot gradedqualityDmaintenanceProvides access to Rust crate documentation, search, and metadata from docs.rs and crates.io.15 npm-
- AlicenseNot gradedqualityDmaintenanceProvides debugging capabilities for Python, C, C++, Rust, Swift, and more through the Debug Adapter Protocol, enabling breakpoints, step-by-step evaluation, and stack traces.6 npm4MIT