podman-proxy MCP server
Manages Caddy site files under the managed sites directory and validates/reloads Caddy via podman exec, creating, updating, and removing reverse-proxy routes for hostnames under the configured suffix.
Lists Podman containers with their networks and published ports, and automatically connects the Caddy container to the target container's Podman network so upstream services are reachable.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
podman-proxy MCP server
Name-based routing to rootless podman services for this lab machine:
https://<name>.home.arpa resolves via /etc/hosts to 127.0.0.1, where the
Caddy container (quadlet caddy.container, ports 80/443) routes by Host
header to the podman service. An MCP server lets this harness create, update and
remove both halves of every route.
browser / curl ── searxng.home.arpa ──> /etc/hosts ──> 127.0.0.1:443
│ caddy (rootless podman, web_net + shared nets)
├─ https://app1.home.arpa -> app1-container:8080
├─ https://searxng.home.arpa -> searxng:8080
└─ (hand-written blocks stay in the main Caddyfile)Standalone repo since 2026-11-30 — previously mcp/podman-proxy/ inside
agentic-workflow-tool
(issue #45). Same code, same behaviour; the host-side MCP registration is
unchanged.
Layout
podman-proxy/
├── src/index.ts zero-dependency MCP stdio server (bun)
├── src/lib/config.ts paths/env (SCI_PROXY_* overrides)
├── src/lib/caddy.ts sites/*.caddy management + validate/reload via podman exec
├── src/lib/hosts.ts sudo helper invocation
├── src/lib/podman.ts podman ps/inspect + network connect
├── src/lib/validate.ts hostname/IP/target validation
├── src/lib/journal.ts append-only audit log (~/.local/state/sci-proxy/journal.jsonl)
├── scripts/hosts-helper.py root-owned /etc/hosts helper (installed by --sudo)
├── scripts/install.sh phase 1 user setup | --sudo privileged phase | --uninstall
├── tests/ bun tests — hermetic, no podman/root/network needed
└── .github/workflows/ CI: typecheck + tests + helper selftestConfig roots (all overridable via SCI_PROXY_* env vars):
What | Default |
Caddy config tree |
|
MCP-managed site files |
|
Hostname suffix |
|
Hosts helper |
|
Journal |
|
Related MCP server: homelab-mcp
Install
git clone <this-repo> ~/Projects/agentics/podman-proxy
cd ~/Projects/agentics/podman-proxy
# phase 1 — no root: config layout, caddy image, quadlet service up, smoke test
bash scripts/install.sh
# phase 2 — one-time, prompts for your password
bash scripts/install.sh --sudo
# then confirm the global MCP registration (opencode hot-reloads it)
opencode mcp list # → podman-proxy: connected--sudo installs the helper + suffix allowlist at /usr/local/lib/sci-proxy/,
adds /etc/sudoers.d/sci-proxy-hosts granting NOPASSWD only for that exact
script (validated with visudo -c), and runs the helper selftest.
MCP registration
The server is registered globally — in ~/.config/opencode/opencode.json, not in
any project — so every session on this machine gets the tools:
"podman-proxy": {
"type": "local",
"command": ["bun", "run", "/home/wgayton/Projects/agentics/podman-proxy/src/index.ts"],
"cwd": "/home/wgayton/Projects/agentics/podman-proxy",
"protocol": "legacy" // classic stdio initialize handshake
}An optional per-project override can be added to any project's own
opencode.json; the global entry is enough for the lab machine.
Tools
Tool | Purpose |
| caddy state, managed sites, hosts entries, helper availability |
| managed site entries |
| site file + hosts entry + reload. |
| change upstream/TLS of an existing site |
| remove site (+ hosts entry unless |
| validate + reload after manual edits |
| direct management of the hosts block |
| podman containers with networks + published ports (pick targets) |
All mutators take dry_run: true. Every mutation is journaled.
Upstream resolution: container targets require caddy to share a podman network
with the target — the server runs podman network connect automatically when
needed. Pod targets resolve under the pod's DNS name (containers in a pod
share the netns; membership lives on the infra container), so both
<container>:<port> and <pod>:<port> work — pods need the explicit port.
Loopback host:port targets are rewritten to host.containers.internal (or the
network gateway) as seen from the caddy container — note this only reaches
services published on 0.0.0.0, not loopback-only (127.0.0.1) publishes;
attach those to a shared network instead.
Trailing-dot FQDNs are accepted (demo.home.arpa. == demo.home.arpa).
Development
bun install # dev deps only: typescript + bun types
bun run verify # typecheck + tests + hosts-helper selftest + install.sh syntaxTests are hermetic: tests/fixtures/env.ts redirects every path into a temp
directory, so nothing touches ~/containers/caddy, /etc/hosts or the real
journal, and no podman/root/network access is required. CI runs the same suite
(.github/workflows/test.yml). See AGENTS.md for the rules that
keep this server trustworthy.
Security model
The MCP server and caddy run unprivileged (your user). Caddy binds 80/443 because
net.ipv4.ip_unprivileged_port_startis 53 on this host./etc/hostsis edited only by the root-owned helper. It validates strictly (suffix allowlist, RFC-1123 labels,ipaddressIP parsing), refuses names that already exist anywhere in the file, edits only inside the# BEGIN/END sci-proxy-mcpmarker block, takes an exclusiveflock, writes atomically (temp +os.replace, ownership/mode preserved) and keeps a backup at/etc/hosts.sci-proxy-mcp.bak. It honors no environment variables.Trust implication (accepted by design): any process running as your user can add/remove entries under
home.arpavia the helper without a password. It cannot touch unrelated hosts entries or other root files.The MCP can only manage names under the configured suffix; hand-written Caddyfile blocks outside
sites/are never modified.
Troubleshooting
hosts helper requires one-time setup→ runbash scripts/install.sh --sudo.caddy container "caddy" is not running→systemctl --user start caddy; logs:journalctl --user -u caddy.service.caddy validate failed→ the site file is bad; the server rolls back and the error includes caddy's message. Fix and retry, orproxy_remove.TLS warnings in the browser /
curlwithout-k→ caddy uses its internal CA for*.home.arpa. Export and trust the root once:podman cp caddy:/data/caddy/pki/authorities/local/root.crt ~/containers/caddy/rootCA.crt sudo cp ~/containers/caddy/rootCA.crt /etc/pki/ca-trust/source/anchors/sci-proxy-root.crt sudo update-ca-trust # system store: curl, OpenSSL, browsersFor node/bun-based clients, appending works without system changes:
export NODE_EXTRA_CA_CERTS="$HOME/containers/caddy/rootCA.crt".Everything the MCP did:
~/.local/state/sci-proxy/journal.jsonl.
Uninstall
bash scripts/install.sh --uninstall # helper + sudoersThe caddy service is shared infrastructure and is left running; remove MCP-managed
routes with proxy_remove before tearing it down if desired.
License
MIT (© 2026 William Gayton) — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read devices, users, keys, ACLs and DNS for a tailnet; manage devices, routes and auth keys.
Manage hosts, redirects, SSL, and traffic analytics from Claude and other AI assistants.
Create, run and manage Homemade dev VMs and projects from your AI agent.
Manage Sprites: sandboxed compute environments with exec, services, and checkpoints.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides tools for managing Docker containers, Compose stacks, and system resources on Hetzner servers via SSH. It also includes capabilities for reloading Caddy configurations and managing Cloudflare DNS records.-
- AlicenseNot gradedqualityCmaintenanceEnables management of homelab infrastructure, including Docker/Podman containers, Ollama AI models, Pi-hole DNS, Unifi networks, and Ansible inventory, with built-in security checks and automated pre-push validation.1MIT
- AlicenseBqualityBmaintenanceEnables container, image, pod, network, volume, and system management via Podman REST API. Supports rootful and rootless Podman operations.30AGPL 3.0
- AlicenseBqualityCmaintenanceEnables users to inspect and manage domains, DNS records (including A, AAAA, CNAME, MX, TXT and more), HTTP forwards, invoices and dynamic DNS through a hosting provider's API, with previewed change plans, conflict detection, backups and independent readback before writes. Offers DNS shortcuts such as website setup, verification records, bulk IP replacement, zone import/export and backup restore, exposed via local stdio or authenticated Streamable HTTP for a central gateway.27MIT