Skip to content

Commit 59c36fc

Browse files
committed
revert uiOutputSchema
1 parent 0136cbf commit 59c36fc

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/tools/mongodb/metadata/listDatabases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class ListDatabasesTool extends MongoDBToolBase {
1111
public name = "list-databases";
1212
protected description = "List all databases for a MongoDB connection";
1313
protected argsShape = {};
14-
protected override uiOutputSchema = ListDatabasesOutputSchema;
14+
protected override outputSchema = ListDatabasesOutputSchema;
1515
static operationType: OperationType = "metadata";
1616

1717
protected async execute(): Promise<CallToolResult> {

src/tools/tool.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,6 @@ export abstract class ToolBase {
304304
*/
305305
protected outputSchema?: ZodRawShape;
306306

307-
/**
308-
* Optional Zod schema for structured output when mcpUI feature is enabled.
309-
* Takes precedence over `outputSchema` when defined and mcpUI is active.
310-
*/
311-
protected uiOutputSchema?: ZodRawShape;
312-
313307
private registeredTool: RegisteredTool | undefined;
314308

315309
protected get annotations(): ToolAnnotations {
@@ -535,9 +529,7 @@ export abstract class ToolBase {
535529
{
536530
description: this.description,
537531
inputSchema: this.argsShape,
538-
outputSchema: this.isFeatureEnabled("mcpUI")
539-
? (this.uiOutputSchema ?? this.outputSchema)
540-
: this.outputSchema,
532+
outputSchema: this.outputSchema,
541533
annotations: this.annotations,
542534
},
543535
callback

0 commit comments

Comments
 (0)