File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
src/extension/ui/src/mcp-clients Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,12 @@ import { MCPClient } from ".";
4
4
import { DOCKER_MCP_COMMAND } from "../Constants" ;
5
5
6
6
const DOCKER_MCP_CONFIG = {
7
- "command" : DOCKER_MCP_COMMAND . split ( ' ' ) [ 0 ] ,
8
- "args" : DOCKER_MCP_COMMAND . split ( ' ' ) . slice ( 1 ) ,
7
+ mcpServers : {
8
+ MCP_DOCKER : {
9
+ "command" : DOCKER_MCP_COMMAND . split ( ' ' ) [ 0 ] ,
10
+ "args" : DOCKER_MCP_COMMAND . split ( ' ' ) . slice ( 1 ) ,
11
+ }
12
+ }
9
13
}
10
14
11
15
class ClaudeDesktopClient implements MCPClient {
@@ -16,7 +20,7 @@ class ClaudeDesktopClient implements MCPClient {
16
20
'Select <strong>Claude Settings</strong>' ,
17
21
'Click on the <strong>Developer</strong> tab' ,
18
22
'Click on the <strong>Edit Config</strong> button' ,
19
- 'Copy and paste the following JSON into the <code>mcpServers</code> section:' +
23
+ 'Add MCP_DOCKER to <code>mcpServers</code> section:' +
20
24
'<pre style="font-family: monospace; overflow: auto; width: 80%; background-color: grey.200; padding: 1; border-radius: 1; font-size: 12px;">' +
21
25
JSON . stringify ( DOCKER_MCP_CONFIG , null , 2 ) +
22
26
'</pre>'
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ const CURSOR_MCP_CONFIG: CursorMCPConfig['mcpServers'][number] = {
18
18
type : 'stdio'
19
19
}
20
20
21
+ const configPathPlaceholder = 'Configuration must be done manually in Cursor Settings.'
22
+
21
23
class CursorDesktopClient implements MCPClient {
22
24
name = 'Cursor'
23
25
url = 'https://www.cursor.com/downloads'
@@ -31,9 +33,9 @@ class CursorDesktopClient implements MCPClient {
31
33
'</pre>'
32
34
]
33
35
expectedConfigPath = {
34
- darwin : '/Users/$USER/Library/Application Support/Cursor/User/globalStorage/state.vscdb' ,
35
- linux : '/home/$USER/.config/cursor/User/globalStorage/state.vscdb' ,
36
- win32 : '%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb'
36
+ darwin : configPathPlaceholder ,
37
+ linux : configPathPlaceholder ,
38
+ win32 : configPathPlaceholder
37
39
}
38
40
readFile = async ( client : v1 . DockerDesktopClient ) => {
39
41
const platform = client . host . platform
You can’t perform that action at this time.
0 commit comments