fix(skill-mcp): avoid propertyNames for Gemini compatibility (#1465)

- Replace record(string, unknown) with object({}) in arguments schema
- record() generates propertyNames which Gemini rejects with 400 error
- object({}) generates plain { type: 'object' } without propertyNames
- Runtime parseArguments() already handles arbitrary object keys

Fixes #1315
This commit is contained in:
YeonGyu-Kim
2026-02-04 11:26:34 +09:00
committed by GitHub
parent b954afca90
commit 5ffecb60c9

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.string(), tool.schema.unknown())])
.union([tool.schema.string(), tool.schema.object({})])
.optional()
.describe("JSON string or object of arguments"),
grep: tool.schema