Skip to content

Commit 2e655a0

Browse files
author
colinmcneil
committed
Improve copy for configuration steps
1 parent bd6a15a commit 2e655a0

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/extension/ui/src/mcp-clients/ClaudeDesktop.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ import { MCPClient } from ".";
44
import { DOCKER_MCP_COMMAND } from "../Constants";
55

66
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+
}
913
}
1014

1115
class ClaudeDesktopClient implements MCPClient {
@@ -16,7 +20,7 @@ class ClaudeDesktopClient implements MCPClient {
1620
'Select <strong>Claude Settings</strong>',
1721
'Click on the <strong>Developer</strong> tab',
1822
'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:' +
2024
'<pre style="font-family: monospace; overflow: auto; width: 80%; background-color: grey.200; padding: 1; border-radius: 1; font-size: 12px;">' +
2125
JSON.stringify(DOCKER_MCP_CONFIG, null, 2) +
2226
'</pre>'

src/extension/ui/src/mcp-clients/Cursor.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const CURSOR_MCP_CONFIG: CursorMCPConfig['mcpServers'][number] = {
1818
type: 'stdio'
1919
}
2020

21+
const configPathPlaceholder = 'Configuration must be done manually in Cursor Settings.'
22+
2123
class CursorDesktopClient implements MCPClient {
2224
name = 'Cursor'
2325
url = 'https://www.cursor.com/downloads'
@@ -31,9 +33,9 @@ class CursorDesktopClient implements MCPClient {
3133
'</pre>'
3234
]
3335
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
3739
}
3840
readFile = async (client: v1.DockerDesktopClient) => {
3941
const platform = client.host.platform

0 commit comments

Comments
 (0)