unifi-network-mcp: Instructions file for Claude Code

CLAUDE.md

unifi-network-mcp CLAUDE.md is an instructions file for Claude Code from owine/unifi-network-mcp. It costs 3,805 tokens per session, scanned A, original, MIT.

A project instruction guide for unifi-network-mcp, covering the project overview, local development setup, commands, and how TypeScript 6 and 7 are used side by side.

In plain words
What is it for?
Setting up the project locally, running its commands, and working safely across its TypeScript versions.
Why use it?
It helps the coding agent follow the repository's development setup and version-specific conventions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is owine/unifi-network-mcp's own configuration. It tells Claude Code how to work on unifi-network-mcp 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-network-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to owine/unifi-network-mcp. 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/owine/unifi-network-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/owine/unifi-network-mcp

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-network-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/owine/unifi-network-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/owine/unifi-network-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/owine/unifi-network-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/owine/unifi-network-mcp/claude-md/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-network-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/owine/unifi-network-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/owine/unifi-network-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,805 This file is loaded in full into every session.
When invoked 3,805 The same file — it is already loaded in full.
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.03805 $0.03805
Opus 5.5 $0.01522 $0.01522
Sonnet 5.5 $0.00761 $0.00761
Haiku 4.5 $0.00380 $0.00380

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

Security

Grade A, and why

unifi-network-mcp CLAUDE.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 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.

CLAUDE.md · 156 lines

How it starts

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

CLAUDE.md

Project overview

MCP server exposing UniFi Network's Integration API as tool calls. Built with the MCP SDK, TypeScript, and Zod for input validation. Runs on Node.js via stdio transport. Tools are grouped into one module per API domain under src/tools/.

Local dev setup

  • Node version pinned in .nvmrc. Use fnm — fnm use auto-reads .nvmrc on cd. The published package declares a broader engines.node range in package.json for consumers; .nvmrc only pins development.
  • Package manager: pnpm, pinned by packageManager in package.json. Node 25 and later no longer bundle Corepack, so install pnpm standalone (brew install pnpm or npm install -g pnpm); it switches itself to the pinned version. Then pnpm install.
  • Dev install/build use pnpm; publishing uses npm publish --provenance (hybrid — npm has the most battle-tested OIDC flow).

TypeScript 6/7 side-by-side

Do not "fix" the two aliased typescript entries in devDependencies — they are deliberate.

"@typescript/native": "npm:[email protected]",         // the real TS 7 — provides `tsc`
"typescript": "npm:@typescript/[email protected]",    // vendored TS 6 — provides `tsc6` + the JS API

TypeScript 7 is the Go port and ships no JS API, so typescript-estree crashes at module load with TypeError: Cannot read properties of undefined (reading 'Cjs') — meaning typescript-eslint cannot run on it at all. The aliases split the import specifier from the bin:

  • Anything resolving the typescript module (i.e. typescript-eslint) gets TS 6 and its JS API.
  • The tsc bin is TS 7, because the v7 package keeps that bin name — so build and typecheck run the Go compiler with no script changes.

Consequences worth knowing:

  • tsc6 is available if you ever need the old compiler for comparison.
  • Renovate now tracks two packages: the @typescript/native line is TS 7 proper; the typescript line is the separately-versioned @typescript/typescript6 vendoring (its package version need not match tsc6 --version).
  • Unwind this once typescript-eslint supports TS 7.1's new API (typescript-eslint#10940): drop @typescript/native and point typescript back at the real package. Nothing else references either alias. See the TS 7.0 announcement and #182.

Read the full file on GitHub · 156 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. yesterday Changed · +1 lines · +30 tokens per session b44e43af5fde
  2. 12d ago Changed · +2 lines · +51 tokens per session c13d8590ee59
  3. 14d ago Changed · +2 lines · +171 tokens per session 2efc6aec937e
  4. 23d ago Changed · +335 tokens per session 8f4c8e6cab0e
  5. 28d ago Changed · +7 lines · +447 tokens per session 5e6d63e90e76
  6. 1mo ago Changed · +11 lines · +630 tokens per session cc9ed1f6edd0
  7. 1mo ago Changed · +3 lines · +106 tokens per session 9106fb3d474c
  8. 1mo ago Changed · +1 lines · +20 tokens per session f5c83cddec37
  9. 2mo ago Changed · +2 lines · +51 tokens per session 4e45190869f9
  10. 2mo ago First seen · 127 lines · 1,964 tokens per session scan A 3ee982f98ac5

Subscribe to this mod's changes

unifi-network-mcp CLAUDE.md is an instructions file published in the GitHub repository owine/unifi-network-mcp (2 stars, last pushed 2d ago), licensed MIT. It adds 3,805 tokens to every session, about $0.0152 per session on Opus 5.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.

Related

unifi-network-mcp CLAUDE.md compared with instructions from other repositories

unifi-network-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unifi-network-mcp CLAUDE.mdowine/unifi-network-mcpInstructions file22d agoMITA3,805Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA8,130Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,153GitHub Copilot
generative-ai-for-beginners AGENTS.mdmicrosoft/generative-ai-for-beginnersInstructions file124ktodayMITA2,981Codex, OpenCode