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

Sparkforensics MCP

作者:shuffle-works版本 0.1.0i★ –i在你的电脑上运行
注册名称io.github.shuffle-works/sparkforensics-mcp

安装

概览

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

MCP server for diagnosing Apache Spark event-log performance issues and comparing runs.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "sparkforensics": {
      "command": "npx",
      "args": [
        "-y",
        "sparkforensics-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add sparkforensics -- npx -y sparkforensics-mcp

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "sparkforensics": {
      "command": "npx",
      "args": [
        "-y",
        "sparkforensics-mcp"
      ]
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "sparkforensics": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sparkforensics-mcp"
      ]
    }
  }
}

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

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

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

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Sparkforensics MCP 安全吗?

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

它需要哪些密钥或代码?

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

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Readfirst

替代选择

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

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

Spec Driven Development

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

作者:formulahendry起步阶段↓ 66/周★ 44014个月前更新

在你的电脑上运行

Remote Desktop Commander

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

作者:desktop-commander正在增长★ 2113天前更新

在云端运行✓ desktopcommander.app

Readfirst

What to read and check before changing a file: project rules, risks, checks and tests per file.

作者:jeonghun917正在增长↓ 5325/周今天更新

在你的电脑上运行

作者的 README

打开 README

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

SparkForensics

Your Spark job is slow. SparkForensics tells you why, and what to do about it.

Drop a Spark event log in and get an evidence-backed breakdown of which stages are slow, why, and how to fix them. Nothing installs on your cluster and nothing leaves your machine.

