Source Map Debugger

v0.2.1
io.github.BartWaardenburg/srcmap-mcp Checked 5 hours ago Published 4 days ago

Debug production source maps: fetch, inspect, look up and extract original sources

Values you need

VariableWhat it is
SRCMAP_BINARYoptional Path to the srcmap CLI binary (default: srcmap)
SRCMAP_CACHE_TTLoptional Cache TTL in seconds (default: 300, 0 to disable)
SRCMAP_TOOLSETSoptional Comma-separated toolsets to enable: inspection, lookup, fetch (default: all)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add srcmap-mcp -- npx -y srcmap-mcp@0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "srcmap-mcp": {
      "args": [
        "-y",
        "srcmap-mcp@0.2.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "srcmap-mcp": {
      "args": [
        "-y",
        "srcmap-mcp@0.2.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "srcmap-mcp": {
      "args": [
        "-y",
        "srcmap-mcp@0.2.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.srcmap-mcp]
command = "npx"
args = ["-y", "srcmap-mcp@0.2.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: sourcemap_info, sourcemap_validate, sourcemap_sources, sourcemap_mappings, sourcemap_lookup, sourcemap_resolve, sourcemap_fetch, sourcemap_extract_sources.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json