fix(mcp): align runtime unknown argument validation

This commit is contained in:
morluto
2026-07-16 19:51:25 +08:00
parent 8a1c128b67
commit d1e72207f4
3 changed files with 26 additions and 2 deletions
+2 -1
View File
@@ -67,7 +67,8 @@ const inputJsonSchema = (schema: z.ZodObject): Record<string, unknown> => {
return converter({ target: "draft-2020-12" });
};
const closeObjectSchemas = (
/** Close fixed-shape JSON Schema objects while preserving explicit maps. */
export const closeObjectSchemas = (
value: Readonly<Record<string, unknown>>,
): Record<string, unknown> => {
const closed = Object.fromEntries(