code cleanup. gismeteo prompt injection

This commit is contained in:
azykov@mail.ru
2026-07-10 15:25:56 +03:00
parent 6cfff5ef4b
commit 3b46f15e9f
6 changed files with 41 additions and 23 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export const listToolsTool: ToolDef = {
...tool,
config: {
...tool.config,
inputSchema: zodToJsonSchema(z.object(tool.config.inputSchema), { target: "jsonSchema7" }),
inputSchema: zodToJsonSchema(z.object(tool.config.inputSchema ?? {}), { target: "jsonSchema7" }),
}
})),
null,