Sign inSign up

defangio/defang-cli

By defangio

Updated 6 days ago

Official builds of the Defang CLI, including MCP server.

Image
Developer tools
1

7.9K

defangio/defang-cli repository overview

Defang MCP Server

The Defang Model Context Protocol (MCP) Server is tailored for developers who work primarily within integrated development environments (IDEs). It enables seamless cloud deployment from supported editors such as Cursor, Windsurf, VS Code, VS Code Insiders, and Claude, delivering a fully integrated experience without leaving your development environment.


Characteristics

AttributeDetails
Image SourceOfficial Image
Docker Imagedefangio/defang-cli
AuthorDefang
RepositoryGitHub - Defang
DockerfileView Dockerfile
Docker Image built byDefang Software Labs
LicenseMIT License

Available Tools

Tools provided by this Server
ToolShort Description
deployDeploy a project to Defang
destroyDestroy a Defang project
estimateEstimate the cost of a Defang project
list_configsList all configs for a Defang project
servicesList all Defang services
remove_configRemove a config for a Defang project
loginLogin to Defang
set_configSet a config for a Defang project

Tools Details

Tool: deploy

Deploy a project to Defang

ParametersTypeDescription
working_directorystringThe path to the working directory
compose_file_pathsarrayThe paths to the compose files
project_namestringThe name of the project

Tool: destroy

Destroy a Defang project

ParametersTypeDescription
working_directorystringThe path to the working directory
compose_file_pathsarrayThe paths to the compose files
project_namestringThe name of the project

Tool: estimate

Estimate the cost of a Defang project deployed to a cloud provider

ParametersTypeDescription
working_directorystringThe path to the working directory
providerstringThe cloud provider to estimate costs for the supported options are AWS or GCP.
deployment_modestringThe deployment mode options for the estimate are AFFORDABLE, BALANCED or HIGH AVAILABILITY.

Tool: list_configs

List all configs for a Defang project

ParametersTypeDescription
working_directorystringThe path to the working directory

Tool: login

Login to Defang

This tool has no parameters.

ParametersTypeDescription

Tool: remove_config

Remove a config for a Defang project

ParametersTypeDescription
working_directorystringThe path to the working directory
namestringThe name of the config variable

Tool: services

List all Defang services

ParametersTypeDescription
working_directorystringThe path to the working directory
compose_file_pathsarrayThe paths to the compose files
project_namestringThe name of the project

Tool: set_config

Set a config for a Defang project

ParametersTypeDescription
working_directorystringThe path to the working directory
namestringThe name of the config variable
valuestringThe value of the config variable

Use this MCP Server

{
  "mcpServers": {
    "defang": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-p",
        "47071:47071",
        "defangio/defang-cli",
        "mcp",
        "serve",
        "--auth-server",
        "47071"
      ]
    }
  }
}

Why is it safer to run MCP Servers with Docker?⁠

Tag summary

Content type

Image

Digest

sha256:5c5799c74

Size

30.4 MB

Last updated

6 days ago

docker pull defangio/defang-cli