You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/concepts/mcp.md
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,46 +11,54 @@ supported IDE.
11
11
12
12
For more detail on MCP architecture, visit the [official MCP documentation](https://modelcontextprotocol.io/introduction).
13
13
14
-
### Overview
14
+
### What does an MCP server do?
15
15
16
-
An MCP server enhances the functionality of AI agents by enabling them to use external resources and tools to create responses or perform tasks (e.g. integrate with Defang). In the case of Defang's MCP Server, you can use deploy and manage your services by asking an AI agent to do so in an IDE.
16
+
An MCP server integration allows an AI agent to access external tools and resources to perform tasks beyond its usual capabilities (e.g. deploying a service). With Defang's MCP Server, you can deploy and manage your services simply by asking an AI agent within your IDE.
17
17
18
18
## Installation
19
19
20
-
To run this server, you will need to install the [Defang CLI](/docs/getting-started). Then, you can run:
20
+
First, install the [Defang CLI](/docs/getting-started). Then, connect the MCP server with your IDE by running the following command in your terminal:
21
21
22
22
```bash
23
-
defang mcp --client=<your-ide>
23
+
defang mcp setup --client=<your-ide>
24
24
```
25
25
26
-
This sets up the MCP server to connect with your IDE.
26
+
Replace `<your-ide>` with the name of your preferred IDE. See our list of [Supported IDEs](#supported-ides).
27
+
28
+
After setup, you can start the MCP server with the command:
29
+
30
+
```bash
31
+
defang mcp serve
32
+
```
33
+
34
+
Once the server is running, you can access the Defang MCP tools directly through the AI agent chat in your IDE.
27
35
28
36
## Supported IDEs
29
37
30
38
### Cursor
31
39
32
-
```
33
-
defang mcp --client=cursor
40
+
```bash
41
+
defang mcp setup --client=cursor
34
42
```
35
43
36
44
### Windsurf
37
45
38
-
```
39
-
defang mcp --client=windsurf
46
+
```bash
47
+
defang mcp setup --client=windsurf
40
48
```
41
49
42
50
### VSCode / VSCode Insiders
43
51
44
-
```
45
-
defang mcp --client=vscode
52
+
```bash
53
+
defang mcp setup --client=vscode
46
54
```
47
55
48
56
### Claude Desktop
49
57
50
58
(While this is not an IDE in the traditional sense, it can support MCP servers.)
0 commit comments