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
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,13 @@ Ensure that you have the [npm package manager](https://docs.npmjs.com/downloadin
25
25
:::warning
26
26
At this time, the Defang MCP Server can only be installed using `npx`. Other methods are not yet supported.
27
27
:::
28
-
29
-
Connect the Defang MCP Server with your IDE by running the following command in your terminal:
28
+
Run the setup command in your terminal for your IDE of choice from the [Supported IDEs](#supported-ides) section. This will connect the Defang MCP Server to your IDE. The general format of the command is as follows:
Replace `<your-ide>` with the name of your [preferred IDE](#supported-ides). After setup, you can start the MCP Server with the command:
36
-
37
-
```bash
38
-
npx -y defang@latest mcp serve
39
-
```
34
+
Once the command completes, you may need to restart your IDE for the changes to take effect.
40
35
41
36
Once the MCP Server is running, you can access the Defang MCP tools directly through the AI agent chat in your IDE.
42
37
@@ -46,37 +41,52 @@ That's it! Feel free to explore our [Example Prompts](#example-prompts) to get i
46
41
47
42
### Cursor
48
43
44
+
Setup command:
45
+
49
46
```bash
50
47
npx -y defang@latest mcp setup --client=cursor
51
48
```
52
49
50
+
Once setup is complete, you can interact with the AI coding agent using Defang-related actions like `check defang services` or [other prompts](#example-prompts). Here's an example of what it could look like:
51
+
53
52

54
53
55
54
### Windsurf
56
55
56
+
Setup command:
57
+
57
58
```bash
58
59
npx -y defang@latest mcp setup --client=windsurf
59
60
```
60
61
62
+
Once setup is complete, you can interact with the AI coding agent using Defang-related actions like `check defang services` or [other prompts](#example-prompts). Here's an example of what it could look like:
63
+
61
64

62
65
63
66
### VS Code / VS Code Insiders
64
67
68
+
Setup command:
65
69
66
70
```bash
67
71
npx -y defang@latest mcp setup --client=vscode
68
72
```
69
73
74
+
Once setup is complete, you can interact with the AI coding agent using Defang-related actions like `check defang services` or [other prompts](#example-prompts). Here's an example of what it could look like:
75
+
70
76

71
77
72
78
### Claude Desktop
73
79
74
80
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.
75
81
82
+
Setup command:
83
+
76
84
```bash
77
85
npx -y defang@latest mcp setup --client=claude
78
86
```
79
87
88
+
Once setup is complete, you can interact with the AI coding agent using Defang-related actions like `check defang services` or [other prompts](#example-prompts). Here's an example of what it could look like:
89
+
80
90

81
91
82
92
## MCP Tools
@@ -126,3 +136,5 @@ deploy this with defang /Users/yourname/Documents/project1
126
136
```
127
137
do I have a service called project1
128
138
```
139
+
140
+
Feel free to try any of these prompts or create your own!
0 commit comments