File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
ui/components/ListDatabases Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ import type { OperationType } from "../../tool.js";
55import { formatUntrustedData } from "../../tool.js" ;
66import { z } from "zod" ;
77
8- /**
9- * Schema for the list-databases tool output.
10- * Used by the MCP protocol for structured content validation.
11- */
128export const ListDatabasesOutputSchema = {
139 databases : z . array (
1410 z . object ( {
@@ -19,7 +15,6 @@ export const ListDatabasesOutputSchema = {
1915 totalCount : z . number ( ) ,
2016} ;
2117
22- /** Type derived from the output schema */
2318export type ListDatabasesOutput = z . infer < z . ZodObject < typeof ListDatabasesOutputSchema > > ;
2419
2520export class ListDatabasesTool extends MongoDBToolBase {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export const ListDatabases = (): React.ReactElement | null => {
5050 </ HeaderRow >
5151 </ TableHead >
5252 < TableBody >
53- { data ? .databases . map ( ( db ) => (
53+ { data . databases . map ( ( db ) => (
5454 < Row key = { db . name } >
5555 < Cell > { db . name } </ Cell >
5656 < Cell > { formatBytes ( db . size ) } </ Cell >
You can’t perform that action at this time.
0 commit comments