define executors with mcp configuration (#310)

This commit is contained in:
Gabriel Gordon-Hall
2025-07-23 14:10:38 +01:00
committed by GitHub
parent 8bbf327dd5
commit 96f27ff8bc
4 changed files with 33 additions and 4 deletions

View File

@@ -47,6 +47,15 @@ export const EDITOR_LABELS: Record<string, string> = {
"custom": "Custom"
};
export const MCP_SUPPORTED_EXECUTORS: string[] = [
"claude",
"amp",
"gemini",
"sst-opencode",
"charm-opencode",
"claude-code-router"
];
export const SOUND_FILES: SoundFile[] = [
"abstract-sound1",
"abstract-sound2",

View File

@@ -499,7 +499,7 @@ impl ExecutorConfig {
ExecutorConfig::CharmOpencode => Some(vec!["mcpServers"]),
ExecutorConfig::SstOpencode => Some(vec!["mcp"]),
ExecutorConfig::Claude => Some(vec!["mcpServers"]),
ExecutorConfig::ClaudePlan => Some(vec!["mcpServers"]),
ExecutorConfig::ClaudePlan => None, // Claude Plan shares Claude config
ExecutorConfig::Amp => Some(vec!["amp", "mcpServers"]), // Nested path for Amp
ExecutorConfig::Gemini => Some(vec!["mcpServers"]),
ExecutorConfig::ClaudeCodeRouter => Some(vec!["mcpServers"]),