Borrowing it
Nothing to install: this file belongs to dhofheinz/mcp-comfyui-flux. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dhofheinz/mcp-comfyui-flux/main/.claude/commands/mcp-setup.mdgit clone --depth 1 https://github.com/dhofheinz/mcp-comfyui-fluxWrote 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.
[](https://agentmods.dev/commands/dhofheinz/mcp-comfyui-flux/mcp-setup)<a href="https://agentmods.dev/commands/dhofheinz/mcp-comfyui-flux/mcp-setup"><img src="https://agentmods.dev/badge/commands/dhofheinz/mcp-comfyui-flux/mcp-setup/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.
<a href="https://agentmods.dev/commands/dhofheinz/mcp-comfyui-flux/mcp-setup"><img src="https://agentmods.dev/badge/commands/dhofheinz/mcp-comfyui-flux/mcp-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.01979 |
| Opus 5 | $0.00010 | $0.00989 |
| Sonnet 5 | $0.00004 | $0.00396 |
| Haiku 4.5 | $0.00002 | $0.00198 |
Grade A, and why
mcp-setup 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.
How it starts
The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP-ComfyUI Setup Command
Orchestrates the mcp-comfyui-setup-guardian agent to ensure proper installation, configuration, and maintenance of the MCP-ComfyUI-FLUX system with consistent container naming and Claude Desktop integration.
Command Argument Parsing
Parse the $ARGUMENTS variable to extract the action and options:
-
Extract the action (first non-flag argument):
verify- Perform comprehensive verification of current setup without making changesinstall- Complete installation from scratch with hook configurationrepair- Fix existing installation issues while preserving customizationsvalidate- Test end-to-end functionality of the system- If no action is provided, default to
verify
-
Parse optional flags (can appear in any order):
--project-name <name>- Extract the next token as the project name to use instead of directory name--dry-run- Set flag to show proposed changes without applying them--force- Set flag to skip user confirmations and backup creation--verbose- Set flag to enable detailed debugging output
-
Handle edge cases:
- If
$ARGUMENTSis empty, runverifyaction with default options - If unknown action is provided, show error and list valid actions
- If
--project-nameis provided without a value, show error - Ignore extra whitespace and handle quoted project names properly
- If
Execution Process
When the user invokes /mcp-setup, execute the following methodical process using the mcp-comfyui-setup-guardian agent:
Phase 1: Discovery & Assessment
-
Environment Detection
- Detect current working directory and derive project name
- Check for existing .env file and COMPOSE_PROJECT_NAME
- Identify OS platform (Windows/WSL2/Linux)
- Locate Claude Desktop config path
-
Container State Analysis
- Run
docker ps -a --filter "name=comfyui" --filter "name=mcp" - Extract actual container names and states
- Compare against expected naming patterns
- Document any discrepancies
- Run
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.
- 11d ago First seen · 284 lines · 0 tokens per session scan A 663d46e86b03
mcp-setup is a command published in the GitHub repository dhofheinz/mcp-comfyui-flux (4 stars, last pushed 1y ago), licensed MIT. It adds 19 tokens to every session and 1,979 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-31.
Other commands, from other repositories
create-docker-mcp-tunnel
Stand up an Anthropic MCP tunnel locally with Docker Compose so Claude can call a private MCP server (manual-credentials quickstart).
cisco-isovalent-platform-setup
Install the Isovalent platform on Kubernetes (Cilium CNI, Hubble observability, Tetragon eBPF runtime security) in either OSS or Enterprise edition. Renders Helm values and install/upgrade scripts; this is the platform install prerequisite for the Splunk Observability + Splunk Platform integration done by…
build-agent
Build Docker images for Golden Armada agents.
application-crud
A command reference for creating and managing Coolify applications connected to private GitHub repositories. It covers application records, deployment settings, and common API errors.
sandbox-destroy
Tear down a sandbox box — remove its container and named volume. --keep-volume leaves the volume; with no id, prune reclaims any leaked ca.sandbox=1-labeled object. Cached images are retained.
review-helm
Run Helm chart review for structure, best practices, and K8s security/operational issues in templates.