devcontainer-mcp: Give AI Agents Their Own Dev Environment, Not Yours

devcontainer-mcp is an MCP server that lets AI coding agents (Copilot, Claude, Cursor, any MCP client) create, manage, and work inside dev containers across three backends: local Docker, DevPod, and GitHub Codespaces. The agent builds, tests, and ships code in an isolated container — your laptop stays clean.
The Problem
When AI agents write code, they run it on your host machine, causing:
- Host contamination — agents install packages, modify PATH, leave build artifacts
- "Works on my machine" — agents assume your local toolchain matches production
- No isolation — one project's dependencies break another
- Security risk — agents run arbitrary commands with your user privileges
- Hardware constraints — you're limited to your local machine's resources
The Solution
The devcontainer spec already defines reproducible, container-based dev environments. devcontainer-mcp exposes 45 MCP tools (across auth, devcontainer CLI, DevPod, and Codespaces backends) that let any AI agent:
- Spin up a dev container from any repo — locally, on a cloud VM, or in Codespaces
- Run commands inside the container — builds, tests, linting, anything
- Manage the lifecycle — stop, restart, delete when done
- Authenticate against cloud providers (GitHub, AWS, Azure, GCP) without ever seeing a raw token
Quick Install
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/aniongithub/devcontainer-mcp/main/install.sh | bashWindows (via WSL):
Invoke-RestMethod https://github.com/aniongithub/devcontainer-mcp/releases/latest/download/install.ps1 | Invoke-ExpressionThe binary runs inside WSL; MCP clients on Windows launch it via wsl ~/.local/bin/devcontainer-mcp serve. WSL 2 is required.
Backend CLIs (devpod, devcontainer, gh) are detected at runtime — if one is missing, the MCP server returns a helpful error with install instructions. Binaries available for linux-x64, linux-arm64, darwin-x64, darwin-arm64.
Three Backends, One Interface
| Backend | Best for | Requires | Auth needed? |
|---|---|---|---|
| devcontainer CLI | Local Docker — fast, simple | @devcontainers/cli + Docker | No |
| DevPod | Multi-cloud: Docker, K8s, AWS, Azure, GCP | DevPod CLI | Optional |
| Codespaces | GitHub-hosted cloud environments | gh CLI | Yes |
Auth Broker
The agent never sees raw tokens. Instead:
auth_status(provider)— list available accounts and scopesauth_login(provider, scopes?)— initiate login, opens browser, handles device codesauth_select(id)— switch the active accountauth_logout(id)— revoke credentials
Supported providers: GitHub, AWS, Azure, GCP, Kubernetes. Codespaces tools require an auth handle (e.g. github-aniongithub); the MCP server resolves it to the real token on each call via the CLI's native keyring.
Example Workflow
Agent: "Let me build this project..."
auth_status("github")→ picks accountcodespaces_create(auth: "github-you", repo: "your/repo")codespaces_ssh(auth: "github-you", codespace: "...", command: "cargo build")- ✅ Built in the cloud. Your laptop did nothing.
📖 Read the full source: HN AI Agents
👀 See Also

Tracked 5 Biggest Claude Code SKILL.md Collections on GitHub — Sortable Table with Auto-Refresh
Built a sortable table of the top 5 skill-collection repos (totaling 125k stars) with star counts and skill counts, auto-refreshed by a /workflows:skill-collections command.

Local AI Agent Achieves Sub-Second STT and TTS Latency with Open-Source Servers
A developer achieved ~0.2s STT latency using Whisper large-v3-turbo with hybrid thread-managed GPU architecture and ~250ms TTS latency with Coqui-TTS optimized for low-latency synthesis. Both implementations are fully self-hosted and open-sourced.

Graph Compose: Hosted Temporal Workflows with Visual Builder and AI
Graph Compose is a hosted platform for orchestrating API workflows on Temporal, letting you define workflows as JSON graphs with three building methods: a React Flow visual builder, a TypeScript SDK, and an AI assistant that converts plain English to graphs.

NarrateAI MCP Server Demo Shows Claude Adding Voiceover to Videos
A live demo shows Claude using the NarrateAI MCP server to automatically narrate videos from a URL, handling async polling and generating narration by analyzing silent screen recordings.