Skip to content

Commit dcca23c

Browse files
committed
add additional commentary + remove extra step
1 parent d8f8a4c commit dcca23c

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

docs/concepts/mcp.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,13 @@ Ensure that you have the [npm package manager](https://docs.npmjs.com/downloadin
2525
:::warning
2626
At this time, the Defang MCP Server can only be installed using `npx`. Other methods are not yet supported.
2727
:::
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:
3029

3130
```bash
3231
npx -y defang@latest mcp setup --client=<your-ide>
3332
```
3433

35-
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.
4035

4136
Once the MCP Server is running, you can access the Defang MCP tools directly through the AI agent chat in your IDE.
4237

@@ -46,37 +41,52 @@ That's it! Feel free to explore our [Example Prompts](#example-prompts) to get i
4641

4742
### Cursor
4843

44+
Setup command:
45+
4946
```bash
5047
npx -y defang@latest mcp setup --client=cursor
5148
```
5249

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+
5352
![Cursor](/img/mcp-concept/cursor.png)
5453

5554
### Windsurf
5655

56+
Setup command:
57+
5758
```bash
5859
npx -y defang@latest mcp setup --client=windsurf
5960
```
6061

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+
6164
![Windsurf](/img/mcp-concept/windsurf.png)
6265

6366
### VS Code / VS Code Insiders
6467

68+
Setup command:
6569

6670
```bash
6771
npx -y defang@latest mcp setup --client=vscode
6872
```
6973

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+
7076
![VS Code](/img/mcp-concept/vscode.png)
7177

7278
### Claude Desktop
7379

7480
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.
7581

82+
Setup command:
83+
7684
```bash
7785
npx -y defang@latest mcp setup --client=claude
7886
```
7987

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+
8090
![Claude Desktop](/img/mcp-concept/claude.png)
8191

8292
## MCP Tools
@@ -126,3 +136,5 @@ deploy this with defang /Users/yourname/Documents/project1
126136
```
127137
do I have a service called project1
128138
```
139+
140+
Feel free to try any of these prompts or create your own!

0 commit comments

Comments
 (0)