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
+23-12Lines changed: 23 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -20,54 +20,65 @@ This page is a guide to the Defang MCP Server detailing its installation, tools,
20
20
21
21
## Installation
22
22
23
-
First, make sure you have the [npm package manager](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) installed so that you can use `npx` commands.
23
+
Ensure that you have the [npm package manager](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) installed, as `npx` commands are required for setup.
24
+
25
+
:::warning
26
+
At this time, the Defang MCP Server can only be installed using `npx`. Other methods are not yet supported.
27
+
:::
24
28
25
29
Connect the Defang MCP Server with your IDE by running the following command in your terminal:
Replace `<your-ide>` with the name of your preferred IDE. See our list of [Supported IDEs](#supported-ides). After setup, you can start the MCP Server with the command:
35
+
Replace `<your-ide>` with the name of your [preferred IDE](#supported-ides). After setup, you can start the MCP Server with the command:
32
36
33
37
```bash
34
-
npx -y defang mcp serve
38
+
npx -y defang@latest mcp serve
35
39
```
36
40
37
41
Once the MCP Server is running, you can access the Defang MCP tools directly through the AI agent chat in your IDE.
38
42
39
-

40
-
41
43
That's it! Feel free to explore our [Example Prompts](#example-prompts) to get ideas on how to interact with the AI agent and make the most of the Defang MCP Server.
42
44
43
45
## Supported IDEs
44
46
45
47
### Cursor
46
48
47
49
```bash
48
-
npx -y defang mcp setup --client=cursor
50
+
npx -y defang@latest mcp setup --client=cursor
49
51
```
50
52
53
+

54
+
51
55
### Windsurf
52
56
53
57
```bash
54
-
npx -y defang mcp setup --client=windsurf
58
+
npx -y defang@latest mcp setup --client=windsurf
55
59
```
56
60
57
-
### VS Code
61
+

62
+
63
+
### VS Code / VS Code Insiders
64
+
58
65
59
66
```bash
60
-
npx -y defang mcp setup --client=vscode
67
+
npx -y defang@latest mcp setup --client=vscode
61
68
```
62
69
70
+

71
+
63
72
### Claude Desktop
64
73
65
-
(While this is not an IDE in the traditional sense, it can support MCP servers.)
74
+
While this is not an IDE in the traditional sense, it can support MCP servers. For a smoother experience, consider specifying a project name or directory when making chat prompts to this platform.
66
75
67
76
```bash
68
-
npx -y defang mcp setup --client=claude
77
+
npx -y defang@latest mcp setup --client=claude
69
78
```
70
79
80
+

81
+
71
82
## MCP Tools
72
83
73
84
Below are the tools available in the Defang MCP Server.
0 commit comments