mcp-inspector

A set of instructions for debugging and checking an MCP server through MCP Inspector, a tool for viewing and testing server connections.

In plain words
What is it for?
Use it to verify the macos-automator-mcp server with terminal commands and browser-based checks.
Why use it?
It gives an assistant a defined process for starting the inspector, controlling its browser interface, and checking server behavior and messages.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/mantisware/peepit/mcp-inspector
Clone the repo
git clone --depth 1 https://github.com/MantisWare/peepit

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01587
Opus 5 $0.00000 $0.00794
Sonnet 5 $0.00000 $0.00317
Haiku 4.5 $0.00000 $0.00159

Measured yesterday against content hash bc707fcaa141, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-inspector scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to mcp-inspector — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/mcp-inspector.mdc · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rule Name: mcp-inspector Description: Debugging and verifying the macos-automator-mcp server via the MCP Inspector, using Playwright for UI automation and direct terminal commands for server management. This rule prioritizes stability and detailed verification through Playwright's introspection capabilities.

Required Tools:

  • run_terminal_cmd
  • mcp_playwright_browser_navigate
  • mcp_playwright_browser_type
  • mcp_playwright_browser_click
  • mcp_playwright_browser_snapshot
  • mcp_playwright_browser_console_messages
  • mcp_playwright_browser_wait_for

User Workspace Path Placeholder:

  • The path to the start.sh script will be specified as [WORKSPACE_PATH]/start.sh.
  • The AI assistant executing this rule MUST replace [WORKSPACE_PATH] with the absolute path to the user's current project workspace (e.g., as found in the <user_info> context block during rule execution).
  • Example of a resolved path if the workspace is /Users/username/Projects/my-mcp-project: /Users/username/Projects/my-mcp-project/start.sh.

Main Flow:

Phase 1: Start MCP Inspector Server

  1. Kill Existing Inspector Processes:
    • Action: Call run_terminal_cmd.
    • command: pkill -f 'npx @modelcontextprotocol/inspector' || true
    • is_background: false
    • Expected: Cleans up any lingering Inspector processes.
  2. Start New Inspector Process:
    • Action: Call run_terminal_cmd.
    • command: npx @modelcontextprotocol/inspector
    • is_background: true
    • Expected: MCP Inspector starts in the background.
  3. Wait for Inspector Initialization:
    • Action: Call mcp_playwright_browser_wait_for.
    • time: 10 (seconds)
    • Expected: Allows ample time for the Inspector server to be ready. This step requires an active Playwright page, so it's implicitly preceded by navigation in Phase 2 if the browser isn't already open.

Phase 2: Connect to Server via Playwright

  1. Navigate to Inspector URL:
    • Action: Call mcp_playwright_browser_navigate.
    • url: http://127.0.0.1:6274
    • Expected: Playwright opens the MCP Inspector web UI.
    • Snapshot: Take a snapshot (mcp_playwright_browser_snapshot) to confirm page load and identify initial form element references (ref).
  2. Fill Form (Command & Args only):
    • Set Command:
      • Action: Call mcp_playwright_browser_type.
      • element: "Command textbox" (Obtain ref from snapshot).
      • text: macos-automator-mcp
    • Set Arguments:
      • Action: Call mcp_playwright_browser_type.
      • element: "Arguments textbox" (Obtain ref from snapshot).
      • text: [WORKSPACE_PATH]/start.sh (This placeholder MUST be replaced by the AI executing the rule with the absolute path to the user's current workspace).
    • (Note: Environment Variables are skipped in this flow for simplicity and stability, as issues were previously observed when setting LOG_LEVEL=DEBUG during connection.)
  3. Click "Connect":
    • Action: Call mcp_playwright_browser_click.
    • element: "Connect button" (Obtain ref from snapshot).
    • Expected: Connection to the macos-automator-mcp server is established.
    • Snapshot: Take a snapshot. Verify connection status (e.g., text changes to "Connected") and check for initial server logs in the UI.

Phase 3: Interact with a Tool via Playwright

  1. List Tools:
    • Action: Call mcp_playwright_browser_click.
    • element: "List Tools button" (Obtain ref from the latest snapshot).
    • Expected: The list of available tools from the macos-automator-mcp server is displayed.
    • Snapshot: Take a snapshot. Verify tools like execute_script and get_scripting_tips are visible.
  2. Select 'get_scripting_tips' Tool:
    • Action: Call mcp_playwright_browser_click.
    • element: "get_scripting_tips tool in list" (Obtain ref by identifying it in the snapshot's tool list).
    • Expected: The parameters form for get_scripting_tips is displayed in the right-hand panel.
    • Snapshot: Take a snapshot. Verify the right panel shows details for get_scripting_tips (e.g., its name, description, and parameter fields like 'searchTerm', 'listCategories', etc.).
  3. Execute 'get_scripting_tips' (default parameters):
    • Action: Call mcp_playwright_browser_click.
    • element: "Run Tool button" (Obtain ref for the 'Run Tool' button specific to the get_scripting_tips form in the right panel from the snapshot).
    • Expected: The get_scripting_tips tool is executed with its default parameters.
    • Snapshot: Take a snapshot.

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 99 lines · 0 tokens per session scan A bc707fcaa141

Subscribe to this mod's changes

mcp-inspector is a cursor rule published in the GitHub repository MantisWare/peepit (2 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,587 tokens. A static security scan graded it A with 0 findings. It is 100% identical to mcp-inspector, differing in 0 lines, and is treated as a copy.