fix(skill-mcp): add key type for zod v4 record schema

Zod v4 requires both keyType and valueType arguments for z.record().
The previous commit only passed valueType, causing TypeScript error TS2554.
This commit is contained in:
gilbrotheraway
2026-01-20 08:49:24 -03:00
parent 8028b9ca6a
commit 4bea713b46
+1 -1
View File
@@ -118,7 +118,7 @@ export function createSkillMcpTool(options: SkillMcpToolOptions): ToolDefinition
resource_name: tool.schema.string().optional().describe("MCP resource URI to read"),
prompt_name: tool.schema.string().optional().describe("MCP prompt to get"),
arguments: tool.schema
.union([tool.schema.string(), tool.schema.record(tool.schema.unknown())])
.union([tool.schema.string(), tool.schema.record(tool.schema.string(), tool.schema.unknown())])
.optional()
.describe("JSON string or object of arguments"),
grep: tool.schema