unifi-mcp AGENTS.md

unifi-mcp AGENTS.md is an instructions file for Codex, OpenCode from pproenca/unifi-mcp. It costs 627 tokens per session, scanned A, original, MIT.

A local MCP server that connects AI assistants to the UniFi Network API. The UniFi Network API is a programming interface for managing Ubiquiti network equipment and settings.

In plain words
What is it for?
Use it when developing, testing, or maintaining the UniFi MCP server, including its TypeScript source, API documentation, scripts, and shared agent skills.
Why use it?
It gives an AI assistant a documented way to work with UniFi systems without requiring each project to build its own connection. The repository instructions also explain how contributors should work on the server.

Instructions file for CodexOpenCode

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 instructions/pproenca/unifi-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/pproenca/unifi-mcp

Made for: Codex, OpenCode.

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-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/pproenca/unifi-mcp/agents-md.svg)](https://agentmods.dev/instructions/pproenca/unifi-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/pproenca/unifi-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/pproenca/unifi-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 627 This file is loaded in full into every session.
When invoked 627 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00627 $0.00627
Opus 5 $0.00313 $0.00313
Sonnet 5 $0.00125 $0.00125
Haiku 4.5 $0.00063 $0.00063

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

Security

Grade A, and why

unifi-mcp AGENTS.md 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 4d 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.

AGENTS.md · 69 lines

How it starts

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

Contributor Guide

Guide for contributors working on the UniFi MCP server — a local MCP server for the UniFi Network API.

Project Overview

This repository provides an MCP (Model Context Protocol) server that wraps the UniFi Network API. It runs locally via npx unifi-mcp or bunx unifi-mcp and exposes UniFi management operations as MCP tools for use with Claude and other MCP-compatible hosts.

Repo Structure

  • src/ — Server implementation (TypeScript)
  • docs/ref/ — Scraped UniFi API reference docs
  • docs/ref/unifi-openapi.json — Full OpenAPI 3.1.0 spec for the UniFi Network API
  • docs/ref/index.md — Table of contents for all API endpoints
  • scripts/ — Utility scripts
    • scrape-docs.mjs — Scrapes UniFi docs from developer.ui.com
    • sync-skills.sh — Syncs .agents/skills/ as symlinks into .claude/skills/
  • .agents/skills/ — Agent skills (shared across Claude Code, Codex, etc.)
  • .claude/skills/ — Symlinks to .agents/skills/ (managed by sync-skills.sh)
  • package.json — Node.js project config

Skills

$code-change-verification

Run before marking work complete when changes affect src/, tests, or build config.

bash .agents/skills/code-change-verification/scripts/run.sh

$implementation-strategy

Use before editing code when the task changes MCP tool definitions, runtime behavior, or configuration. Determines the compatibility boundary and implementation shape.

$pr-draft-summary

When a task finishes with moderate-or-larger code changes, invoke to generate a PR summary block, branch suggestion, title, and draft description.

$docs-sync

Audit documentation coverage by comparing the implementation against docs/. Use after significant API surface changes.

$build-mcp-server

Reference skill for MCP server design and scaffolding patterns.

Development Workflow

  1. Create a feature branch: git checkout -b feat/<description>
  2. Install dependencies: npm install
  3. Implement changes with tests
  4. Run $code-change-verification before marking complete
  5. Use $pr-draft-summary for the final handoff

Read the full file on GitHub · 69 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. 4d ago First seen · 69 lines · 627 tokens per session scan A e53e9af9154d

Subscribe to this mod's changes

unifi-mcp AGENTS.md is an instructions file published in the GitHub repository pproenca/unifi-mcp (2 stars, last pushed 5mo ago), licensed MIT. It adds 627 tokens to every session, about $0.0031 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-31.