
Sourcemap Retrace Mcp
io.github.vola-treblaPublished by GitHub account vola-treblav0.2.0Updated Oct 24, 2026
Decodes minified production stack traces back to original TypeScript source using source maps.
Overview
Decodes minified production JavaScript stack traces back to original TypeScript source files, lines, and columns using source maps.
- What you can do
- Provides three tools: retrace_stack maps a minified stack trace to original source locations using .js.map files in a given directory; retrieve_code_context shows the original source lines around a mapped location with line numbers and a column pointer; audit_sourcemap_match checks that .map files exist in a dist directory and point to source files present on disk. It reports mapped and unmapped frames so an assistant can see which parts of a trace were resolved.
- When to use it
- Useful when an assistant is asked to debug a production error whose stack trace references minified bundles, and the source maps and dist files are available locally. Also helpful before deployment to catch stale or missing source maps.
- Requirements
- Runs locally over stdio, typically started with npx sourcemap-retrace-mcp, so Node.js and npm are needed. No authentication, environment variables, or headers are declared. It needs local access to the directory containing the .js.map files and, for the audit tool, the dist directory and the source files they reference.
Installation
In SourceWeft
- Open Sourcemap Retrace Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
🗺️ sourcemap-retrace-mcp
Your app crashed in production. The stack trace is useless. Your AI agent has no idea where the bug is.
MCP server that decodes minified production stack traces back to original TypeScript source files, lines, and columns — using source maps. Before your agent spends 20 minutes guessing at obfuscated code.
🤔 The problem
Your monitoring tool sends you this:
You ask your agent to debug it. The agent reads main.a3f2c1.js. It's 40,000 characters of minified JavaScript. It has no idea what e.<anonymous> at column 47821 means.
sourcemap-retrace-mcp maps that back to:
Now the agent knows exactly where to look.
🛠️ Tools
retrace_stack
Decode a minified stack trace back to original TypeScript source locations. Pass the raw stack trace and the directory containing your .js.map files.
retrieve_code_context
Show the original source lines surrounding a mapped error location — with line numbers and a column pointer.
audit_sourcemap_match
Validate that .map files in your dist directory are present and point to source files that actually exist on disk. Catches stale or missing maps before deployment.
⚡ Setup
🚀 Usage
"I have a production error. Here's the stack trace: [paste]. My dist files are in /path/to/dist. Retrace it, show me the code around the error, and tell me what's wrong."
The agent runs retrace_stack, then retrieve_code_context on the mapped location, and can finally read the actual TypeScript that crashed.
Works great alongside:
- env-secret-exposure-analyzer-mcp — scan for secrets before deploying
- release-readiness-triage-mcp — CI health check before release
📦 Links
License
MIT
Source: README.md at commit 9a53d14
Tools
0Version history
1- v0.2.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts