Skip to content

Commit 858072c

Browse files
authored
fix the tool inputSchema definition so google and openai models work (no o3-mini yet though) (#17)
1 parent 4d5b51f commit 858072c

File tree

1 file changed

+1
-1
lines changed
  • packages/opencontrol/src

1 file changed

+1
-1
lines changed

packages/opencontrol/src/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function createMcp(input: { tools: Tool[] }) {
4545
? (zodToJsonSchema(tool.args as any, "args").definitions![
4646
"args"
4747
] as any)
48-
: { type: "object" },
48+
: { type: "object", properties: {} },
4949
description: tool.description,
5050
})),
5151
} satisfies ListToolsResult

0 commit comments

Comments
 (0)