fix(mcp): align runtime unknown argument validation
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user