Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
index.ts881 B
import { type ConnectionManagerEvents } from "../../src/common/connectionManager.js"; import { LoggerBase, type LoggerType } from "../../src/common/logger.js"; import { type ConnectionManager } from "../../src/lib.js"; export class NullLogger extends LoggerBase { protected type?: LoggerType; constructor() { super(undefined); } protected logCore(): void { // No-op logger, does not log anything } } /** * For a few tests, we need the changeState method to force a connection state * which is we have this type to typecast the actual ConnectionManager with * public changeState (only to make TS happy). */ export type TestConnectionManager = ConnectionManager & { changeState<Event extends keyof ConnectionManagerEvents, State extends ConnectionManagerEvents[Event][0]>( event: Event, newState: State ): State; };

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