feat(setup): support Command Code MCP registration (#645)

Configure Command Code's user-scope MCP config (~/.commandcode/mcp.json)
with an explicit stdio registration ({ transport, enabled, command, args })
under mcpServers, matching the shape Command Code writes itself.

Adds the commandcode setup client and dialect, detection/alignment support,
README/docs entries, and regenerated product catalog.
This commit is contained in:
I Made Ocy Darma Putra
2026-10-06 14:15:59 +08:00
committed by GitHub
parent 6ad62cec6a
commit 7f1ae42f71
14 changed files with 115 additions and 13 deletions
+12
View File
@@ -13,6 +13,7 @@ export interface SetupClient {
| "vscode"
| "copilot_cli"
| "opencode"
| "commandcode"
| "unsupported";
}
@@ -79,6 +80,9 @@ const codexDirectory = ({ home, env }: ClientPathContext): string =>
const copilotDirectory = ({ home, env }: ClientPathContext): string =>
env.COPILOT_HOME ?? join(home, ".copilot");
const commandCodeDirectory = ({ home }: ClientPathContext): string =>
join(home, ".commandcode");
const opencodeDirectory = ({ home, env }: ClientPathContext): string =>
join(env.XDG_CONFIG_HOME ?? join(home, ".config"), "opencode");
@@ -192,6 +196,14 @@ export const SUPPORTED_CLIENT_DEFINITIONS = [
markerPath: copilotDirectory,
format: "copilot_cli",
},
{
name: "commandcode",
displayName: "Command Code",
configPath: (context: ClientPathContext) =>
join(commandCodeDirectory(context), "mcp.json"),
markerPath: commandCodeDirectory,
format: "commandcode",
},
{
name: "vscode",
displayName: "VS Code",