From 0fe536bbd2ccab2aa64db2c7f2160b1988ee8670 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 23 Nov 2026 16:29:35 +0100 Subject: [PATCH] fix(mcp): type the input refusal as the Error it is, so the strict build reads it --- server/src/nest-mcp/registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/nest-mcp/registry.ts b/server/src/nest-mcp/registry.ts index bbb74fe80..abc197a9f 100644 --- a/server/src/nest-mcp/registry.ts +++ b/server/src/nest-mcp/registry.ts @@ -61,7 +61,7 @@ function mapValidated( mapper: McpInputMapper, input: unknown, shape: Record | undefined, - refuse: (message: string) => McpError, + refuse: (message: string) => Error, ): unknown { const mapped = mapper(input); if (mapped === input || !shape || !isRecord(input) || !isRecord(mapped)) return mapped;