| layout | default |
|---|---|
| title | Chapter 5: MCP Agent Integration and Tooling |
| nav_order | 5 |
| parent | Daytona Tutorial |
Welcome to Chapter 5: MCP Agent Integration and Tooling. In this part of Daytona Tutorial: Secure Sandbox Infrastructure for AI-Generated Code, you will build an intuitive mental model first, then move into concrete implementation details and practical production tradeoffs.
This chapter focuses on integrating Daytona with coding-agent hosts through MCP.
- initialize Daytona MCP integration for Claude/Cursor/Windsurf
- understand available MCP tools for sandbox, file, git, and command operations
- wire custom MCP config into non-default agent hosts
- troubleshoot common auth and connectivity failures
Use CLI setup (daytona mcp init ...) for standard hosts. For custom hosts, generate JSON config via daytona mcp config, inject required env vars, and validate tool calls with a minimal create/execute/destroy flow.
You can now connect Daytona capabilities directly into MCP-compatible coding-agent environments.
Next: Chapter 6: Configuration, API, and Deployment Models
flowchart TD
A[AI Coding Agent] -->|MCP protocol| B[Daytona MCP Server]
B --> C[daytona CLI subprocess]
C --> D[Daytona API]
D --> E[Sandbox operations]
E -->|create/exec/file ops| F[Isolated sandbox]
F --> G[Results back to agent]