File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff 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 > {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments