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.
npx agentmods add rules/rm2thaddeus/pixel_detective/docker-mcp-operationsgit clone --depth 1 https://github.com/rm2thaddeus/Pixel_DetectiveWhat 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 | $0.00007 | $0.01090 |
| Opus 5 | $0.00003 | $0.00545 |
| Sonnet 5 | $0.00001 | $0.00218 |
| Haiku 4.5 | $0.00001 | $0.00109 |
Grade A, and why
docker-mcp-operations 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 3d 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 — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Docker MCP Operations
Reference: Follow @use-mcp-servers for general MCP workflows and @powershell-syntax for terminal commands
Docker MCP Server Configuration
Claude Desktop Setup
Add to your Claude Desktop config file:
- Windows:
%APPDATA%/Claude/claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"docker-mcp": {
"command": "uvx",
"args": ["docker-mcp"]
}
}
}
Available Docker MCP Tools
1. Container Management
create-container: Create standalone Docker containerslist-containers: List all Docker containers with statusget-logs: Retrieve logs from specific containers
2. Docker Compose Operations
deploy-compose: Deploy Docker Compose stacks- Stack Management: Manage multi-service applications
Docker MCP Workflows
Container Creation Workflow
{
"image": "nginx:latest",
"name": "web-server",
"ports": {"80": "8080"},
"environment": {"ENV_VAR": "production"}
}
Compose Stack Deployment
{
"project_name": "pixel-detective-stack",
"compose_yaml": "version: '3.8'\nservices:\n app:\n image: node:18\n ports:\n - '3000:3000'"
}
Log Analysis Pattern
{
"container_name": "web-server"
}
Best Practices for Docker MCP
Development Workflow
- Plan Architecture: Define services, networks, and volumes needed
- Start Small: Begin with single containers before compose stacks
- Monitor Logs: Use
get-logsfor debugging and monitoring - Version Control: Store compose files in repository with proper documentation
Container Naming Conventions
- Project Prefix:
pixel-detective-web,pixel-detective-api - Environment Suffix:
-dev,-staging,-prod - Service Description: Clear, descriptive names
Port Management
- Development: Use high ports (8000+) to avoid conflicts
- Documentation: Always document port mappings in project docs
- Consistency: Use same ports across environments when possible
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.
- 3d ago First seen · 148 lines · 7 tokens per session scan A 44f3014846cb
docker-mcp-operations is a cursor rule published in the GitHub repository rm2thaddeus/Pixel_Detective (21 stars, last pushed 7mo ago), licensed MIT. It adds 7 tokens to every session and 1,090 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.
Other cursor rules, from other repositories
aws-ecs
Definitive guidelines for building, deploying, and operating applications on AWS ECS, emphasizing immutable containers, secure secrets management, and robust operational patterns.
backend
Backend development rules for TT Studio - AI model management backend.
devops-infrastructure
DevOps and infrastructure: Docker, Kubernetes, Terraform, CI/CD. Load when editing Dockerfiles, compose, k8s manifests, Terraform, or workflow YAML — not for application code.
hack
Hack v3 is local-first. This project uses hack for local runtime orchestration (compose + DNS/TLS + logs + sessions). Prefer hack when shell access is available. Use MCP only when shell access is unavailable.
colima-docker-runtime
This workspace uses Colima for Docker; use compose-backed tests when Colima is running.
local-compose-db-lifecycle-for-web-tests
Keep local compose DB lifecycle ready for web tests.