stacktrace-mcp

stacktrace-mcp is an error handling tool written in TypeScript. It helps analyze stack traces to identify the source and cause of errors. Developers can streamline debugging processes and improve code quality. It is particularly useful for error management in large-scale applications.

GitHub Stars

1

User Rating

Not Rated

Favorites

0

Views

30

Forks

1

Issues

1

README
stacktrace-mcp

Simple JS Stacktrace MCP for getting the nearest error location from JavaScript bundle URL
and lets an LLM checks if it matches anything in the current codebase.

Designed for non-sourcemap users.

Getting started
  1. Clone the repo
  2. Run pnpm i for install
  3. Run pnpm build for building the server
  4. Add the local mcp server file path to your MCP-supported app (VSCode Copilot, etc):
    // settings.json
    "mcp": {
        "servers": {
        "stacktrace-mcp-server": {
            "type": "stdio",
            "command": "node",
            "args": [
                 "<your-path-to>\/stacktrace-mcp\/dist\/mcp_server.cjs"
            ]
        }
        }
    }
    
  5. Make sure the mcp tool is already enabled
  6. Copy your error stack trace to the prompt chat! That's it