[Try it now →](https://shuffle-works.github.io/sparkforensics/) with your own event log. No install, no account, no upload. Read the documentation for a guided tour.

Spark's own History Server gives you raw metrics. It won't tell you that stage 14 spilled 40GB because of a skewed join key, or that cold start is eating a third of the job. SparkForensics reads the same event logs and turns them into findings.

Why SparkForensics

  • Your data stays on your machine. Drop a log file and read the dashboard; nothing is uploaded anywhere. Local-server mode adds a small Node companion that can also pull runs from a Spark History Server.
  • Event logs are streamed and parsed off the main thread in a Web Worker, so a 240MB+ (or multi-GB) NDJSON log doesn't freeze the tab.
  • The finding types cover skew, shuffle, spill, GC pressure, stragglers, cold start, cache/memory utilization, autoscaling churn, job/stage failures and partition sizing, plus a SQL Plan Advisor (duplicate subtrees, small files, broadcast sizing) and a config audit. Each has a page in the detector catalog, and its thresholds are in the detector table.
  • Fix These First orders every finding by its estimated wall-clock impact, not severity alone, so the top row is the fix worth doing first.
  • Run comparison (A/B) mode structurally matches stages across two runs of the same job and shows which stages regressed, rather than every difference.
  • Every finding tracks what it could and couldn't confirm from the log, so you know when to trust a flag and when it's a hint worth checking manually.
  • A headless CLI (sparkforensics-analyze) evaluates a run against budget thresholds (max runtime, skew, spill, failure rate...) and exits non-zero on violation, so a regression can fail a build. The run can come from a local event-log file/directory or, with --shs-base-url, fetched directly from a Spark History Server.
  • An MCP server (sparkforensics-mcp) exposes tools for diagnosing, summarizing and comparing runs, so an LLM agent can investigate a run directly. The full tool list is in MCP tools.
  • For running the analyze CLI automatically after every Spark job instead of by hand, see sparkforensics-operator, an Airflow operator that runs SparkForensics on a job's event log and acts on the result.

Unlike tools that need a cluster-side plugin or a running server plus an LLM agent (Spark History Server MCP tools), SparkForensics needs nothing installed anywhere else: the event log and a browser tab are enough.

Get started

Run the dashboard locally:

npx sparkforensics-server

The Getting started guide covers what it serves, the live demo alternative, and loading a run. To work on SparkForensics itself, see Development.

For a one-shot check with no browser, the kind a CI pipeline can gate on:

npx -p sparkforensics-cli sparkforensics-analyze path/to/eventlog --max-runtime 3600000 --max-skew 3

The command ships in the sparkforensics-cli package. To install it once instead: npm i -g sparkforensics-cli, then run sparkforensics-analyze directly. The sparkforensics-analyze alias package also works: npx sparkforensics-analyze.

That's a headless run against budget thresholds. See Command-line reference below for HTML export, Spark History Server fetching, baseline comparisons, and redaction. To run a detector check with your own threshold, see Tuning detector thresholds.

Development

Install and run

From a checkout:

git clone git@github.com:shuffle-works/sparkforensics.git

cd sparkforensics npm install npm run dev

Open the URL Vite prints. For a production bundle: npm run build, then serve dist/ with any static file server. Asset URLs are relative, so the bundle also works under a URL subpath.

Note: The app must be served over HTTP: file:// URLs block Web

Worker module imports in Chrome.

Deploy modes

This app runs in two modes:

  • Static mode (e.g. GitHub Pages, or any plain file server): Choose file is the normal browser-local path for a single event log. Choose rolling-log folder is available only for an eventlog_v2_* directory. Deploy the output of npm run build from dist/. Fetching directly from a Spark History Server is not available: the browser's CORS policy blocks it and a static host can't proxy the request. If a History Server load cannot be used, choose a local event-log file instead.
  • Local-server mode is a small Node companion that serves this app *and* fetches from a Spark History Server on your behalf (server-to-server, so no browser CORS restriction). Useful when the SHS is behind a VPN or isn't CORS-configured.

Run local-server mode with:

npx sparkforensics-server

It listens on http://127.0.0.1:4173 by default (override with --port or the PORT env var) and binds to localhost only. Open the URL in Chrome and use the Fetch from Spark History Server disclosure on the intake screen. The same server serves the MCP tools over streamable HTTP at /mcp, for clients on the same machine; see Connecting over HTTP.

History Server fetching requires local-server mode, a History Server reachable from the machine running that server, and a supported base application ID (see Getting started for the full list of accepted forms). Enter an optional attempt separately from the base application ID. The local server sends no credentials and follows no upstream redirects. Its recoverable errors intentionally omit upstream response details; edit the fields or choose a local event-log file to recover.

During development from a checkout, npm run local-server does the same thing without publishing or installing the package.

Server configuration

All settings have working defaults. The port (PORT or --port) and the SPARKFORENSICS_* environment variables are listed in Server configuration.

SHS-proxy route test fixture

The /shs-proxy route (packages/core/src/proxy.js) is covered by packages/server/test/shs-proxy-fixture.test.js, part of the normal npm run test:server suite. It loads a real event log from the spark-event-corpus-data git submodule at dev/log-corpus/ and asserts the route streams it back as a valid ZIP. No Docker, no live Spark process, and no live History Server are needed for this.

To verify the full Fetch-from-SHS UI flow by hand, including its unreachable-upstream and application-not-found recovery states, point npm run local-server at a real Spark History Server you have access to and use its Fetch from Spark History Server disclosure. Automated coverage of /shs-proxy uses the spark-event-corpus-data logs, so no Docker image or live Spark process is needed.

Running tests
npm test              # single run

npm run test:watch # watch mode npm test -- tests/finding-filter.test.js # single file npm run test:core # packages/core: detectors, analyzer, parser, MCP tools npm run test:cli # packages/cli npm run test:mcp # packages/mcp npm run test:server # packages/server

Command-line reference

Beyond the plain budget check in Get started, the same sparkforensics-analyze CLI covers a few other jobs.

Write a self-contained HTML dashboard for the run instead of a JSON/Markdown report, viewable offline over file:// with no server:

npx -p sparkforensics-cli sparkforensics-analyze path/to/eventlog --export-html path/to/output-dir

Fetch the run straight from a Spark History Server instead of a local file (mutually exclusive with the positional path):

npx -p sparkforensics-cli sparkforensics-analyze --shs-base-url http://history-server:18080 --app-id application_1234_0001 --max-skew 3

Compare a candidate run against a baseline (A/B) and fail the build on a regression or a newly introduced critical finding:

npx -p sparkforensics-cli sparkforensics-analyze path/to/candidate --baseline path/to/baseline --max-regression-pct 10 --fail-on-introduced critical

Several regression budgets in one call, and several candidates against one baseline (NDJSON, one line per candidate; the baseline is parsed once):

npx -p sparkforensics-cli sparkforensics-analyze cand-1 cand-2 cand-3 --baseline base --regression-budget wallClock:10 --regression-budget gcTime:25

Compare against a baseline that lives on a Spark History Server, from a local candidate or a History Server one, with --baseline-shs-base-url, --baseline-app-id and --baseline-attempt-id (the baseline can be on a different server):

npx -p sparkforensics-cli sparkforensics-analyze --shs-base-url http://history-server:18080 --app-id application_1234_0002 --baseline-shs-base-url http://history-server:18080 --baseline-app-id application_1234_0001 --max-regression-pct 10

Several candidates from one History Server take repeated --app-id values (--app-id : names an attempt) and print NDJSON, one line each.

See Several budgets and several candidates for the --budgets file, the NDJSON line fields and the exit code rules.

List every finding type the detectors can report, without reading a log (the MCP list_detectors tool returns the same records):

npx -p sparkforensics-cli sparkforensics-analyze detectors --format md

Redact the app id, the app name, host names, IP addresses and user names in URLs and paths before sharing the output outside the environment that produced it. Other paths, table names and SQL text stay as written; the CI guide lists what --redact covers and what it does not:

npx -p sparkforensics-cli sparkforensics-analyze path/to/eventlog --redact

Narrow the output's findings array to cert

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx