Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
managedTimeout.ts610 B
export interface ManagedTimeout { cancel: () => void; restart: () => void; } export function setManagedTimeout(callback: () => Promise<void> | void, timeoutMS: number): ManagedTimeout { let timeoutId: NodeJS.Timeout | undefined = setTimeout(() => { void callback(); }, timeoutMS); function cancel(): void { clearTimeout(timeoutId); timeoutId = undefined; } function restart(): void { cancel(); timeoutId = setTimeout(() => { void callback(); }, timeoutMS); } return { cancel, restart, }; }

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