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 5
5
setupIntegrationTest ,
6
6
} from "../../../helpers.js" ;
7
7
import { McpError } from "@modelcontextprotocol/sdk/types.js" ;
8
- import { ObjectId } from "bson" ;
9
8
import { IndexDirection } from "mongodb" ;
10
9
import config from "../../../../../src/config.js" ;
11
10
@@ -14,11 +13,11 @@ describe("createIndex tool", () => {
14
13
15
14
it ( "should have correct metadata" , async ( ) => {
16
15
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" ) ;
20
19
21
- validateParameters ( listCollections , [
20
+ validateParameters ( createIndex , [
22
21
...dbOperationParameters ,
23
22
{
24
23
name : "keys" ,
You can’t perform that action at this time.
0 commit comments