Skip to content

Commit d8b69f1

Browse files
Merge pull request #859 from corbitsdev/cl-7546-remove-duplicate-mcps-slash-command
Remove the duplicate MCP slash command alias
2 parents 0394c14 + 153d850 commit d8b69f1

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ parallel copies under `docs/` or `scripts/notes/`. At cut time: rename
2424

2525
### Fixed
2626

27+
- The slash menu exposes `/mcp` only. `/mcps` is no longer an alias for
28+
the same overlay.
2729
- Sequential TUI ask and permission selectors paint the live question's option
2830
labels. Overlay rows bind by an ask id minted at emit, not render-order
2931
index. A stale or empty accept fail-closes as unavailable rather than

docs/MCP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ registered for dispatch as soon as the server connects (including later in the
9090
same turn) and surfaced on demand through dynamic tool discovery
9191
(`tool_search`).
9292

93-
In the TUI, `/mcp` and `/mcps` open the same live server surface. Press **Alt+A**
93+
In the TUI, `/mcp` opens the live server surface. Press **Alt+A**
9494
to add a named absolute HTTP(S) endpoint to global settings and connect it in the
9595
current session. Names may contain letters, numbers, single underscores, and
9696
hyphens; the `__` tool-namespace delimiter is reserved. The add is unavailable

src/tui/commands/built-in.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ describe("/connect command", () => {
5555
});
5656

5757
describe("MCP commands", () => {
58-
it("keeps /mcp and aliases /mcps to the same surface", () => {
58+
it("registers /mcp for the overlay and does not register /mcps", () => {
5959
expect(getCommand("mcp")?.handler("", makeCtx())).toEqual({ type: "overlay", overlay: "mcp" });
60-
expect(getCommand("mcps")?.handler("", makeCtx())).toEqual({ type: "overlay", overlay: "mcp" });
60+
expect(getCommand("mcps")).toBeUndefined();
6161
});
6262
});
6363

src/tui/commands/built-in.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,11 @@ export function registerBuiltInCommands(): void {
106106
handler: (_args, _ctx) => ({ type: "paste-image" }),
107107
});
108108

109-
for (const name of ["mcp", "mcps"]) {
110-
registerCommand({
111-
name,
112-
description: "Show MCP servers — Enter connects, Alt+D disables, Alt+R removes",
113-
handler: (_args, _ctx) => ({ type: "overlay", overlay: "mcp" }),
114-
});
115-
}
109+
registerCommand({
110+
name: "mcp",
111+
description: "Show MCP servers — Enter connects, Alt+D disables, Alt+R removes",
112+
handler: (_args, _ctx) => ({ type: "overlay", overlay: "mcp" }),
113+
});
116114

117115
registerCommand({
118116
name: "cost",

0 commit comments

Comments
 (0)