Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/cli/thv_client_register.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/cli/thv_client_remove.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions docs/server/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions docs/server/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/server/swagger.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions pkg/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ const (
Factory ClientApp = "factory"
// CopilotCli represents the GitHub Copilot CLI.
CopilotCli ClientApp = "copilot-cli"
// Qoder represents the Qoder IDE.
Qoder ClientApp = "qoder"
)

const (
Expand Down Expand Up @@ -1022,6 +1024,33 @@ var supportedClientIntegrations = []clientAppConfig{
{JSONPointer: "/apiKey", ValueField: "PlaceholderAPIKey"},
},
},
{
ClientType: ClientApp(Qoder),
Description: "Qoder IDE",
SettingsFile: "mcp.json",
MCPServersPathPrefix: "/mcpServers",
RelPath: []string{},
PlatformPrefix: map[Platform][]string{
PlatformDarwin: {".qoder"},
PlatformLinux: {".qoder"},
PlatformWindows: {"AppData", "Roaming", "Qoder", "SharedClientCache"},
},
Extension: JSON,
IsTransportTypeFieldSupported: true,
SupportedTransportTypesMap: map[types.TransportType]string{
types.TransportTypeStdio: httpTransportLabel,
types.TransportTypeSSE: "sse",
types.TransportTypeStreamableHTTP: httpTransportLabel,
},
MCPServersUrlLabelMap: map[types.TransportType]string{
types.TransportTypeStdio: defaultURLFieldName,
types.TransportTypeSSE: defaultURLFieldName,
types.TransportTypeStreamableHTTP: defaultURLFieldName,
},
SupportsSkills: true,
SkillsGlobalPath: []string{".agents", skillsDirName},
SkillsProjectPath: []string{".qoder", skillsDirName},
},
{
// Claude Desktop routes LLM traffic through the gateway via its
// "third-party inference" surface. Unlike Claude Code (a single JSON
Expand Down
21 changes: 15 additions & 6 deletions pkg/client/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ func createMockClientConfigs() []clientAppConfig {
MCPServersPathPrefix: "/mcpServers",
Extension: JSON,
},
{
ClientType: Qoder,
Description: "Qoder (Mock)",
RelPath: []string{"mock_qoder"},
SettingsFile: "mcp.json",
MCPServersPathPrefix: "/mcpServers",
Extension: JSON,
},
}
}

Expand Down Expand Up @@ -376,6 +384,7 @@ func TestSuccessfulClientConfigOperations(t *testing.T) {
string(Codex),
string(KimiCli),
string(Factory),
string(Qoder),
},
},
}
Expand Down Expand Up @@ -456,7 +465,7 @@ func TestSuccessfulClientConfigOperations(t *testing.T) {
case AmpCli:
assert.Contains(t, string(content), `"mcpServers":`,
"AmpCli config should contain mcpServers key")
case LMStudio, Trae, Kiro, Antigravity, GeminiCli, KimiCli, Factory, CopilotCli:
case Qoder, LMStudio, Trae, Kiro, Antigravity, GeminiCli, KimiCli, Factory, CopilotCli:
assert.Contains(t, string(content), `"mcpServers":`,
"Config should contain mcpServers key")
case VSCodeServer:
Expand Down Expand Up @@ -515,7 +524,7 @@ func TestSuccessfulClientConfigOperations(t *testing.T) {
"VSCode config should contain the server URL")
case Cursor, RooCode, ClaudeCode, Cline, Windsurf, WindsurfJetBrains, AmpCli,
LMStudio, Goose, Trae, Continue, OpenCode, Kiro, Antigravity, Zed, GeminiCli, VSCodeServer,
MistralVibe, Codex, KimiCli, Factory, CopilotCli:
MistralVibe, Codex, Qoder, KimiCli, Factory, CopilotCli:
assert.Contains(t, string(content), testURL,
"Config should contain the server URL")
}
Expand Down Expand Up @@ -1244,8 +1253,8 @@ func TestGetAllClients(t *testing.T) {

clients := GetAllClients()

// Should return all 24 supported clients
assert.Len(t, clients, 24, "Expected 24 supported clients")
// Should return all 25 supported clients
assert.Len(t, clients, 25, "Expected 25 supported clients")

// Verify the list is sorted alphabetically
for i := 1; i < len(clients); i++ {
Expand Down Expand Up @@ -1459,7 +1468,7 @@ func TestGetClientListCSV(t *testing.T) {
clientNames[i-1], clientNames[i])
}

// Count the number of clients (should be 24)
// Count the number of clients (should be 25)
clients := strings.Split(csv, ", ")
assert.Len(t, clients, 24, "Expected 24 clients in CSV list")
assert.Len(t, clients, 25, "Expected 25 clients in CSV list")
}
2 changes: 1 addition & 1 deletion pkg/client/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (cm *ClientManager) IsClientInstalled(clientType ClientApp) bool {
return false
}
var pathToCheck string
if len(cfg.RelPath) == 0 {
if len(cfg.RelPath) == 0 && len(cfg.PlatformPrefix) == 0 {
pathToCheck = filepath.Join(cm.homeDir, cfg.SettingsFile)
} else {
pathToCheck = buildConfigDirectoryPath(cfg.RelPath, cfg.PlatformPrefix, []string{cm.homeDir})
Expand Down