Skip to content

Commit 2722e64

Browse files
test(mcp): bump stdio tool count 70→71 for explain_gate_disposition
The CLI mirror adds one registered loopover_ tool; discovery invariants must match. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0135786 commit 2722e64

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/unit/mcp-tool-rename-aliases.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// (#6732 registered the loopover_monitor_open_prs CLI mirror, taking the count from 63 to 64.)
1313
// (#6752 registered the loopover_build_results_payload CLI mirror, taking the count from 67 to 68.)
1414
// (#6755 registered the loopover_intake_idea CLI mirror, taking the count from 68 to 69.)
15-
// (#6915 registered the loopover_simulate_open_pr_pressure CLI mirror, taking the count from 69 to 70.)
15+
// (#6915 registered the loopover_simulate_open_pr_pressure CLI mirror, taking the count from 69 to 70; #6740 loopover_explain_gate_disposition takes it from 70 to 71.)
1616
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
1717
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
1818
import { mkdtempSync, rmSync } from "node:fs";
@@ -56,14 +56,14 @@ describe("MCP legacy alias retirement (#4777) — discovery invariants", () => {
5656
});
5757
afterEach(disconnect);
5858

59-
it("lists exactly 70 loopover_ tools and zero gittensory_-prefixed aliases", async () => {
59+
it("lists exactly 71 loopover_ tools and zero gittensory_-prefixed aliases", async () => {
6060
const { tools } = await client.listTools();
6161
const names = tools.map((t) => t.name);
6262
const primary = names.filter((n) => n.startsWith("loopover_"));
6363
const legacy = names.filter((n) => n.startsWith("gittensory_"));
64-
expect(primary.length).toBe(70);
64+
expect(primary.length).toBe(71);
6565
expect(legacy.length).toBe(0);
66-
expect(names.length).toBe(70);
66+
expect(names.length).toBe(71);
6767
});
6868

6969
it("no loopover_ tool's description carries a stale deprecation notice", async () => {
@@ -73,11 +73,11 @@ describe("MCP legacy alias retirement (#4777) — discovery invariants", () => {
7373
}
7474
});
7575

76-
it("`loopover-mcp tools --json` reports the same 70-tool count the live server registers", async () => {
76+
it("`loopover-mcp tools --json` reports the same 71-tool count the live server registers", async () => {
7777
const { tools } = await client.listTools();
7878
const payload = JSON.parse(run(["tools", "--json"])) as { count: number; tools: Array<{ name: string }> };
7979
expect(payload.count).toBe(tools.length);
80-
expect(payload.count).toBe(70);
80+
expect(payload.count).toBe(71);
8181
expect([...payload.tools.map((t) => t.name)].sort()).toEqual([...tools.map((t) => t.name)].sort());
8282
});
8383
});

0 commit comments

Comments
 (0)