/**
* A cap for the maxTimeMS used for FindCursor.countDocuments.
*
* The number is relatively smaller because we expect the count documents query
* to be finished sooner if not by the time the batch of documents is retrieved
* so that count documents query don't hold the final response back.
*/
export const QUERY_COUNT_MAX_TIME_MS_CAP: number = 10_000;
/**
* A cap for the maxTimeMS used for counting resulting documents of an
* aggregation.
*/
export const AGG_COUNT_MAX_TIME_MS_CAP: number = 60_000;
export const ONE_MB: number = 1 * 1024 * 1024;
/**
* A map of applied limit on cursors to a text that is supposed to be sent as
* response to LLM
*/
export const CURSOR_LIMITS_TO_LLM_TEXT = {
"config.maxDocumentsPerQuery": "server's configured - maxDocumentsPerQuery",
"config.maxBytesPerQuery": "server's configured - maxBytesPerQuery",
"tool.responseBytesLimit": "tool's parameter - responseBytesLimit",
} as const;
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