unifi-mcp-server: Command for Claude Code

.claude/commands/unifi-mcp-release-prep.md

unifi-mcp-release-prep is a command for Claude Code from enuno/unifi-mcp-server. It costs 14 tokens per session (1,076 once invoked), scanned A, original, Apache-2.0.

A release-preparation command for the UniFi MCP Server, a program that connects an AI assistant to UniFi network data and actions. It coordinates version changes, release notes, tests, and code-quality checks.

In plain words
What is it for?
Use it when preparing a major, minor, patch, or custom release. It checks the repository, runs formatting, linting, type, security, dependency, test, and coverage checks, then updates release files.
Why use it?
It reduces the chance of publishing a release with failing tests, uncommitted work, missing notes, or code-quality and security problems. It also checks whether coverage reaches the project's stated 80% target.

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/unifi-mcp-release-prep.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-mcp-release-prep

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/enuno/unifi-mcp-server/unifi-mcp-release-prep"><img src="https://agentmods.dev/badge/commands/enuno/unifi-mcp-server/unifi-mcp-release-prep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,076 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.00014 $0.01076
Opus 5 $0.00007 $0.00538
Sonnet 5 $0.00003 $0.00215
Haiku 4.5 $0.00001 $0.00108

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

Security

Grade A, and why

unifi-mcp-release-prep 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 11d 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/unifi-mcp-release-prep.md · 147 lines

What it actually says

Prepare a new release for the UniFi MCP Server with comprehensive quality checks.

This command orchestrates the complete release preparation process including version bumping, changelog generation, testing, and validation.

Steps to execute:

  1. Ask user for release details:

    • Version number (e.g., "0.2.0") or type (major/minor/patch)
    • Release type: major, minor, patch, or custom
    • Brief release description
  2. Verify current state:

    • Check git status (must be clean or on release branch)
    • Verify on main branch or create release branch
    • Check for uncommitted changes
    • Ensure all tests pass
  3. Run comprehensive quality checks:

    • Code formatting: black --check src/ tests/
    • Import sorting: isort --check-only src/ tests/
    • Linting: ruff check src/ tests/
    • Type checking: mypy src/
    • Security scan: bandit -r src/ -ll
    • Dependency check: safety check
  4. Run full test suite with coverage:

    • Execute: pytest --cov=src --cov-report=term-missing -v
    • Verify coverage meets 80% minimum threshold
    • Check that all tests pass
    • If coverage < 80%, warn user and ask to proceed
  5. Update version numbers:

    • Update pyproject.toml version field
    • Update src/__init__.py version
    • Update version in README.md badges
    • Update Docker image tags in documentation
  6. Generate changelog:

    • Get commits since last tag: git log $(git describe --tags --abbrev=0)..HEAD --oneline
    • Categorize commits:
      • Features (feat:)
      • Bug fixes (fix:)
      • Documentation (docs:)
      • Refactoring (refactor:)
      • Tests (test:)
      • Other changes
    • Update CHANGELOG.md with new version section
  7. Update documentation:

    • Run /unifi-mcp-update-docs to sync API.md
    • Verify README.md is current
    • Check that examples still work
    • Update compatibility matrix if needed
  8. Create release summary:

    • Version number
    • Release date
    • Highlights (top 3-5 features/fixes)
    • Breaking changes (if any)
    • Contributors
    • Full changelog
  9. Prepare release artifacts:

    • Tag format: v{version} (e.g., v0.2.0)
    • Release branch: release/v{version} (if not on main)
    • Draft GitHub release notes

Report back with:

  • Pre-release checklist status:

    • All tests passing
    • Coverage >= 80%
    • No linting errors
    • No type errors
    • No security vulnerabilities
    • Documentation updated
    • Changelog generated
    • Version bumped
  • Release summary

  • Next steps:

    • Review changes
    • Create release tag
    • Push to GitHub
    • Create GitHub release
    • Publish to PyPI (optional)
    • Build and push Docker images

Example workflow:

User: "Prepare release 0.2.0"

Assistant checks:
✓ Git status clean
✓ On main branch
✓ All tests pass (179/179)
✗ Coverage: 34.10% (below 80% target)
✓ No linting errors
✓ No type errors
✓ No security issues

Release Summary:
Version: 0.2.0
Date: 2025-01-15
Type: Minor release

Highlights:
- Zone-Based Firewall implementation (60% complete)
- Traffic Flows integration (100% complete)
- 22 new tool modules
- Comprehensive CI/CD pipeline

Breaking Changes: None

Warning: Test coverage (34.10%) is below 80% target.
Proceed with release? (y/n)

Safety checks:

  • Never release with failing tests
  • Warn if coverage < 80%
  • Verify no uncommitted changes
  • Check for security vulnerabilities
  • Confirm version number doesn't already exist
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. 11d ago First seen · 147 lines · 14 tokens per session scan A 9e2f58001069

Subscribe to this mod's changes

unifi-mcp-release-prep is a command published in the GitHub repository enuno/unifi-mcp-server (250 stars, last pushed 4d ago), licensed Apache-2.0. It adds 14 tokens to every session and 1,076 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.