unifi-discovery

unifi-discovery is a skill for Claude Code from enuno/unifi-mcp-server. It costs 57 tokens per session (1,613 once invoked), scanned A, original, Apache-2.0.

A workflow for discovering which tools and backend a UniFi MCP server actually provides. A backend is the service mode that handles requests, such as a local controller, cloud service, or group of controllers.

In plain words
What is it for?
Use it at the start of a session, when a tool is missing or returns nothing, or when choosing between local, cloud, and fleet operation.
Why use it?
It prevents calls to tools that are not registered or requests sent through the wrong service mode. It also helps determine whether writes are available, read-only, or limited to previews.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the unifi-mcp-server plugin — 36 skills, 17 commands, 4 agents, 2 MCP servers shipped together

Good fit Use it at the start of a session, when a tool is missing or returns nothing, or when choosing between local, cloud, and fleet operation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/enuno/unifi-mcp-server/unifi-discovery
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.

Any agent
npx skills add enuno/unifi-mcp-server --skill unifi-discovery
Clone the repo
git clone --depth 1 https://github.com/enuno/unifi-mcp-server

Made for: Claude Code.

Or install unifi-mcp-server, the plugin that ships this one along with the rest of its 36 skills, 17 commands, 4 agents, 2 MCP servers.

Wrote 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.

agentmods badge for unifi-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-discovery/github.svg)](https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-discovery)
Your own site
<a href="https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-discovery"><img src="https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-discovery/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.

agentmods 80×15 button for unifi-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/enuno/unifi-mcp-server/unifi-discovery"><img src="https://agentmods.dev/badge/skills/enuno/unifi-mcp-server/unifi-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.1 $0.00057 $0.01613
Opus 5.5 $0.00023 $0.00645
Sonnet 5.5 $0.00011 $0.00323
Haiku 4.5 $0.00006 $0.00161

Measured 1mo ago against content hash acb8667d5c71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unifi-discovery scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -H "Authorization: Bearer $MCP_AUTH_TOKEN" \
skills/unifi-discovery/SKILL.md · 154 lines

How it starts

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

UniFi Discovery and Backend Selection

Start here when you do not yet know what this server exposes, or when a tool you expected is not there. Every other skill in this set assumes you have made these two decisions: which backend answers, and which tools are actually registered.

Step 1: Find out what is registered

The server's own capability listing is the source of truth. Three ways to read it, in order of preference.

The A2A agent card (HTTP deployments)

curl -s -H "Authorization: Bearer $MCP_AUTH_TOKEN" \
  http://127.0.0.1:3000/a2a/agent-card

The card lists every registered tool under skills, and summarises the deployment under metadata:

Field What it tells you
metadata.toolCount How many tools this deployment registered
metadata.readToolCount / writeToolCount / destructiveToolCount The split by risk tier
metadata.domains Which capability domains are present (network, protect, cloud, …)
metadata.apiType The running API mode: local, cloud-v1 or cloud-ea
metadata.readOnly Whether mutating tools were filtered out
metadata.dryRun Whether every write is forced into a preview
metadata.fleet Whether the fleet registry is configured
metadata.apiModes The modes this deployment can serve

The same card is served at /.well-known/agent-card.json, and the discovery manifest at POST /a2a/discover adds the per-domain tool inventory:

curl -s -X POST -H "Authorization: Bearer $MCP_AUTH_TOKEN" \
  -H "Content-Type: application/json" -d '{}' \
  http://127.0.0.1:3000/a2a/discover

The MCP protocol directly

# List the tools the server exposes
npx @modelcontextprotocol/inspector unifi-mcp-server

The repository card

agent-card.json at the repository root is the reference card for a default local deployment. It is useful for a quick sense of the full tool surface, but it is a reference: what your deployment exposes may be narrower. Trust the served card, not the file.

Read the full file on GitHub · 154 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. 1mo ago First seen · 154 lines · 57 tokens per session scan A acb8667d5c71

Subscribe to this mod's changes

unifi-discovery is a skill published in the GitHub repository enuno/unifi-mcp-server (395 stars, last pushed today), licensed Apache-2.0. It adds 57 tokens to every session and 1,613 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.

Related

unifi-discovery compared with skills from other repositories

unifi-discovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unifi-discoveryenuno/unifi-mcp-serverSkill395todayApache-2.0A57Claude Code
gke-compute-classesgoogle/skillsSkill25ktodayApache-2.0A83Claude Code, Codex
jetson-diagnosticNVIDIA/skillsSkill4.2ktodayApache-2.0A30Claude Code, Codex
holoscan-install-wheelNVIDIA/skillsSkill4.2ktodayApache-2.0A34Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill12k14d agoMITA113Claude Code, Codex
hsb-flashNVIDIA/skillsSkill4.2ktodayApache-2.0B94Claude Code
jetson-validate-imageNVIDIA/skillsSkill4.2ktodayApache-2.0B50Claude Code, Codex