Skip to content

Commit 3a29318

Browse files
cliffhallclaude
andcommitted
test(everything): check input descriptions on both protocol eras (#3669)
Each era lists tools the other does not (the task tools only on 2026-07-28), so a 2025-era connection alone left the modern-only tools unchecked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 2a73097 commit 3a29318

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

‎src/everything/__tests__/input-descriptions.test.ts‎

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
// properties (array items, object fields) as well as top-level ones.
77

88
import { afterEach, describe, expect, it } from "vitest";
9-
import { ALL_CAPABILITIES, connect, type Session } from "./harness.js";
9+
import {
10+
ALL_CAPABILITIES,
11+
connect,
12+
connectModern,
13+
MODERN_CAPABILITIES,
14+
type Session,
15+
} from "./harness.js";
1016

1117
/** A JSON Schema node, as much of it as the walk reads. */
1218
type SchemaNode = {
@@ -56,10 +62,21 @@ afterEach(async () => {
5662
session = undefined;
5763
});
5864

59-
describe("tool input descriptions (#3669)", () => {
65+
// Each era lists some tools the other does not (the task tools only on
66+
// 2026-07-28, the toggle-* tools only on the 2025 era), so both are checked.
67+
// Every capability is declared, so the tools gated on one are listed too.
68+
describe.each([
69+
{
70+
era: "2025-era",
71+
open: () => connect({ capabilities: ALL_CAPABILITIES }),
72+
},
73+
{
74+
era: "2026-07-28",
75+
open: () => connectModern({ capabilities: MODERN_CAPABILITIES }),
76+
},
77+
])("tool input descriptions on the $era surface (#3669)", ({ open }) => {
6078
it("describes every input property of every tool", async () => {
61-
// Every capability, so the tools gated on one are listed too.
62-
session = await connect({ capabilities: ALL_CAPABILITIES });
79+
session = await open();
6380
const { tools } = await session.client.listTools();
6481
expect(tools.length).toBeGreaterThan(0);
6582
const missing = tools.flatMap((tool) =>

0 commit comments

Comments
 (0)