Skip to main content

Configure MCP Server

Update your VSCode settings with:
"mcp": {
  "servers": {
    "container-use": {
      "type": "stdio",
      "command": "cu",
      "args": ["stdio"]
    }
  }
}

Add Copilot Instructions (Optional)

curl --create-dirs -o .github/copilot-instructions.md https://raw.githubusercontent.com/dagger/container-use/main/rules/agent.md

Video Tutorial

Watch the VSCode setup walkthrough

Verification

After setting up VSCode/GitHub Copilot, verify Container Use is working:
  1. Check MCP Connection: VSCode should recognize Container Use tools
  2. Test Environment Creation: Ask Copilot to create a new environment
  3. Verify Isolation: Multiple environments should work independently

Troubleshooting

  • Verify the cu command is in your PATH: which cu
  • Check MCP configuration syntax
  • Restart VSCode after configuration changes
  • Ensure Docker is running and accessible
  • Check file permissions for configuration files
  • Verify cu stdio command works: echo '{}' | cu stdio
  • Check your VSCode MCP server logs
  • Verify Container Use tools are enabled in settings

Next Steps

I