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/5.advanced/7.mcp.md
+29-25Lines changed: 29 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ description: "MCP is an open protocol that standardizes how applications provide
19
19
20
20
<br>
21
21
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.
23
23
::
24
24
25
25
## Introduction
@@ -65,48 +65,53 @@ mcp:
65
65
66
66
The DipDup MCP server can be connected to various MCP-compatible clients. Here's how to set up the most popular ones:
67
67
68
-
### Cursor
68
+
### VSCode (Copilot)
69
69
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.
71
71
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.
73
73
74
-
```json [~/.cursor/mcp.json]
74
+
Add the following definition to the `.vscode/mcp.json` file:
75
+
76
+
```json [mcp.json]
75
77
{
76
-
"mcpServers": {
77
-
"local": {
78
+
"inputs": [],
79
+
"servers": {
80
+
"dipdup-sse": {
81
+
"type": "sse",
78
82
"url": "http://127.0.0.1:9999/sse"
79
83
}
80
84
}
81
85
}
82
86
```
83
87
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:
85
89
86
-
### VSCode (Copilot)
90
+
```json [settings.json]
91
+
{
92
+
"chat.agent.enabled": true,
93
+
}
94
+
```
87
95
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.
89
97
90
-
See [Use agent mode in VS Code](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode) page.
98
+
### Cursor
91
99
92
-
Add the following to the `settings.json` file:
100
+
To configure MCP servers go to `File -> Preferences -> Cursor Settings -> MCP`.
93
101
94
-
```json [settings.json]
102
+
Add the following configuration to `~/.cursor/mcp.json`:
103
+
104
+
```json [~/.cursor/mcp.json]
95
105
{
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"
105
109
}
110
+
}
106
111
}
107
112
```
108
113
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.
110
115
111
116
### Claude Desktop
112
117
@@ -122,7 +127,7 @@ There is also [lightconetech/mcp-gateway](https://github.com/lightconetech/mcp-g
122
127
123
128
To make your server more useful, you can implement custom MCP primitives specific to your project.
124
129
125
-
### Custom Tools Example
130
+
### Custom tools example
126
131
127
132
Let's implement a tool that provides information about token holders:
128
133
@@ -233,7 +238,6 @@ logging:
233
238
- **Claude Desktop** doesn't support SSE-based MCP servers; gateway tools are required.
234
239
- **Cursor** fails to discover resources exposed by DipDup server. Tools work fine. (0.47.8 tested)
235
240
- **DipDup** doesn't support custom prompts at the moment.
236
-
- **DipDup** doesn't raise exceptions from MCP callbacks. We are working on this.
237
241
- **DipDup** `mcp run` command doesn't exit gracefully on SIGINT.
238
242
- **VSCode** doesn't support MCP resources and prompts yet.
0 commit comments