Lets agents deploy Docker Compose projects to the cloud with the Defang platform without leaving the IDE.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add defang -- npx -y defang@latest mcp serve~/.codex/config.toml
[mcp_servers.defang]
command = "npx"
args = ["-y", "defang@latest", "mcp", "serve"]
# codex mcp add defang -- npx -y defang@latest mcp serve~/.cursor/mcp.json
{
"mcpServers": {
"defang": {
"command": "npx",
"args": [
"-y",
"defang@latest",
"mcp",
"serve"
]
}
}
}.vscode/mcp.json
{
"servers": {
"defang": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"defang@latest",
"mcp",
"serve"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"defang": {
"command": "npx",
"args": [
"-y",
"defang@latest",
"mcp",
"serve"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"defang": {
"command": "npx",
"args": [
"-y",
"defang@latest",
"mcp",
"serve"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"defang": {
"command": "npx",
"args": [
"-y",
"defang@latest",
"mcp",
"serve"
]
}
}
}