Conversation
Resolves #3 This commit adds support for two new MCP clients: - aider: Uses ~/.aider/mcp.yml (YAML format) with 'servers' configKey Also supports local config via .aider.mcp.yml - aider-desk: Platform-specific paths for settings.json: - Windows: %APPDATA%/aider-desk/settings.json - macOS: ~/Library/Application Support/aider-desk/settings.json - Linux: ~/.config/aider-desk/settings.json Uses 'mcpServers' configKey Both clients are now included in the clientNames array and can be used with the --client flag during installation.
Updated the README to include the newly added aider and aider-desk clients in the Supported Clients section.
|
Claude finished @Dhravya's task —— View job Code Review for Pull Request #35Todo List:
📋 SummaryThis PR appears to be the initial repository setup for the 🏗️ Code Quality & Best Practices✅ Strengths
|
| type: 'file', | ||
| path: | ||
| process.platform === 'win32' | ||
| ? path.join(process.env.APPDATA || path.join(homeDir, 'AppData', 'Roaming'), 'aider-desk', 'settings.json') | ||
| : process.platform === 'darwin' | ||
| ? path.join(homeDir, 'Library', 'Application Support', 'aider-desk', 'settings.json') | ||
| : path.join(homeDir, '.config', 'aider-desk', 'settings.json'), | ||
| configKey: 'mcpServers', | ||
| }, | ||
| } | ||
| } |
There was a problem hiding this comment.
Bug: The configuration for the aider client uses the key 'servers', but the standard is 'mcpServers', which will likely cause silent integration failures.
Severity: MEDIUM | Confidence: Very low
🔍 Detailed Analysis
The code in client-config.ts uses a hardcoded configuration key 'servers' and path ~/.aider/mcp.yml for the aider client. Research indicates that standard MCP clients, including aider-desk, use the key 'mcpServers', and the specified path is not officially documented for the core aider tool. This discrepancy will likely cause readConfig() and writeConfig() to fail silently. The integration will appear to succeed, but the MCP server configuration will not be correctly read or updated for the aider client, rendering the feature non-functional for that specific integration.
💡 Suggested Fix
Verify the correct configuration key and file path for the aider tool. It is likely the configKey for the aider client should be changed from 'servers' to 'mcpServers' to align with standard MCP client conventions and ensure the integration works as expected.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: src/client-config.ts#L148-L168
Potential issue: The code in `client-config.ts` uses a hardcoded configuration key
`'servers'` and path `~/.aider/mcp.yml` for the `aider` client. Research indicates that
standard MCP clients, including `aider-desk`, use the key `'mcpServers'`, and the
specified path is not officially documented for the core `aider` tool. This discrepancy
will likely cause `readConfig()` and `writeConfig()` to fail silently. The integration
will appear to succeed, but the MCP server configuration will not be correctly read or
updated for the `aider` client, rendering the feature non-functional for that specific
integration.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8130131
No description provided.