podman-mcp
AGENTS.md1 starsChanged 53 days agoMITView on GitHub
All tools follow the portmanteau pattern — one function per domain with operation: Literal[...] discriminator. Tools auto-register via @mcp.tool() decorator on import.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llms-full.txtllms.txt
- llms.txtllms.txt
- podman-mcpSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
All tools follow the portmanteau pattern — one function per domain with operation: Literal[...] discriminator.
- Very specific: line 46
Create src/podmanmcp/tools/yourname.py with @mcp.tool() + @check_podman_available
- Very specific: line 47
Add import to src/podmanmcp/tool_registration.py
- Distinctive: line 48
Import auto-registers at server start — no other changes needed
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
podman-mcp — AGENTS.md
Quick Reference
| Ports | Backend 11113 · Frontend 11112 · MCP /mcp |
| Stack | FastMCP 3.5 · Python 3.12+ · uv · React 19 · Vite · Tailwind |
| Start | .\web_sota\start.ps1 |
| Tests | uv run pytest |
| Lint | npx tsc --noEmit (web_sota) |
| Build NSIS | just build-native |
| CUA smoke | just cua-nsis-test |
Tool Pattern
All tools follow the portmanteau pattern — one function per domain with operation: Literal[...] discriminator. Tools auto-register via @mcp.tool() decorator on import.
| Tool | Module | Operations |
manage_containers | tools/containers.py | list, inspect, start, stop, restart, delete, create, logs, stats, exec, files, resources |
manage_pods | tools/pods.py | list, inspect, create, start, stop, delete |
manage_images | tools/images.py | list, inspect, pull, delete, build, search |
manage_system | tools/system.py | status, info, machine_list/init/start/stop, prune, generate_systemd, volume_, network_ |
manage_compose | tools/compose.py | up, down, ps, logs, build, config, debug |
manage_backup | tools/backup.py | save_image, load_image, export_container, import_container, save/load_volume, save_compose, list_backups |
manage_migrate | tools/migrate.py | docker_compose_to_podman, podman_compose_to_docker, scan_docker_artifacts, migrate_image, compatibility_check, dockerfile_to_containerfile, export_for_docker |
manage_agentic | tools/agentic.py | deploy_compose, cleanup, diagnose, rollback, health_sweep |
manage_health | tools/health.py | container_analyze, system_overview, recommendations |
Key Files
| File | Purpose |
src/server.py | FastAPI app + CORS + lifespan + web UI mount |
src/podmanmcp/mcp_instance.py | FastMCP singleton, tool registration trigger |
src/podmanmcp/tool_registration.py | Imports all tool modules (decorators fire on import) |
src/podmanmcp/podman_context.py | Podman CLI resolution (native/WSL2), run_podman_command(), check_podman_available decorator |
src/podman_mcp/web.py | All REST endpoints: dashboard, health, chat, diagnostics, compose REST bridge |
web_sota/src/App.tsx | React router (13 routes) |
web_sota/src/lib/api.ts | API_BASE constant |
web_sota/src/store/connection.ts | Zustand store for backend connection state |
Add a Tool
- Create
src/podmanmcp/tools/yourname.pywith@mcp.tool()+@check_podman_available - Add import to
src/podmanmcp/tool_registration.py - Import auto-registers at server start — no other changes needed
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

