unifi-mcp-server: Command for Claude Code

.claude/commands/build-docker.md

build-docker is a command for Claude Code from enuno/unifi-mcp-server. It costs 6 tokens per session (154 once invoked), scanned A, original, Apache-2.0.

A command that builds and locally tests a Docker image. Docker packages an application and its dependencies into a container that can run consistently in different environments.

In plain words
What is it for?
Use it to build the UniFi MCP Server image, optionally run it with test environment variables, and review build results and possible size optimizations.
Why use it?
It catches Dockerfile errors and other build problems before the image is used elsewhere. It also shows the image size, layers, warnings, and whether a test container runs successfully.

Command 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/commands/build-docker.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 build-docker

README.md
[![agentmods](https://agentmods.dev/badge/commands/enuno/unifi-mcp-server/build-docker.svg)](https://agentmods.dev/commands/enuno/unifi-mcp-server/build-docker)
Your own site
<a href="https://agentmods.dev/commands/enuno/unifi-mcp-server/build-docker"><img src="https://agentmods.dev/badge/commands/enuno/unifi-mcp-server/build-docker.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 154 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.00006 $0.00154
Opus 5 $0.00003 $0.00077
Sonnet 5 $0.00001 $0.00031
Haiku 4.5 $0.00001 $0.00015

Measured 7d ago against content hash 53e616615f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

build-docker 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 7d 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/commands/build-docker.md · 27 lines

What it actually says

Build the Docker image locally and verify it works.

Execute the following steps:

  1. Check if Dockerfile exists; if not, offer to create one
  2. Build the Docker image: docker build -t unifi-mcp-server:local .
  3. Display the build output and any warnings
  4. List the image size and layers
  5. Optionally run the container with test environment variables

Report back with:

  • Build success/failure status
  • Image size
  • Any build warnings or errors
  • Suggestions for optimization if needed
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. 7d ago First seen · 27 lines · 6 tokens per session scan A 53e616615f27

Subscribe to this mod's changes

build-docker is a command published in the GitHub repository enuno/unifi-mcp-server (245 stars, last pushed today), licensed Apache-2.0. It adds 6 tokens to every session and 154 once invoked, about $0.0000 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.