原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Source Map Parser MCP

作者:MasonChow版本 1.3.2i★ –i在你的电脑上运行
注册名称io.github.MasonChow/source-map-parser-mcp

安装

概览

作者提供的说明(英文原文)

Parse JavaScript error stack traces back to original source code using source maps

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE, SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "source-map-parser": {
      "command": "npx",
      "args": [
        "-y",
        "source-map-parser-mcp"
      ],
      "env": {
        "SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE": "your-value",
        "SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add source-map-parser --env SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE=your-value --env SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE=your-value -- npx -y source-map-parser-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "source-map-parser": {
      "command": "npx",
      "args": [
        "-y",
        "source-map-parser-mcp"
      ],
      "env": {
        "SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE": "your-value",
        "SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "source-map-parser": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "source-map-parser-mcp"
      ],
      "env": {
        "SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE": "your-value",
        "SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE env
    Context lines around error locations in source code
  • SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE env
    Maximum memory cache size in MB for source maps

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 MasonChow 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32461 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32461 个服务器的 0% 更新
  • 基础检查结果等于或优于此分类中其他 32461 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Source Map Parser MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.3.2)于14个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, dotnet-mcp

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

dotnet-mcp

作者:Skymly

MCP server for .NET symbols, XAML, source generators, and restricted workspace edit

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Source Map Parser

🌐 语言: English | 简体中文

This project implements a WebAssembly-based Source Map parser that can map JavaScript error stack traces back to source code and extract relevant context information. Developers can easily map JavaScript error stack traces back to source code for quick problem identification and resolution. This documentation aims to help developers better understand and use this tool.

MCP Integration

Note: Requires Node.js 20+ support

Option 1: Run directly with NPX

npx -y source-map-parser-mcp@latest

Option 2: Download the build artifacts

Download the corresponding version of the build artifacts from the GitHub Release page, then run:

node dist/main.es.js
Use as an npm package (bring your own MCP server)

You can embed the tools into your own MCP server process and customize behavior.

Install:

npm install source-map-parser-mcp

Minimal server (TypeScript):

import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';

import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import { registerTools, Parser, type ToolsRegistryOptions, } from 'source-map-parser-mcp';

const server = new McpServer( { name: 'your-org.source-map-parser', version: '0.0.1' }, { capabilities: { tools: {} } } );

// Optional: control context lines via env const options: ToolsRegistryOptions = { contextOffsetLine: Number(process.env.SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE) || 1, };

registerTools(server, options);

// Start as stdio server const transport = new StdioServerTransport(); await server.connect(transport);

// If you need programmatic parsing without MCP: const parser = new Parser({ contextOffsetLine: 1 }); // await parser.parseStack({ line: 10, column: 5, sourceMapUrl: 'https://...' }); // await parser.batchParseStack([{ line, column, sourceMapUrl }]);

Build and Type Declarations

This project ships both ESM and CJS builds and a single bundled TypeScript declaration file.

  • Build outputs:
  • ESM: dist/index.es.js
  • CJS: dist/index.cjs.js
  • CLI entry: dist/main.es.js
  • Types: dist/index.d.ts (single bundled d.ts)

Quick build locally:

npm install

npm run build

Using types in your project:

import {

Parser, registerTools, type ToolsRegistryOptions, } from 'source-map-parser-mcp';

Runtime Parameter Configuration

System runtime parameters can be flexibly configured through environment variables to meet the needs of different scenarios

  • SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE: Sets the maximum memory space occupied by resource cache, default is 200MB. Adjusting this value appropriately can balance performance and memory usage.
  • SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE: Defines the number of context code lines to display around the error location, default is 1 line. Increasing this value provides more context information, facilitating problem diagnosis.

Example:

# Set 500MB cache and display 3 lines of context

export SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE=500 export SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE=3 npx -y source-map-parser-mcp@latest

Feature Overview

  1. Stack Parsing: Parse the corresponding source code location based on provided line number, column number, and Source Map file.
  2. Batch Processing: Support parsing multiple stack traces simultaneously and return batch results.
  3. Context Extraction: Extract context code for a specified number of lines to help developers better understand the environment where errors occur.
  4. Context Lookup: Look up original source code context for specific compiled code positions.
  5. Source Unpacking: Extract all source files and their content from source maps.

MCP Service Tool Description

operating_guide

Get usage instructions for the MCP service. Provides information on how to use the MCP service through chat interaction.

parse_stack

Parse stack information by providing stack traces and Source Map addresses.

Request Example
  • stacks: Stack information including line number, column number, and Source Map address.
  • line: Line number, required.
  • column: Column number, required.
  • sourceMapUrl: Source Map address, required.
{

"stacks": [ { "line": 10, "column": 5, "sourceMapUrl": "https://example.com/source.map" } ] }

Response Example
{

"content": [ { "type": "text", "text": "[{\"success\":true,\"token\":{\"line\":10,\"column\":5,\"sourceCode\":[{\"line\":8,\"isStackLine\":false,\"raw\":\"function foo() {\"},{\"line\":9,\"isStackLine\":false,\"raw\":\" console.log('bar');\"},{\"line\":10,\"isStackLine\":true,\"raw\":\" throw new Error('test');\"},{\"line\":11,\"isStackLine\":false,\"raw\":\"}\"}],\"src\":\"index.js\"}}]" } ] }

lookup_context

Look up original source code context for a specific line and column position in compiled/minified code.

Request Example
  • line: The line number in the compiled code (1-based), required.
  • column: The column number in the compiled code, required.
  • sourceMapUrl: The URL of the source map file, required.
  • contextLines: Number of context lines to include (default: 5), optional.
{

"line": 42, "column": 15, "sourceMapUrl": "https://example.com/app.js.map", "contextLines": 5 }

Response Example
{

"content": [ { "type": "text", "text": "{\"filePath\":\"src/utils.js\",\"targetLine\":25,\"contextLines\":[{\"lineNumber\":23,\"content\":\"function calculateSum(a, b) {\"},{\"lineNumber\":24,\"content\":\" if (a < 0 || b < 0) {\"},{\"lineNumber\":25,\"content\":\" throw new Error('Negative numbers not allowed');\"},{\"lineNumber\":26,\"content\":\" }\"},{\"lineNumber\":27,\"content\":\" return a + b;\"}]}" } ] }

unpack_sources

Extract all source files and their content from a source map.

Request Example
  • sourceMapUrl: The URL of the source map file to unpack, required.
{

"sourceMapUrl": "https://example.com/bundle.js.map" }

Response Example
{

"content": [ { "type": "text", "text": "{\"sources\":{\"src/index.js\":\"import { utils } from './utils.js';\\nconsole.log('Hello World!');\",\"src/utils.js\":\"export const utils = { add: (a, b) => a + b };\"},\"sourceRoot\":\"/\",\"file\":\"bundle.js\",\"totalSources\":2}" } ] }

Parsing Result Description
  • success: Indicates whether the parsing was successful.
  • token: The Token object returned when parsing is successful, containing source code line number, column number, context code, and other information.
  • error: Error information returned when parsing fails.

Example Run

System Prompt

According to actual needs, you can use system prompts to guide the model on how to parse stack information. For security or performance reasons, some teams may not want to expose Source Maps directly to the browser for parsing, but instead process the upload path of the Source Map. For example, converting the path bar-special.js to special/bar.js.map. In this case, you can instruct the model to perform path conversion through prompt rules.

Here is an example:

# Error Stack Trace Parsing Rules

When performing source map parsing, please follow these rules:

  1. If the URL contains special, the file should be parsed into the special/ directory, while removing -special from the filename.
  2. All source map files are stored in the following CDN directory: https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/

Examples

  • Source map address for bar-special.js: https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/bar.js.map
Runtime Example

Error Stack

Uncaught Error: This is a error

at foo-special.js:49:34832 at ka (foo-special.js:48:83322) at Vs (foo-special.js:48:98013) at Et (foo-special.js:48:97897) at Vs (foo-special.js:48:98749) at Et (foo-special.js:48:97897) at Vs (foo-special.js:48:98059) at sv (foo-special.js:48:110550) at foo-special.js:48:107925 at MessagePort.Ot (foo-special.js:25:1635)

FAQ

1. WebAssembly Module Loading Failure

If the tool returns the following error message, please troubleshoot as follows:

parser init error: WebAssembly.instantiate(): invalid value type 'externref', enable with --experimental-wasm-reftypes @+86

  1. Check Node.js Version: Ensure Node.js version is 20 or higher. If it's lower than 20, please upgrade Node.js.
  2. Enable Experimental Flag: If Node.js version is 20+ but you still encounter issues, use the following command to start the tool:
   npx --node-arg=--experimental-wasm-reftypes -y source-map-parser-mcp@latest

Local Development Guide

1. Install Dependencies

Ensure Node.js and npm are installed, then run the following command to install project dependencies:

npm install
2. Link MCP Service

Run the following command to start the MCP server:

npx tsx src/main.ts
Internal Logic Overview
1. Main File Description
  • `stack_parser_js_sdk.js`: JavaScript wrapper for the WebAssembly module, providing core stack parsing functionality.
  • `parser.ts`: Main implementation of the parser, responsible for initializing the WebAssembly module, retrieving Source Map content, and parsing stack information.
  • `server.ts`: Implementation of the MCP server, providing the parse_stack tool interface for external calls.
2. Modify Parsing Logic

To modify the parsing logic, edit the getSourceToken method in the parser.ts file.

3. Add New Tools

In the server.ts file, new tool interfaces can be added using the server.tool method.

Notes

  1. Source Map Files: Ensure that the provided Source Map file address is accessible and the file format is correct.
  2. Error Handling: During parsing, network errors, file format errors, and other issues may be encountered; it's recommended to implement proper error handling when making calls.

Contribution Guidelines

Contributions via Issues and Pull Requests are welcome to improve this project.

License

This project is licensed under the MIT License. See the LICENSE file for details.

问 PopNx