Skip to content

Commit 4bb8faa

Browse files
Update vscode config examples (#1243)
1 parent 210d297 commit 4bb8faa

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

docs/5.advanced/7.mcp.md

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ description: "MCP is an open protocol that standardizes how applications provide
1919

2020
<br>
2121

22-
MCP is a pretty recent technology, so many tools might not work as expected. Consult the [Known issues](#known-issues) section for more information and open the ticket in [GitHub issues](https://github.com/dipdup-io/dipdup/issues) if you encounter any problems.
22+
MCP is a relatively recent technology, so many tools might not work as expected. Consult the [Known issues](#known-issues) section for more information and open the ticket in [GitHub issues](https://github.com/dipdup-io/dipdup/issues) if you encounter any problems.
2323
::
2424

2525
## Introduction
@@ -65,48 +65,53 @@ mcp:
6565
6666
The DipDup MCP server can be connected to various MCP-compatible clients. Here's how to set up the most popular ones:
6767
68-
### Cursor
68+
### VSCode (Copilot)
6969
70-
To configure MCP servers go to `File -> Preferences -> Cursor Settings -> MCP`.
70+
Support for MCP is available since [1.99 release](https://code.visualstudio.com/updates/v1_99) (March 2025) of VSCode.
7171
72-
Add the following configuration to `~/.cursor/mcp.json`:
72+
See [Use agent mode in VS Code](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode) page.
7373
74-
```json [~/.cursor/mcp.json]
74+
Add the following definition to the `.vscode/mcp.json` file:
75+
76+
```json [mcp.json]
7577
{
76-
"mcpServers": {
77-
"local": {
78+
"inputs": [],
79+
"servers": {
80+
"dipdup-sse": {
81+
"type": "sse",
7882
"url": "http://127.0.0.1:9999/sse"
7983
}
8084
}
8185
}
8286
```
8387

84-
If your server is running, but Cursor doesn't connect, try "Reload Window" in the Command Palette.
88+
Then add the following to the `.vscode/settings.json` file:
8589

86-
### VSCode (Copilot)
90+
```json [settings.json]
91+
{
92+
"chat.agent.enabled": true,
93+
}
94+
```
8795

88-
Support for MCP is available since [1.99 release](https://code.visualstudio.com/updates/v1_99) (March 2025) of VSCode.
96+
Open the Chat view and switch to the "Agent" mode. You should see the available tools clicking the 🛠️ icon.
8997

90-
See [Use agent mode in VS Code](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode) page.
98+
### Cursor
9199

92-
Add the following to the `settings.json` file:
100+
To configure MCP servers go to `File -> Preferences -> Cursor Settings -> MCP`.
93101

94-
```json [settings.json]
102+
Add the following configuration to `~/.cursor/mcp.json`:
103+
104+
```json [~/.cursor/mcp.json]
95105
{
96-
"chat.agent.enabled": true,
97-
"mcp": {
98-
"inputs": [],
99-
"servers": {
100-
"dipdup-sse": {
101-
"type": "sse",
102-
"url": "http://127.0.0.1:9999/sse"
103-
}
104-
}
106+
"mcpServers": {
107+
"local": {
108+
"url": "http://127.0.0.1:9999/sse"
105109
}
110+
}
106111
}
107112
```
108113

109-
Open the Chat view and switch to the "Agent" mode. You should see the available tools clicking the 🛠️ icon.
114+
If your server is running, but Cursor doesn't connect, try "Reload Window" in the Command Palette.
110115

111116
### Claude Desktop
112117

@@ -122,7 +127,7 @@ There is also [lightconetech/mcp-gateway](https://github.com/lightconetech/mcp-g
122127

123128
To make your server more useful, you can implement custom MCP primitives specific to your project.
124129

125-
### Custom Tools Example
130+
### Custom tools example
126131

127132
Let's implement a tool that provides information about token holders:
128133

@@ -233,7 +238,6 @@ logging:
233238
- **Claude Desktop** doesn't support SSE-based MCP servers; gateway tools are required.
234239
- **Cursor** fails to discover resources exposed by DipDup server. Tools work fine. (0.47.8 tested)
235240
- **DipDup** doesn't support custom prompts at the moment.
236-
- **DipDup** doesn't raise exceptions from MCP callbacks. We are working on this.
237241
- **DipDup** `mcp run` command doesn't exit gracefully on SIGINT.
238242
- **VSCode** doesn't support MCP resources and prompts yet.
239243

0 commit comments

Comments
 (0)