Decodes minified production stack traces back to original TypeScript source using source maps.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
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.
retrace_stackDecode 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_contextShow the original source lines surrounding a mapped error location β with line numbers and a column pointer.
audit_sourcemap_matchValidate 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.
"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:
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sourcemap-retrace-mcp)<a href="https://allmcps.com/mcp/sourcemap-retrace-mcp"><img src="https://allmcps.com/api/badge/sourcemap-retrace-mcp?style=directory" alt="Sourcemap Retrace MCP on AllMCPs" /></a>