IDEs and workspaces
This template is built around a single .devcontainer/ directory. Any editor or service that implements the Development Container Specification reads the same devcontainer.json, runs the same lifecycle hooks, and lands in the same Open CASCADE environment as the CI/CD pipeline.
That is the portability story: clone once, reopen in a container anywhere — laptop, cloud VM, or a teammate's machine — and get build123d, pytest, ruff, the OCP CAD Viewer installer, and just recipes without hand-tuning a host OS.
What every compatible host gets
Regardless of which client attaches, the container provides:
| Capability | Source |
|---|---|
| Open CASCADE / Mesa parity with the CI/CD pipeline | .devcontainer/Dockerfile |
| Python deps + dev tools | postStartCommand → post-start.sh → uv sync |
| Documentation site | postStartCommand → post-start.sh → start-docs.sh (port 3000, auto-forwarded) |
| OCP CAD Viewer VSIX download/install | .devcontainer/install-ocp-cad-viewer.sh |
| Ruff format-on-save settings | customizations.vscode in devcontainer.json |
Local Dagger CI/CD pipeline (just ci) | Docker socket mount + docker-outside-of-docker feature |
| Docs site tooling | Node 20 feature + just docs-install |
| MCP servers | uv sync + .cursor/mcp.json launchers — run inside the container |
Editor UI for AI agents and MCP connection varies by client, but model code, tests, exports, and MCP server binaries all live in the container.
Desktop editors (VS Code family)
These clients implement the Dev Containers extension workflow: open the repo → Reopen in Container (or equivalent) → attach to the built image.
| Editor | Dev Containers | Typical entry | AI / agents |
|---|---|---|---|
| Visual Studio Code | Native (reference implementation) | Clone repo → Dev Containers: Reopen in Container | GitHub Copilot, Copilot coding agent, third-party MCP |
| GitHub Copilot in VS Code | Same as VS Code — Copilot is an extension, not a separate IDE | Install Copilot → reopen in container | Inline chat, agent mode; import in-container MCP from .cursor/mcp.json |
| Cursor | Native (VS Code fork) | Clone repo → Reopen in Container | Built-in agent; MCP in container via committed .cursor/mcp.json |
| VSCodium | Via open-vsx Remote Containers extension | Same flow as VS Code | Bring your own extensions (Copilot marketplace builds differ) |
| Positron | VS Code–compatible remote containers | Reopen in Container | Positron assistant + R/Python focus |
| Windsurf | Partial — prefer attaching over SSH to a running container or Codespace rather than one-click local reopen | Remote-SSH to cloud workspace, or community Codespaces bridges | Cascade AI; verify container workflow on your platform |
The initial image build can take several minutes (Open CASCADE system packages, uv sync, OCP VSIX download). Later starts are much faster.
Cursor-specific notes
- MCP — servers run in the dev container;
.cursor/mcp.jsonconnects automatically. Reload MCP after container rebuilds (quick start). - OCP CAD Viewer — Cursor (and some other VS Code forks) usually cannot rely on automatic extension install. After the container builds, install the patched workspace VSIX by hand: F1 →
Extensions: Install from VSIX...→/workspaces/<your-repo-folder>/ocp-cad-viewer-3.4.0.vsix. The devcontainer downloads and patches that file for a Cursor extension-host ESM issue; VS Code Marketplace installs are unaffected (manual VSIX install, ESM patch). If Cursor crashes on activation, it may uninstall the extension — reinstall from the same patched VSIX.
Other VS Code forks (Windsurf, VSCodium, …)
Marketplace and devcontainer extension wiring differ from stock VS Code. Treat OCP CAD Viewer like Cursor: use the patched ocp-cad-viewer-3.4.0.vsix at the workspace root via Install from VSIX (OCP viewer).
Cloud workspaces
Cloud hosts run the same devcontainer.json on a remote VM. You connect from a browser or a desktop client.
| Service | Role | How to use this template |
|---|---|---|
| GitHub Codespaces | Managed VS Code in the cloud | Code → Create codespace on main, or gh codespace create — reads .devcontainer/ automatically |
| vscode.dev | Lightweight browser editor | Best for quick edits; full dev container + viewer workflow usually needs Codespaces or a desktop client |
| GitHub Copilot coding agent | Agent runs against the repo on GitHub | Works with the same repo layout; environment parity comes from Actions / containerized CI/CD pipeline rather than your local UI |
| Ona (formerly Gitpod) | Spec-compliant cloud environments | Import repo; environment from devcontainer.json |
| CodeSandbox | Cloud dev environments (Podman-backed) | Import GitHub repo; uses dev container spec with .codesandbox/ task config |
| DevPod | Client for local, SSH, Kubernetes, or cloud backends | devpod up <repo-url> — provisions from devcontainer.json on your chosen provider |
GitHub Codespaces allows the Docker socket bind mount used in this template, so just ci (Dagger) can work in a codespace when the host provides Docker. Other cloud hosts may restrict socket mounts — run the CI/CD pipeline via GitHub Actions if local Dagger is unavailable.
Connecting desktop VS Code or Cursor to Codespaces
You are not limited to the browser:
- VS Code — install GitHub Codespaces → sign in → open the codespace from the Remote Explorer.
- Cursor — use Remote-SSH to the codespace, or a community extension such as Cursor Codespaces for GitHub CLI–driven connect.
The container contents are identical whether you use the web editor or a desktop client; only the UI shell changes.
Other spec-compatible tools
The containers.dev supporting tools list grows over time. These also consume devcontainer.json:
| Tool | Notes for this repo |
|---|---|
| Dev Container CLI | devcontainer up --workspace-folder . — headless bring-up; used by the CI/CD pipeline and other services |
| Visual Studio 2022 | C++ focused; Python CAD workflow is better suited to VS Code family clients |
| IntelliJ IDEA | Early dev container support via SSH/Docker — viable if your team standardizes on JetBrains |
| DevPod | Good when you want the same spec on a bare VM or Kubernetes without installing Docker Desktop locally |
AI agents across workspaces
AI assistance is a layer on top of the dev container, not a replacement for it:
| Agent surface | Where it runs | MCP / viewer |
|---|---|---|
| Cursor agent | IDE UI + dev container | MCP servers run in container; .cursor/mcp.json auto-wired |
| GitHub Copilot (VS Code / Codespaces) | Extension in the attached container UI | Import .cursor/mcp.json entries — launchers run in container (VS Code MCP docs) |
| GitHub Copilot coding agent | GitHub-hosted against the repository | Uses repo + Actions; not tied to a local IDE |
| Claude / other MCP clients | Any client with MCP support | Same .cursor/run-*.sh launchers while attached to the dev container |
Source of truth remains Python under cad/ — agents and MCP only help edit, execute, and verify geometry (stack architecture).
Choosing a setup
| You want… | Start here |
|---|---|
| Lowest friction, full extensions | VS Code or Cursor with local Docker or Podman. Quick start. |
| No local Docker install | GitHub Codespaces on this template repo |
| Copilot as primary assistant | VS Code or Codespaces with Copilot extension |
| Cursor agent + in-container MCP | Cursor + MCP servers |
| Same spec on a remote VM | DevPod or Ona |
| Maximum extension marketplace | VS Code (Microsoft marketplace) |
Portable checklist
After switching IDEs or moving local → cloud:
- Reopen in Container (or rebuild the codespace) so lifecycle hooks run.
- Run
just syncif dependencies look stale. - Cursor / forks: confirm OCP CAD Viewer is installed (manual VSIX if missing).
- Run
just testandjust viewto confirm geometry + viewer. - Reload MCP in the IDE after a container rebuild (servers are already in the container).
- For Dagger locally: confirm Docker is reachable (
just ci).
Related docs
- Quick start — first run in a container
- Dev container — lifecycle hooks, Docker socket, editor settings
- OCP CAD Viewer — viewer install and IDE quirks
- MCP servers — agent tools alongside the IDE