# Connect CodeSandbox to Your AI Agent (Universal MCP)

> Use your AI to build software, run deployments, and track issues in CodeSandbox — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http codesandbox https://api.universalmcp.app/mcp/codesandbox`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/codesandbox` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "codesandbox", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: CodeSandbox | Category: DevOps & IT/Security (CodeSandbox) | Auth: Encrypted workspace API key
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Sandbox and build logs, Draft branches only, Workspace member access; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=codesandbox | Guide: https://universalmcp.app/mcp/codesandbox
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 0 Read, 3 Write)
Perform 3 actions across sandbox and build logs, draft branches only, and workspace member access. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Sandbox and build logs (1):** Sandbox and build logs (write)
- **Draft branches only (1):** Draft branches only (write)
- **Workspace member access (1):** Workspace member access (write)

## Example Prompts for CodeSandbox
- **Build failures:** "In CodeSandbox, list sandboxes that failed to boot in the last 12 hours and group them by template."
- **Lockfile diff:** "In CodeSandbox, summarize the lockfile changes that preceded the failing boots on the storefront template."
- **Slow boot check:** "In CodeSandbox, show which project images have the slowest boot times and whether they are cached."
- **Draft pinned branch:** "In CodeSandbox, draft a branch that pins the react-router version and hold it for review before merge."
