docker-mcp: Instructions file for Codex

AGENTS.md

docker-mcp AGENTS.md is an instructions file for Codex, OpenCode from L337-org/docker-mcp. It costs 9,613 tokens per session, scanned A, original, MIT.

A repository instruction file for docker-mcp, a Python server that makes Docker functions available to assistants through tools.

In plain words
What is it for?
Use it when reviewing or changing the docker-mcp project, its instructions, commands, or project areas.
Why use it?
It tells contributors what to check first, including inaccurate documentation, ineffective safeguards, and outdated lists.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is L337-org/docker-mcp's own configuration. It tells Codex and OpenCode how to work on docker-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 docker-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to L337-org/docker-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/L337-org/docker-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/L337-org/docker-mcp

Made for: Codex, OpenCode.

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 docker-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/l337-org/docker-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/l337-org/docker-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/l337-org/docker-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/l337-org/docker-mcp/agents-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 docker-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/l337-org/docker-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/l337-org/docker-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,613 This file is loaded in full into every session.
When invoked 9,613 The same file — it is already loaded in full.
Security scan A 1 finding. 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.09613 $0.09613
Opus 5.5 $0.03845 $0.03845
Sonnet 5.5 $0.01923 $0.01923
Haiku 4.5 $0.00961 $0.00961

Measured 8d ago against content hash 4defe230e10b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker-mcp AGENTS.md scanned grade A with 1 finding 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 8d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| `_cli.py`, `_ssh_proxy.py`, CLI-backed tools | [architecture/cli-shell-out.md](architecture/cli-shell-out.md) | `subprocess.run` called directly; `shell=True`; a missing `timeout=`; a caller's value put in argv as `KEY
AGENTS.md · 519 lines

How it starts

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

AGENTS.md

The shared instruction file for this repository. Every assistant reads this one; CLAUDE.md and .github/copilot-instructions.md are pointers to it.

docker-mcp is a Python MCP server (requires Python >=3.14) managed with uv that exposes the Docker SDK for Python as MCP tools. The entry point is the docker_mcp package, run with python -m docker_mcp or via the installed console script.

Review priorities

Ordered by where real defects in this project have actually come from. Spend review effort in this order.

  1. Claims in prose that nothing type-checks. Docstrings, docs and comments asserting a method, flag, route or identifier semantics that does not exist. Three scout tools shipped a --format flag the subcommand does not define; a docstring claimed buildx resolves --file against the build context when it resolves against the CWD. Verify against the primary source, not recollection.
  2. A guard that silently stops guarding. See the invariant list below. These pass CI, pass review at a glance, and fail in production or never fail loudly at all.
  3. Enumerations that drift. Any list of domains, tools, channels or files that is copied rather than derived. Derive it, or assert it.
  4. Unbounded reads of anything external. Daemon streams, registry bodies, staged files, CLI output.
  5. Docstring quality on any touched @tool() - the ratchet in the checklist below.
  6. Everything else.

Area checks

Read the linked file before judging a substantive change to that area.

Area Read Watch for
server.py, docker_mcp/tools/ architecture/server.md _slim_schema or _apply_host_schema changing validation rather than display; a disabled capability registered-then-refusing instead of absent
_hosts.py, host selection architecture/hosts.md use_context=False dropped; system_reconnect gaining the ability to retarget an arbitrary URL; a write path that no longer requires an explicit host in multi-host mode
docker_mcp/redaction/, the redact host option architecture/redaction.md Host.redact read directly instead of settings.redacts / settings.host_redacted (misses the global switch); a malformed setting accepted rather than failing at startup; a setting's error message repeating the value it was given
_cli.py, _ssh_proxy.py, CLI-backed tools architecture/cli-shell-out.md subprocess.run called directly; shell=True; a missing timeout=; a caller's value put in argv as KEY=VALUE where cli_variables / values_by_name should carry it in the CLI's environment; the remote-exec fallback preferred over a usable local CLI; staging consequences absent from the docstring
any @tool() docstring architecture/tool-descriptions.md the checklist below
code calling docker architecture/docker-sdk.md an unverified method; a hand-built route that is not in the Engine API spec; a reach-in past the public SDK introduced without recorded sign-off
Dockerfile, manifest.json, server.json, claude-plugin/, release workflows architecture/distribution.md a version-declaring file missing from the bump checklist there, preflight, or the version tests; a registry ownership marker no longer matching server.json's name
skills/l337-docker/ architecture/agent-skill.md the skill described as equivalent to the server; tool-permission frontmatter added; a hand-edited figure in MCP_VS_SKILLS.md
.github/workflows/ architecture/ci.md a third-party uses: naming a tag or branch (L337-org/github-workflows is named at its major-version tag); a new job without timeout-minutes where the workflow requires one

Read the full file on GitHub · 519 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. 8d ago Changed · +3 lines · +63 tokens per session 4defe230e10b
  2. 19d ago Changed · +3 tokens per session 9946d3c7c59d
  3. 26d ago Changed · +10 lines · +252 tokens per session 1cd84afac2cb
  4. 1mo ago Changed · +17 tokens per session 3d2f151459a5
  5. 1mo ago Changed · +3 lines · +57 tokens per session 00dffaf5d145
  6. 1mo ago Changed · +10 lines · +249 tokens per session 57d71d051736
  7. 1mo ago Changed · -2 lines · -103 tokens per session b0a6f71c214c
  8. 1mo ago Changed · +3 lines · +82 tokens per session 0babd6992443
  9. 2mo ago Changed · -2 lines · -48 tokens per session 75a6d14c6b9f
  10. 2mo ago First seen · 494 lines · 9,041 tokens per session scan A 2ba0197d8a8a

Subscribe to this mod's changes

docker-mcp AGENTS.md is an instructions file published in the GitHub repository L337-org/docker-mcp (17 stars, last pushed yesterday), licensed MIT. It adds 9,613 tokens to every session, about $0.0385 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

docker-mcp AGENTS.md compared with instructions from other repositories

docker-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docker-mcp AGENTS.mdL337-org/docker-mcpInstructions file17yesterdayMITA9,613Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291kyesterdayMITA4,396Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot