mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-12 17:21:18 +03:00
fix(mcp): default tool schema properties (#32568)
This commit is contained in:
committed by
GitHub
Unverified
parent
bd84c32860
commit
25cb2be619
@@ -119,7 +119,7 @@ export const resolve = Effect.fn("SessionTools.resolve")(function* (input: {
|
||||
if (!execute) continue
|
||||
|
||||
const schema = yield* Effect.promise(() => Promise.resolve(asSchema(item.inputSchema).jsonSchema))
|
||||
const transformed = ProviderTransform.schema(input.model, schema)
|
||||
const transformed = ProviderTransform.schema(input.model, { ...schema, properties: schema.properties ?? {} })
|
||||
item.inputSchema = jsonSchema(transformed)
|
||||
item.execute = (args, opts) =>
|
||||
run.promise(
|
||||
|
||||
Reference in New Issue
Block a user