Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(mcp): type the input refusal as the Error it is, so the strict build reads it

Maurice0fe536bbd2cc
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<string, z.ZodType> | undefined,
- refuse: (message: string) => McpError,
+ refuse: (message: string) => Error,
): unknown {
const mapped = mapper(input);
if (mapped === input || !shape || !isRecord(input) || !isRecord(mapped)) return mapped;