-
Notifications
You must be signed in to change notification settings - Fork 526
扩展CodeBuddy MCP #392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
扩展CodeBuddy MCP #392
Conversation
WalkthroughThis PR extends the MCP client registry by adding CodeBuddy as a supported client type. A new enum member is introduced to McpTypes, and CodeBuddy configuration is registered with platform-specific paths to its settings file. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
MCPForUnity/Editor/Data/McpClients.cs(1 hunks)MCPForUnity/Editor/Models/McpTypes.cs(1 hunks)
🔇 Additional comments (1)
MCPForUnity/Editor/Models/McpTypes.cs (1)
13-13: LGTM! Enum addition follows the established pattern.The
CodeBuddyenum member is correctly added to support the new MCP client type.
| // CodeBuddy | ||
| new() | ||
| { | ||
| name = "CodeBuddy", | ||
| windowsConfigPath = Path.Combine( | ||
| Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), | ||
| ".CodeBuddy", | ||
| "settings", | ||
| "mcp.json" | ||
| ), | ||
| macConfigPath = Path.Combine( | ||
| Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), | ||
| ".CodeBuddy", | ||
| "settings", | ||
| "mcp.json" | ||
| ), | ||
| linuxConfigPath = Path.Combine( | ||
| Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), | ||
| ".CodeBuddy", | ||
| "settings", | ||
| "mcp.json" | ||
| ), | ||
| mcpType = McpTypes.CodeBuddy, | ||
| configStatus = "Not Configured", | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
LGTM! Configuration follows the established pattern.
The CodeBuddy client configuration is correctly structured and consistent with other MCP clients (particularly similar to the Kiro configuration).
However, please verify that .CodeBuddy (with capital C and B) is the correct directory name. Most other client configurations use lowercase directory names (.cursor, .kiro, .codex). If CodeBuddy's actual installation uses .codebuddy or a different casing, the paths should be updated accordingly.
🏁 Script executed:
#!/bin/bash
# Description: Check if there's any documentation or references to CodeBuddy's config directory name
# Search for any existing references to CodeBuddy paths in documentation or comments
rg -i "codebuddy" -g "*.md" -g "*.txt" -g "*.cs" -C3Length of output: 2477
Update configuration directory to use lowercase path.
CodeBuddy uses ~/.codebuddy/settings.json (lowercase) as the user-level configuration path. The current implementation uses .CodeBuddy (mixed case), which will not match the actual directory name.
Update lines 211-235 in MCPForUnity/Editor/Data/McpClients.cs:
- Change
".CodeBuddy"to".codebuddy"in all three paths (Windows, Mac, Linux)
🤖 Prompt for AI Agents
MCPForUnity/Editor/Data/McpClients.cs around lines 211-235: the CodeBuddy config
paths use ".CodeBuddy" (mixed case) but the actual user directory is lowercase
".codebuddy"; update the three Path.Combine calls for windowsConfigPath,
macConfigPath and linuxConfigPath to use ".codebuddy" instead of ".CodeBuddy" so
the paths match the real config directory.
扩展Unity MCP,使其支持CodeBuddy代码编辑器。
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.