fabro/lib/crates/arc-workflows/tests
Bryan Helmkamp d426eebf1a Add sandbox MCP transport for running MCP servers inside Daytona sandboxes
Adds McpTransport::Sandbox variant that starts an MCP server inside the
sandbox, waits for it to listen, gets a Daytona preview URL, and rewrites
to HTTP transport for the MCP client connection.

Key changes:
- Sandbox trait: add get_preview_url(port) for authenticated port access
- DaytonaSandbox: implement get_preview_url via Daytona SDK preview links
- McpTransport::Sandbox: new variant with command, port, env fields
- Session: resolve_sandbox_mcp_servers() starts servers and rewrites to HTTP
- Integration test: end-to-end Playwright MCP in Daytona - navigates to
  example.com and verifies "Example Domain" in accessibility snapshot

Config example:
  [mcp_servers.playwright]
  type = "sandbox"
  command = ["npx", "@playwright/mcp@latest", "--port", "3100", "--headless"]
  port = 3100

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 02:09:04 -04:00
..
attractor_compat.rs Fix relative paths broken by crates/ → lib/crates/ move 2026-03-09 13:20:47 -04:00
cp_integration.rs Move crates/ to lib/crates/ and update all references 2026-03-09 13:12:35 -04:00
daytona_integration.rs Add sandbox MCP transport for running MCP servers inside Daytona sandboxes 2026-03-10 02:09:04 -04:00
integration.rs Add Draft PR Mode Support (#13) 2026-03-09 15:20:45 -04:00