Skip to content

Commit 19b5667

Browse files
Add more information to MCP server instructions (#1294)
* rough cut of more detailed tool instructions * typo Co-authored-by: Eric Liu <[email protected]> --------- Co-authored-by: Eric Liu <[email protected]>
1 parent 0761e8d commit 19b5667

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/cmd/cli/command/mcp.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,24 @@ var mcpServerCmd = &cobra.Command{
5151
// Create a new MCP server
5252
term.Debug("Creating MCP server")
5353
s := server.NewMCPServer(
54-
"Defang MCP Server",
54+
"Deploy with Defang",
5555
RootCmd.Version,
5656
server.WithResourceCapabilities(true, true), // Enable resource management and notifications
5757
server.WithPromptCapabilities(true), // Enable interactive prompts
5858
server.WithToolCapabilities(true), // Enable dynamic tool list updates
59-
server.WithInstructions("Use these tools to deploy projects to the cloud with Defang. These tools also help manage deployed projects, manage config variables, and estimate the monthly cost of deploying a given compose file."),
59+
server.WithInstructions(`
60+
Defang provides tools for deploying web applications to cloud providers (AWS, GCP, Digital Ocean) using a compose.yaml file.
61+
62+
There are a number of available tools to help with deployment, configuration, and manage applications deployed with Defang.
63+
64+
deploy - This tool deploys a web application to the cloud using the compose.yaml file in the application's working directory.
65+
destroy - This tool spins down and removes a deployed project from the cloud, cleaning up all associated resources.
66+
estimate - This tool estimates the cost of running a deployed application based on its resource usage and cloud provider pricing.
67+
services - This tool lists all running services for a deployed application, providing status and resource usage information
68+
list_configs - This tool lists all configuration variables for a deployed application, allowing you to view current settings.
69+
remove_config - This tool removes a configuration variable for a deployed application, allowing you to clean up unused settings.
70+
set_config - This tool sets or updates configuration variables for a deployed application, allowing you to manage environment variables and secrets.
71+
`),
6072
)
6173

6274
// Setup resources

0 commit comments

Comments
 (0)