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.
npx agentmods add rules/mantisware/peepit/mcp-inspectorgit clone --depth 1 https://github.com/MantisWare/peepitWhat 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.
| Model | Per session | Once 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 |
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.
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.
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_cmdmcp_playwright_browser_navigatemcp_playwright_browser_typemcp_playwright_browser_clickmcp_playwright_browser_snapshotmcp_playwright_browser_console_messagesmcp_playwright_browser_wait_for
User Workspace Path Placeholder:
- The path to the
start.shscript 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
- Kill Existing Inspector Processes:
- Action: Call
run_terminal_cmd. command:pkill -f 'npx @modelcontextprotocol/inspector' || trueis_background:false- Expected: Cleans up any lingering Inspector processes.
- Action: Call
- Start New Inspector Process:
- Action: Call
run_terminal_cmd. command:npx @modelcontextprotocol/inspectoris_background:true- Expected: MCP Inspector starts in the background.
- Action: Call
- 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.
- Action: Call
Phase 2: Connect to Server via Playwright
- 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).
- Action: Call
- Fill Form (Command & Args only):
- Set Command:
- Action: Call
mcp_playwright_browser_type. element: "Command textbox" (Obtainreffrom snapshot).text:macos-automator-mcp
- Action: Call
- Set Arguments:
- Action: Call
mcp_playwright_browser_type. element: "Arguments textbox" (Obtainreffrom 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).
- Action: Call
- (Note: Environment Variables are skipped in this flow for simplicity and stability, as issues were previously observed when setting LOG_LEVEL=DEBUG during connection.)
- Set Command:
- Click "Connect":
- Action: Call
mcp_playwright_browser_click. element: "Connect button" (Obtainreffrom snapshot).- Expected: Connection to the
macos-automator-mcpserver is established. - Snapshot: Take a snapshot. Verify connection status (e.g., text changes to "Connected") and check for initial server logs in the UI.
- Action: Call
Phase 3: Interact with a Tool via Playwright
- List Tools:
- Action: Call
mcp_playwright_browser_click. element: "List Tools button" (Obtainreffrom the latest snapshot).- Expected: The list of available tools from the
macos-automator-mcpserver is displayed. - Snapshot: Take a snapshot. Verify tools like
execute_scriptandget_scripting_tipsare visible.
- Action: Call
- Select 'get_scripting_tips' Tool:
- Action: Call
mcp_playwright_browser_click. element: "get_scripting_tips tool in list" (Obtainrefby identifying it in the snapshot's tool list).- Expected: The parameters form for
get_scripting_tipsis 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.).
- Action: Call
- Execute 'get_scripting_tips' (default parameters):
- Action: Call
mcp_playwright_browser_click. element: "Run Tool button" (Obtainreffor the 'Run Tool' button specific to theget_scripting_tipsform in the right panel from the snapshot).- Expected: The
get_scripting_tipstool is executed with its default parameters. - Snapshot: Take a snapshot.
- Action: Call
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.
- yesterday First seen · 99 lines · 0 tokens per session scan A bc707fcaa141
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.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
coolify-ai-docs
Master reference to all Coolify AI documentation in .ai/ directory.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.
python_lib
Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests.
specs
This directory contains product and tech specs for Streamlit features.