27 lines
1.0 KiB
C#
27 lines
1.0 KiB
C#
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.IO;
|
||
|
|
using MCPForUnity.Editor.Models;
|
||
|
|
|
||
|
|
namespace MCPForUnity.Editor.Clients.Configurators
|
||
|
|
{
|
||
|
|
public class CodexConfigurator : CodexMcpConfigurator
|
||
|
|
{
|
||
|
|
public CodexConfigurator() : base(new McpClient
|
||
|
|
{
|
||
|
|
name = "Codex",
|
||
|
|
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codex", "config.toml"),
|
||
|
|
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codex", "config.toml"),
|
||
|
|
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codex", "config.toml")
|
||
|
|
})
|
||
|
|
{ }
|
||
|
|
|
||
|
|
public override IList<string> GetInstallationSteps() => new List<string>
|
||
|
|
{
|
||
|
|
"Run 'codex config edit' in a terminal\nOR open the config file at the path above",
|
||
|
|
"Paste the configuration TOML",
|
||
|
|
"Save and restart Codex"
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|