Skip to content

Commit 79d34c7

Browse files
committed
test: add eslint-disable for intentional type bypasses
1 parent c94bfda commit 79d34c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/mcp.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ describe("tool()", () => {
925925

926926
// Testing internal robustness: even if someone bypasses TypeScript and passes undefined
927927
// the callback should still be found at the correct position
928+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
928929
(mcpServer.tool as any)(
929930
"test",
930931
"A tool description",
@@ -987,6 +988,7 @@ describe("tool()", () => {
987988
});
988989

989990
// Testing: tool(name, undefined, schema, callback)
991+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
990992
(mcpServer.tool as any)(
991993
"test",
992994
undefined, // description is undefined
@@ -1047,6 +1049,7 @@ describe("tool()", () => {
10471049
});
10481050

10491051
// Testing: tool(name, description, undefined, annotations, callback)
1052+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
10501053
(mcpServer.tool as any)(
10511054
"test",
10521055
"A tool description",

0 commit comments

Comments
 (0)