fix(core): expose MCP output schemas to code mode (#35502)
This commit is contained in:
parent
50a762e7b9
commit
4e019ba5d9
5 changed files with 106 additions and 2 deletions
|
|
@ -61,6 +61,7 @@ export interface ToolDefinition {
|
|||
readonly name: string
|
||||
readonly description: string | undefined
|
||||
readonly inputSchema: unknown
|
||||
readonly outputSchema: unknown
|
||||
}
|
||||
|
||||
export interface PromptDefinition {
|
||||
|
|
@ -235,6 +236,7 @@ export const connect = Effect.fnUntraced(function* (
|
|||
name: tool.name,
|
||||
description: tool.description,
|
||||
inputSchema: tool.inputSchema,
|
||||
outputSchema: "outputSchema" in tool ? tool.outputSchema : undefined,
|
||||
}))
|
||||
}),
|
||||
prompts: () =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue