You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mcp): handle JSON-serialized object parameters from MCP clients
Some MCP clients serialize complex object parameters (filter, sort) as
JSON strings rather than native objects. Add a z.preprocess wrapper that
transparently parses JSON strings before Zod validation, keeping all
existing schema validation intact.
Closes#5610
includeBodies: z.boolean().optional().describe("Fetch and include request/response bodies (default: false). If true, fetches content from signed URLs."),
29
44
},
30
45
async (params: any) =>{
@@ -70,7 +85,7 @@ server.tool(
70
85
endTimeUnixMs: z.number().describe("End time for session query (Unix timestamp in milliseconds)"),
71
86
nameEquals: z.string().optional().describe("Filter sessions by exact name match"),
72
87
timezoneDifference: z.number().describe("Timezone difference in hours (e.g., -5 for EST)"),
0 commit comments