shadow-monitor-mcp

shadow-monitor-mcp

Enables AI agents to inspect Shadow Monitor capture files locally, with tools to load bundles, find errors, search network requests, and replay user actions.

Category
访问服务器

README

shadow-monitor-mcp

Open-source MCP server that lets any AI agent inspect Shadow Monitor capture files (uat-report-*.json.gz) — locally, with no upload.

Works with any client that speaks MCP over stdio: Cursor, Claude Desktop, Claude Code, Windsurf, VS Code Copilot Chat, Continue, Cline, Zed, and others.

Shadow Monitor (Chrome) records a UAT session
              ↓
     you download uat-report-….json.gz
              ↓
   this MCP server loads it for your AI
npm shadow-monitor-mcp · npx -y shadow-monitor-mcp
GitHub yurii-mandzii/shadow-monitor-mcp
Claude one-click shadow-monitor-mcp.mcpb (all releases)
Agent Skill SKILL.md (optional — teaches the agent when to call the tools)
License MIT
Needs Node.js 20+ for the MCP (Chrome extension is separate)

Companion: Shadow Monitor (Chrome extension)

This MCP does not record the browser. Capture comes from the extension:

Chrome Web Store Shadow Monitor
User guide Guide
Homepage Docs site
Source github.com/yurii-mandzii/shadow-monitor
Support / Privacy Support · Privacy
  1. Install the extension → add your UAT domain in Settings.
  2. Hard-reload the tab (Cmd/Ctrl+Shift+R).
  3. Reproduce the bug → Download → get uat-report-*.json.gz (often under Downloads/uat-capture).

MCP vs Skill (what you need)

Piece What it is Required?
MCP server The actual tools (load_bundle, find_errors, …) Yes — without it the agent cannot inspect the file
Agent Skill A short playbook (SKILL.md) that says “when the user pastes a uat-report-*.json.gz, call load_bundle — don’t raw-read the file” No — but strongly recommended so the agent behaves correctly

You can install them together (Option A) or separately (MCP via UI / .mcpb, skill via init or copy).


Install the MCP

You need Node.js 20+ once (download the LTS installer — click through; no coding required).

Option A — One command (MCP + skill together)

Open Terminal / PowerShell, paste, Enter:

npx -y shadow-monitor-mcp init --client all

Registers the server for Claude Desktop + Cursor + Claude Code and installs the Agent Skill. Then restart your AI app (Claude Desktop: fully quit with Cmd+Q).

Only one app? Use --client cursor, --client desktop, or --client claude-code.

Option B — UI / click (MCP only)

Claude Desktop — one-click .mcpb

  1. Download shadow-monitor-mcp.mcpb
  2. Double-click it, or Claude Desktop → Settings → Extensions → Install Extension…

Any MCP client — paste JSON

{
  "mcpServers": {
    "shadow-monitor": {
      "command": "npx",
      "args": ["-y", "shadow-monitor-mcp"]
    }
  }
}
App Where
Cursor Settings → Tools & MCP → add / edit MCP config
Claude Desktop Settings → Developer, or claude_desktop_config.json
Others Their MCP / custom-tools settings — same JSON

Option C — From a git clone

cd shadow-monitor-mcp
npm install && npm run build && npm run init:all

Install the skill (optional, separate is fine)

The skill teaches Claude/Cursor to call load_bundle instead of raw-reading the report.

Claude Desktop (what you use in Customize → Skills)

~/.claude/skills/ is Claude Code only — Desktop does not list those files.

  1. Run npx -y shadow-monitor-mcp init --client desktop (or all) — it writes
    ~/Downloads/shadow-monitor-bundles.zip
  2. Claude Desktop → Customize → Skills → Add → Upload a skill
  3. Upload that ZIP → enable the skill
  4. Ensure Settings → Capabilities → Code execution and file creation is on

Or zip manually: folder shadow-monitor-bundles/ containing SKILL.md.

Cursor / Claude Code (filesystem)

init also copies SKILL.md into:

  • Cursor → ~/.cursor/skills/shadow-monitor-bundles/
  • Claude Code → ~/.claude/skills/shadow-monitor-bundles/

Use it

In any connected agent chat, paste an absolute path:

Investigate /Users/you/Downloads/uat-capture/uat-report-2026-07-27T07-34-55-912Z.json.gz and show me what failed.

Expected flow: load_bundlebundle_overviewfind_errors → drill into network / console / actions.

  • Path must be absolute (/Users/… or C:\Users\…).
  • Don’t treat the .json.gz name as a skill / slash-command.
  • Encrypted exports: pass passphrase to load_bundle.

Tools

Tool What it does
check_bundle Cheap probe: is this path a workable Shadow Monitor .json / .json.gz?
load_bundle Load .json / .json.gz / encrypted report
bundle_overview Errors, slow requests, actions, navigation
bundle_metadata Schema, page, window, counts
find_errors Network + console failures
search_network Filter requests
get_network_request Full request by id
get_console_event Full console event by id
get_user_actions Click / navigate story timeline
get_action_replay rrweb slice for one action
get_semantics Pre-computed semantics (schema 2/3)

bundleId is optional when only one bundle is loaded.


Optional settings

Env Effect
SHADOW_MONITOR_FORMAT=toon Smaller list responses (TOON)
SHADOW_MONITOR_REDACT=false Keep signed-URL params / auth headers raw

Commands (developers)

Command Purpose
npm run build Compile → dist/
npm run init / init:cursor / init:all Register MCP + skill
npm run init:print Preview config, write nothing
npm start Run MCP server (stdio)
npm test Format / token tests
npm run test:smoke -- <bundle> End-to-end against a report
npm run pack:mcpb Build shadow-monitor-mcp.mcpb locally
npx -y shadow-monitor-mcp init --client all
npx -y shadow-monitor-mcp init --launch npx      # client uses npx (default after npm install)
npx -y shadow-monitor-mcp init --launch local    # client uses absolute dist/cli.js
npx -y shadow-monitor-mcp init --no-skill        # MCP only
npx -y shadow-monitor-mcp init --print

Troubleshooting

Problem Fix
404 shadow-monitor-mcp Package not on npm yet — use Option C from a clone, or the .mcpb release asset.
Server disconnected Node 20+, restart the app, check MCP config / .mcpb install.
Claude Desktop ignores config Fully quit (Cmd+Q) and reopen.
Agent raw-reads the .json.gz Install the skill (init, or copy SKILL.md).
No report file Install the Chrome extension first.

Development

npm install
npm run build
npm start
npm test

Capture format: shadow-monitor README · BUNDLE_FORMAT.md.

MIT — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选