38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using MCPForUnity.Editor.Models;
|
|
|
|
namespace MCPForUnity.Editor.Clients.Configurators
|
|
{
|
|
/// <summary>
|
|
/// Claude Code configurator using the CLI-based registration (claude mcp add/remove).
|
|
/// This integrates with Claude Code's native MCP management.
|
|
/// </summary>
|
|
public class ClaudeCodeConfigurator : ClaudeCliMcpConfigurator
|
|
{
|
|
public ClaudeCodeConfigurator() : base(new McpClient
|
|
{
|
|
name = "Claude Code",
|
|
SupportsHttpTransport = true,
|
|
})
|
|
{ }
|
|
|
|
public override bool SupportsSkills => true;
|
|
|
|
public override string GetSkillInstallPath()
|
|
{
|
|
var userHome = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
|
return Path.Combine(userHome, ".claude", "skills", "unity-mcp-skill");
|
|
}
|
|
|
|
public override IList<string> GetInstallationSteps() => new List<string>
|
|
{
|
|
"Ensure Claude CLI is installed (comes with Claude Code)",
|
|
"Click Configure to add UnityMCP via 'claude mcp add'",
|
|
"The server will be automatically available in Claude Code",
|
|
"Use Unregister to remove via 'claude mcp remove'"
|
|
};
|
|
}
|
|
}
|