Skip to content

Commit bd620e0

Browse files
authored
Add CodeBuddy CLI configurator (#403)
Closes #392
1 parent 17cd543 commit bd620e0

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using MCPForUnity.Editor.Models;
5+
6+
namespace MCPForUnity.Editor.Clients.Configurators
7+
{
8+
/// <summary>
9+
/// Configures the CodeBuddy CLI (~/.codebuddy.json) MCP settings.
10+
/// </summary>
11+
public class CodeBuddyCliConfigurator : JsonFileMcpConfigurator
12+
{
13+
public CodeBuddyCliConfigurator() : base(new McpClient
14+
{
15+
name = "CodeBuddy CLI",
16+
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codebuddy.json"),
17+
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codebuddy.json"),
18+
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codebuddy.json"),
19+
})
20+
{ }
21+
22+
public override IList<string> GetInstallationSteps() => new List<string>
23+
{
24+
"Install CodeBuddy CLI and ensure '~/.codebuddy.json' exists",
25+
"Click Configure to add the UnityMCP entry (or manually edit the file above)",
26+
"Restart your CLI session if needed"
27+
};
28+
}
29+
}

MCPForUnity/Editor/Clients/Configurators/CodeBuddyCliConfigurator.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)