sourcemap-retrace-mcp

by vola-trebla

Not rated
GitHub

About

Decodes minified stack traces back to original TypeScript source using source maps

Details

Author
vola-trebla
Categories
Developer Tools

Setup

Install sourcemap-retrace-mcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/vola-trebla/sourcemap-retrace-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

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.

TypeError: Cannot read properties of undefined (reading 'userId') at e.<anonymous> (main.a3f2c1.js:1:47821) at h (vendor.d4e5f6.js:1:12045) at processQueue (main.a3f2c1.js:1:89234)

You ask your agent to debug it. The agent readsmain.a3f2c1.js. It's 40,000 characters of minified JavaScript. It has no idea whate.<anonymous>at column 47821 means.

sourcemap-retrace-mcpmaps that back to:

at validateSession (src/auth/session.ts:142:8) at handleRequest (src/api/middleware.ts:67:3)

Now the agent knows exactly where to look.

Decode a minified stack trace back to original TypeScript source locations. Pass the raw stack trace and the directory containing your.js.mapfiles.

Retrace Results Frames mapped: 3 | Unmapped: 1 TypeError: Cannot read properties of undefined (reading 'userId') at validateSession (src/auth/session.ts:142:8) at handleRequest (src/api/middleware.ts:67:3) at processQueue (src/queue/processor.ts:28:12) at Module._compile (node:internal/modules/cjs/loader:1376:14)

Show the original source lines surrounding a mapped error location — with line numbers and a column pointer.

Code Context File: src/auth/session.ts Target: line 142, column 8 139 │ const session = await getSession(token); 140 │ if (!session) throw new AuthError("invalid token"); 141 │ > 142 │ return session.userId; │ ^ 143 │ } 144 │ 145 │ export async function refreshSession(token: string) {

Validate that.mapfiles in your dist directory are present and point to source files that actually exist on disk. Catches stale or missing maps before deployment.

Sourcemap Audit Directory: dist/ Files checked: 4 OK: 3 | Missing maps: 0 | Broken sources: 1 ✓ main.a3f2c1.js — 47 source(s) mapped ✓ vendor.d4e5f6.js — 312 source(s) mapped ✓ worker.b1c2d3.js — 8 source(s) mapped ⚠ legacy.e7f8a9.js — 2 source(s) not found on disk: ../src/utils/deprecated.ts ../src/utils/compat.ts
{ "mcpServers": { "sourcemap-retrace": { "command": "npx", "args": ["-y", "sourcemap-retrace-mcp"] } } }

"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 runsretrace_stack, thenretrieve_code_contexton the mapped location, and can finally read the actual TypeScript that crashed.

- env-secret-exposure-analyzer-mcp— scan for secrets before deploying
-
release-readiness-triage-mcp— CI health check before release

- npm:npmjs.com/package/sourcemap-retrace-mcp
- GitHub:
github.com/vola-trebla/sourcemap-retrace-mcp

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Create crafted UI components inspired by the best 21st.dev design engineers.

Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server

An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .

MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent

ALAPI MCP Tools,Call hundreds of API interfaces via MCP

AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform

MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.

APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.

One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.

Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.