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:
parent
5c88abda7c
commit
65a567e0b4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user