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;