Skip to content

Commit

Permalink
Improve copy for configuration steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinMcNeil committed Mar 7, 2025
1 parent bd6a15a commit 2e655a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/extension/ui/src/mcp-clients/ClaudeDesktop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ import { MCPClient } from ".";
import { DOCKER_MCP_COMMAND } from "../Constants";

const DOCKER_MCP_CONFIG = {
"command": DOCKER_MCP_COMMAND.split(' ')[0],
"args": DOCKER_MCP_COMMAND.split(' ').slice(1),
mcpServers: {
MCP_DOCKER: {
"command": DOCKER_MCP_COMMAND.split(' ')[0],
"args": DOCKER_MCP_COMMAND.split(' ').slice(1),
}
}
}

class ClaudeDesktopClient implements MCPClient {
Expand All @@ -16,7 +20,7 @@ class ClaudeDesktopClient implements MCPClient {
'Select <strong>Claude Settings</strong>',
'Click on the <strong>Developer</strong> tab',
'Click on the <strong>Edit Config</strong> button',
'Copy and paste the following JSON into the <code>mcpServers</code> section:' +
'Add MCP_DOCKER to <code>mcpServers</code> section:' +
'<pre style="font-family: monospace; overflow: auto; width: 80%; background-color: grey.200; padding: 1; border-radius: 1; font-size: 12px;">' +
JSON.stringify(DOCKER_MCP_CONFIG, null, 2) +
'</pre>'
Expand Down
8 changes: 5 additions & 3 deletions src/extension/ui/src/mcp-clients/Cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const CURSOR_MCP_CONFIG: CursorMCPConfig['mcpServers'][number] = {
type: 'stdio'
}

const configPathPlaceholder = 'Configuration must be done manually in Cursor Settings.'

class CursorDesktopClient implements MCPClient {
name = 'Cursor'
url = 'https://www.cursor.com/downloads'
Expand All @@ -31,9 +33,9 @@ class CursorDesktopClient implements MCPClient {
'</pre>'
]
expectedConfigPath = {
darwin: '/Users/$USER/Library/Application Support/Cursor/User/globalStorage/state.vscdb',
linux: '/home/$USER/.config/cursor/User/globalStorage/state.vscdb',
win32: '%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb'
darwin: configPathPlaceholder,
linux: configPathPlaceholder,
win32: configPathPlaceholder
}
readFile = async (client: v1.DockerDesktopClient) => {
const platform = client.host.platform
Expand Down

0 comments on commit 2e655a0

Please sign in to comment.