Borrowing it
Nothing to install: this file belongs to enuno/unifi-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/enuno/unifi-mcp-server/main/.claude/commands/unifi-mcp-inspect.mdgit clone --depth 1 https://github.com/enuno/unifi-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/enuno/unifi-mcp-server/unifi-mcp-inspect)<a href="https://agentmods.dev/commands/enuno/unifi-mcp-server/unifi-mcp-inspect"><img src="https://agentmods.dev/badge/commands/enuno/unifi-mcp-server/unifi-mcp-inspect/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/enuno/unifi-mcp-server/unifi-mcp-inspect"><img src="https://agentmods.dev/badge/commands/enuno/unifi-mcp-server/unifi-mcp-inspect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.00971 |
| Opus 5 | $0.00006 | $0.00485 |
| Sonnet 5 | $0.00002 | $0.00194 |
| Haiku 4.5 | $0.00001 | $0.00097 |
Grade A, and why
unifi-mcp-inspect 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 12d ago.
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.
What it actually says
Launch the MCP Inspector to interactively test and debug UniFi MCP Server tools and resources.
The MCP Inspector is a web-based UI for testing MCP servers, making API calls, and inspecting responses.
Prerequisites check:
-
Verify Node.js is installed:
node --version- If not installed, provide installation instructions
-
Check if .env file exists:
- If not, copy from .env.example
- Remind user to add real UniFi credentials
-
Verify UniFi controller is accessible:
- Check UNIFI_HOST environment variable
- Provide connection test if needed
Steps to execute:
-
Prepare environment:
- Check .env file has required variables:
- UNIFI_HOST
- UNIFI_USERNAME
- UNIFI_PASSWORD
- UNIFI_SITE (default: "default")
- Warn if credentials are placeholder values
- Offer to help configure if needed
- Check .env file has required variables:
-
Start MCP Inspector:
npx @modelcontextprotocol/inspector uv run src/main.py- Run in background if user requests
- Capture startup logs
-
Provide usage instructions:
- Inspector URL (typically http://localhost:5173)
- How to test tools:
- Select a tool from the list
- Fill in required parameters
- Execute and view response
- How to test resources:
- Browse available resources
- Subscribe to resource updates
- View resource data
-
Monitor the inspector session:
- Display connection status
- Show any errors from the MCP server
- Log tool invocations for debugging
-
Suggest tools to test first:
- get_sites - List all UniFi sites (no parameters needed)
- get_devices - List devices for a site
- get_clients - List connected clients
- get_networks - List configured networks
Report back with:
-
MCP Inspector startup status
-
URL to access the web UI
-
Suggested workflow for testing:
- Start with read-only tools
- Test resource endpoints
- Try tools with parameters
- Test error handling (invalid params)
- Test confirmation/dry-run for mutating operations
-
Quick reference for common tools:
Read-only tools (safe to test): - get_sites - get_devices - get_clients - get_networks - get_wlans - list_firewall_rules - get_port_forwards Mutating tools (use dry_run=true): - create_firewall_rule - update_device - create_network - create_wlan - block_client
Example output:
MCP Inspector Starting...
Environment Check:
✓ Node.js installed (v20.10.0)
✓ .env file found
✓ UniFi credentials configured
✓ UniFi Host: https://192.168.2.1
Starting Inspector:
$ npx @modelcontextprotocol/inspector uv run src/main.py
Inspector running at: http://localhost:5173
Available Tools: 40
Available Resources: 4
Suggested Test Workflow:
1. Open http://localhost:5173 in your browser
2. Test get_sites to verify connectivity
3. Test get_devices with site_name from step 2
4. Explore other tools in categories:
- Site Management (3 tools)
- Device Operations (6 tools)
- Client Management (5 tools)
- Firewall & Security (8 tools)
Tips:
- Use dry_run=true for mutating operations
- Check the terminal for detailed server logs
- Press Ctrl+C to stop the inspector
Troubleshooting:
Common issues and solutions:
- Connection refused: Check if UniFi controller is accessible
- Authentication failed: Verify credentials in .env
- SSL errors: Set UNIFI_VERIFY_SSL=false for self-signed certs
- Port already in use: Inspector may already be running
Safety checks:
- Warn before testing mutating operations
- Suggest using dry_run mode first
- Never log credentials in output
- Remind about rate limiting for API calls
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.
- 12d ago First seen · 159 lines · 12 tokens per session scan A b50cbc6a0470
unifi-mcp-inspect is a command published in the GitHub repository enuno/unifi-mcp-server (252 stars, last pushed 5d ago), licensed Apache-2.0. It adds 12 tokens to every session and 971 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
playwright-test-heal
Run all my tests and fix the failing ones.
verify-bug
Post-merge UAT verification workflow. Walks JIRA reproduce steps, performs comparative audits (Before/After), attaches evidence to JIRA, and transitions status on PASS.
bugfix
Bug fix workflow: root cause analysis → user review → regression test + fix via TDD.
timeout-fix
A procedure for diagnosing and fixing tests that exceed their time limit by finding causes such as slow processing, hanging network calls, deadlocks, heavy setup, or leaked resources.
ui-aqa-flow-test-report-analysis
Phase 7 Test Report Analysis of ui-aqa-flow.
api-aqa-flow-execution-and-report-analysis
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED).