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
@@ -35,9 +35,14 @@ afterEach(() => vi.unstubAllEnvs());
const getClients = (home: string) =>
supportedClients(home).filter(({ name }) =>
["opencode", "antigravity", "copilot_cli", "vscode", "devin"].includes(
name,
),
[
"opencode",
"antigravity",
"copilot_cli",
"commandcode",
"vscode",
"devin",
].includes(name),
);
describe("additional client configuration dialects", () => {
@@ -45,6 +50,7 @@ describe("additional client configuration dialects", () => {
"opencode",
"antigravity",
"copilot_cli",
"commandcode",
"vscode",
"devin",
] as const)("registers, reads back, and uninstalls %s", async (name) => {
@@ -90,6 +96,13 @@ describe("additional client configuration dialects", () => {
});
if (name === "copilot_cli")
expect(registration).toMatchObject({ type: "stdio", tools: ["*"] });
if (name === "commandcode")
expect(registration).toMatchObject({
transport: "stdio",
enabled: true,
command: "npx",
args: command.slice(1),
});
const statuses = await readClientRegistrationStatuses(home);
expect(statuses).toEqual(