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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user