Skip to main content

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:

CapabilitySource
Open CASCADE / Mesa parity with the CI/CD pipeline.devcontainer/Dockerfile
Python deps + dev toolspostStartCommand → post-start.sh → uv sync
Documentation sitepostStartCommand → 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 settingscustomizations.vscode in devcontainer.json
Local Dagger CI/CD pipeline (just ci)Docker socket mount + docker-outside-of-docker feature
Docs site toolingNode 20 feature + just docs-install
MCP serversuv 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.

EditorDev ContainersTypical entryAI / agents
Visual Studio CodeNative (reference implementation)Clone repo → Dev Containers: Reopen in ContainerGitHub Copilot, Copilot coding agent, third-party MCP
GitHub Copilot in VS CodeSame as VS Code — Copilot is an extension, not a separate IDEInstall Copilot → reopen in containerInline chat, agent mode; import in-container MCP from .cursor/mcp.json
CursorNative (VS Code fork)Clone repo → Reopen in ContainerBuilt-in agent; MCP in container via committed .cursor/mcp.json
VSCodiumVia open-vsx Remote Containers extensionSame flow as VS CodeBring your own extensions (Copilot marketplace builds differ)
PositronVS Code–compatible remote containersReopen in ContainerPositron assistant + R/Python focus
WindsurfPartial — prefer attaching over SSH to a running container or Codespace rather than one-click local reopenRemote-SSH to cloud workspace, or community Codespaces bridgesCascade AI; verify container workflow on your platform
First-time container build

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.json connects 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.

ServiceRoleHow to use this template
GitHub CodespacesManaged VS Code in the cloudCode → Create codespace on main, or gh codespace create — reads .devcontainer/ automatically
vscode.devLightweight browser editorBest for quick edits; full dev container + viewer workflow usually needs Codespaces or a desktop client
GitHub Copilot coding agentAgent runs against the repo on GitHubWorks 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 environmentsImport repo; environment from devcontainer.json
CodeSandboxCloud dev environments (Podman-backed)Import GitHub repo; uses dev container spec with .codesandbox/ task config
DevPodClient for local, SSH, Kubernetes, or cloud backendsdevpod up <repo-url> — provisions from devcontainer.json on your chosen provider
Codespaces and Docker

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:

  1. VS Code — install GitHub Codespaces → sign in → open the codespace from the Remote Explorer.
  2. 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:

ToolNotes for this repo
Dev Container CLIdevcontainer up --workspace-folder . — headless bring-up; used by the CI/CD pipeline and other services
Visual Studio 2022C++ focused; Python CAD workflow is better suited to VS Code family clients
IntelliJ IDEAEarly dev container support via SSH/Docker — viable if your team standardizes on JetBrains
DevPodGood 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 surfaceWhere it runsMCP / viewer
Cursor agentIDE UI + dev containerMCP servers run in container; .cursor/mcp.json auto-wired
GitHub Copilot (VS Code / Codespaces)Extension in the attached container UIImport .cursor/mcp.json entries — launchers run in container (VS Code MCP docs)
GitHub Copilot coding agentGitHub-hosted against the repositoryUses repo + Actions; not tied to a local IDE
Claude / other MCP clientsAny client with MCP supportSame .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 extensionsVS Code or Cursor with local Docker or Podman. Quick start.
No local Docker installGitHub Codespaces on this template repo
Copilot as primary assistantVS Code or Codespaces with Copilot extension
Cursor agent + in-container MCPCursor + MCP servers
Same spec on a remote VMDevPod or Ona
Maximum extension marketplaceVS Code (Microsoft marketplace)

Portable checklist​

After switching IDEs or moving local → cloud:

  1. Reopen in Container (or rebuild the codespace) so lifecycle hooks run.
  2. Run just sync if dependencies look stale.
  3. Cursor / forks: confirm OCP CAD Viewer is installed (manual VSIX if missing).
  4. Run just test and just view to confirm geometry + viewer.
  5. Reload MCP in the IDE after a container rebuild (servers are already in the container).
  6. For Dagger locally: confirm Docker is reachable (just ci).