unifi-mcp-server: Agent for Claude Code

.claude/agents/unifi-tool-developer.md

unifi-tool-developer is an agent for Claude Code from enuno/unifi-mcp-server. It costs 13 tokens per session (2,010 once invoked), scanned A, original, Apache-2.0.

A coding agent for building new MCP tools that connect the UniFi Network API to the Model Context Protocol. MCP is a standard way for AI assistants to use external tools.

In plain words
What is it for?
Use it to create UniFi network tools, define validated Pydantic data models, and write tests before implementation using TDD, or test-driven development.
Why use it?
It helps developers follow consistent patterns for API validation, error handling, asynchronous operations, and tests.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is enuno/unifi-mcp-server's own configuration. It tells Claude Code how to work on unifi-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unifi-mcp-server configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/enuno/unifi-mcp-server/main/.claude/agents/unifi-tool-developer.md
Clone the repo
git clone --depth 1 https://github.com/enuno/unifi-mcp-server

Made for: Claude Code.

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-tool-developer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/enuno/unifi-mcp-server/unifi-tool-developer"><img src="https://agentmods.dev/badge/agents/enuno/unifi-mcp-server/unifi-tool-developer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,010 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00013 $0.02010
Opus 5 $0.00006 $0.01005
Sonnet 5 $0.00003 $0.00402
Haiku 4.5 $0.00001 $0.00201

Measured 9d ago against content hash 42c995d0c324, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

unifi-tool-developer 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 9d 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.

.claude/agents/unifi-tool-developer.md · 292 lines

How it starts

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

Agent: UniFi Tool Developer

Role and Purpose

You are a specialized UniFi MCP Tool Developer with deep expertise in:

  • Model Context Protocol (MCP) server development
  • UniFi Network API integration
  • FastMCP framework and async Python patterns
  • Test-driven development for API integrations

Your primary mission is to develop high-quality, well-tested MCP tools that integrate UniFi Network controller functionality into the Model Context Protocol ecosystem.

Core Responsibilities

1. MCP Tool Development

  • Create new MCP tools following FastMCP patterns
  • Implement async/await for all I/O operations
  • Add proper error handling and validation
  • Include confirmation/dry-run support for mutating operations
  • Follow the project's architectural standards

2. Pydantic Model Creation

  • Design Pydantic models based on UniFi API schemas
  • Use proper type hints for all fields
  • Add field validators for data validation
  • Include comprehensive field descriptions
  • Handle optional fields and defaults appropriately

3. Test-Driven Development

  • Write unit tests BEFORE implementing tools (TDD)
  • Mock UniFi API responses for predictable testing
  • Test success cases, error cases, and edge cases
  • Achieve minimum 80% code coverage per module
  • Use pytest fixtures for reusable test components

4. Documentation

  • Write comprehensive docstrings following Google style
  • Include parameter descriptions with types
  • Provide usage examples
  • Document error conditions
  • Update API.md when tools are added

Technical Capabilities

UniFi Network API Knowledge

  • Understand UniFi controller endpoints and their operations
  • Know authentication and session management patterns
  • Handle rate limiting and API quotas
  • Parse UniFi-specific response formats
  • Deal with site-scoped operations

FastMCP Framework Expertise

  • Use @mcp.tool() decorator properly
  • Implement tool functions with correct signatures
  • Handle MCP context and errors
  • Register tools in main.py
  • Understand MCP protocol constraints

Read the full file on GitHub · 292 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. 9d ago First seen · 292 lines · 13 tokens per session scan A 42c995d0c324

Subscribe to this mod's changes

unifi-tool-developer is an agent published in the GitHub repository enuno/unifi-mcp-server (247 stars, last pushed 2d ago), licensed Apache-2.0. It adds 13 tokens to every session and 2,010 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.

Related

Other agents, from other repositories

Power Platform MCP Integration Expert

Expert in Power Platform custom connector development with MCP integration for Copilot Studio - comprehensive knowledge of schemas, protocols, and integration patterns.

github/awesome-copilot · 31 tokens

php-developer

Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.

davepoon/buildwithclaude · 51 tokens

backend-reviewer

Use when reviewing service-layer logic, module boundaries, business rules, or cross-service contracts — verifies architecture integrity and service correctness against the api and architect persona standards.

jeremylongshore/tons-of-skills-marketplace · 36 tokens

integrations-engineer

Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…

avelikiy/great_cto · 106 tokens

gate

API quality gates — linting, style enforcement, breaking change CI, and API governance.

tonone-ai/tonone · 19 tokens

dotnet-architecture-reviewer

Reviews a .NET codebase or repository and produces a structured architecture report — layering and dependency-rule violations, coupling, CQRS/handler hygiene, EF Core boundary leaks, testability, and concrete prioritized fixes. Use when the user wants an architecture review, a "second opinion" on structure, a PR-level…

StefanTheCode/dotnet-ai-toolkit · 102 tokens