agentleFS
sandraschisandraschi/podman-mcp/AGENTS.md

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.

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
  1. Very specific:

    All tools follow the portmanteau pattern — one function per domain with operation: Literal[...] discriminator.

    line 17
  2. Very specific:

    Create src/podmanmcp/tools/yourname.py with @mcp.tool() + @check_podman_available

    line 46
  3. Very specific:

    Add import to src/podmanmcp/tool_registration.py

    line 47
  4. Distinctive:

    Import auto-registers at server start — no other changes needed

    line 48

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

podman-mcp — AGENTS.md

Quick Reference

PortsBackend 11113 · Frontend 11112 · MCP /mcp
StackFastMCP 3.5 · Python 3.12+ · uv · React 19 · Vite · Tailwind
Start.\web_sota\start.ps1
Testsuv run pytest
Lintnpx tsc --noEmit (web_sota)
Build NSISjust build-native
CUA smokejust 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.

ToolModuleOperations
manage_containerstools/containers.pylist, inspect, start, stop, restart, delete, create, logs, stats, exec, files, resources
manage_podstools/pods.pylist, inspect, create, start, stop, delete
manage_imagestools/images.pylist, inspect, pull, delete, build, search
manage_systemtools/system.pystatus, info, machine_list/init/start/stop, prune, generate_systemd, volume_, network_
manage_composetools/compose.pyup, down, ps, logs, build, config, debug
manage_backuptools/backup.pysave_image, load_image, export_container, import_container, save/load_volume, save_compose, list_backups
manage_migratetools/migrate.pydocker_compose_to_podman, podman_compose_to_docker, scan_docker_artifacts, migrate_image, compatibility_check, dockerfile_to_containerfile, export_for_docker
manage_agentictools/agentic.pydeploy_compose, cleanup, diagnose, rollback, health_sweep
manage_healthtools/health.pycontainer_analyze, system_overview, recommendations

Key Files

FilePurpose
src/server.pyFastAPI app + CORS + lifespan + web UI mount
src/podmanmcp/mcp_instance.pyFastMCP singleton, tool registration trigger
src/podmanmcp/tool_registration.pyImports all tool modules (decorators fire on import)
src/podmanmcp/podman_context.pyPodman CLI resolution (native/WSL2), run_podman_command(), check_podman_available decorator
src/podman_mcp/web.pyAll REST endpoints: dashboard, health, chat, diagnostics, compose REST bridge
web_sota/src/App.tsxReact router (13 routes)
web_sota/src/lib/api.tsAPI_BASE constant
web_sota/src/store/connection.tsZustand store for backend connection state

Add a Tool

  1. Create src/podmanmcp/tools/yourname.py with @mcp.tool() + @check_podman_available
  2. Add import to src/podmanmcp/tool_registration.py
  3. Import auto-registers at server start — no other changes needed

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.