Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
createIndex.vectorSearchDisabled.test.ts2.1 kB
/** * Accuracy tests for when the vector search feature flag is disabled. * * TODO: Remove this file once we permanently enable the vector search feature. */ import { describeAccuracyTests } from "./sdk/describeAccuracyTests.js"; import { Matcher } from "./sdk/matcher.js"; describeAccuracyTests( [ { prompt: "(vectorSearchDisabled) Create an index that covers the following query on 'mflix.movies' namespace - { \"release_year\": 1992 }", expectedToolCalls: [ { toolName: "create-index", parameters: { database: "mflix", collection: "movies", name: Matcher.anyOf(Matcher.undefined, Matcher.string()), definition: [ { type: Matcher.anyOf(Matcher.undefined, Matcher.value("classic")), keys: { release_year: 1, }, }, ], }, }, ], }, { prompt: "(vectorSearchDisabled) Create a text index on title field in 'mflix.movies' namespace", expectedToolCalls: [ { toolName: "create-index", parameters: { database: "mflix", collection: "movies", name: Matcher.anyOf(Matcher.undefined, Matcher.string()), definition: [ { type: Matcher.anyOf(Matcher.undefined, Matcher.value("classic")), keys: { title: "text", }, }, ], }, }, ], }, ], { userConfig: { previewFeatures: "" }, } );

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mongodb-js/mongodb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server