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

✍️ OpenClawRadar📅 Published: May 10, 2026🔗 Source
devcontainer-mcp: Give AI Agents Their Own Dev Environment, Not Yours
Ad

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 | bash

Windows (via WSL):

Invoke-RestMethod https://github.com/aniongithub/devcontainer-mcp/releases/latest/download/install.ps1 | Invoke-Expression

The 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.

Ad

Three Backends, One Interface

BackendBest forRequiresAuth needed?
devcontainer CLILocal Docker — fast, simple@devcontainers/cli + DockerNo
DevPodMulti-cloud: Docker, K8s, AWS, Azure, GCPDevPod CLIOptional
CodespacesGitHub-hosted cloud environmentsgh CLIYes

Auth Broker

The agent never sees raw tokens. Instead:

  • auth_status(provider) — list available accounts and scopes
  • auth_login(provider, scopes?) — initiate login, opens browser, handles device codes
  • auth_select(id) — switch the active account
  • auth_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..."

  1. auth_status("github") → picks account
  2. codespaces_create(auth: "github-you", repo: "your/repo")
  3. codespaces_ssh(auth: "github-you", codespace: "...", command: "cargo build")
  4. ✅ Built in the cloud. Your laptop did nothing.

📖 Read the full source: HN AI Agents

Ad

👀 See Also

GGUF Model Merging Script and Workflow for Qwen3.5-35B Variants
Tools

GGUF Model Merging Script and Workflow for Qwen3.5-35B Variants

A Reddit user shared a Python script for merging GGUF model files with minimal loss, specifically combining HauhauCS's Qwen3.5-35B-A3B-Uncensored model with samuelcardillo's Claude-4.6-Opus-Reasoning-Distilled version. The script runs on Google Colab Free Tier and includes quantization support via llama-quantize.

OpenClawRadar
Free Library of 789 Downloadable Skills for Claude Code
Tools

Free Library of 789 Downloadable Skills for Claude Code

clskills.in is a searchable hub offering 789 downloadable .md skill files for Claude Code across 60+ categories including enterprise platforms, programming languages, and DevOps tools. Each download includes a README and auto-install prompt.

OpenClawRadar
Agent Swarm: Multi-Agent Orchestration Framework for AI Coding Assistants
Tools

Agent Swarm: Multi-Agent Orchestration Framework for AI Coding Assistants

Agent Swarm is an open-source framework that enables teams of AI coding agents to coordinate autonomously. A lead agent receives tasks from Slack, GitHub, or email, breaks them down, and delegates to Docker-isolated worker agents.

OpenClawRadar
Lightpanda: Open-source headless browser for LLM agents with native MCP server and markdown output
Tools

Lightpanda: Open-source headless browser for LLM agents with native MCP server and markdown output

Lightpanda is an open-source headless browser designed for LLM-powered agents that uses 16x less memory than Chrome (215MB vs 2GB) and completes web crawling benchmarks in 5 seconds instead of 47 seconds. It provides native markdown output, semantic tree with interactivity detection, and a built-in MCP server.

OpenClawRadar