File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
tests/integration/tools/mongodb/create Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 55 setupIntegrationTest ,
66} from "../../../helpers.js" ;
77import { McpError } from "@modelcontextprotocol/sdk/types.js" ;
8- import { ObjectId } from "bson" ;
98import { IndexDirection } from "mongodb" ;
109import config from "../../../../../src/config.js" ;
1110
@@ -14,11 +13,11 @@ describe("createIndex tool", () => {
1413
1514 it ( "should have correct metadata" , async ( ) => {
1615 const { tools } = await integration . mcpClient ( ) . listTools ( ) ;
17- const listCollections = tools . find ( ( tool ) => tool . name === "create-index" ) ! ;
18- expect ( listCollections ) . toBeDefined ( ) ;
19- expect ( listCollections . description ) . toBe ( "Create an index for a collection" ) ;
16+ const createIndex = tools . find ( ( tool ) => tool . name === "create-index" ) ! ;
17+ expect ( createIndex ) . toBeDefined ( ) ;
18+ expect ( createIndex . description ) . toBe ( "Create an index for a collection" ) ;
2019
21- validateParameters ( listCollections , [
20+ validateParameters ( createIndex , [
2221 ...dbOperationParameters ,
2322 {
2423 name : "keys" ,
You can’t perform that action at this time.
0 commit comments