Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
operationWithFallback.ts382 B
type OperationCallback<OperationResult> = () => Promise<OperationResult>; export async function operationWithFallback<OperationResult, FallbackValue>( performOperation: OperationCallback<OperationResult>, fallback: FallbackValue ): Promise<OperationResult | FallbackValue> { try { return await performOperation(); } catch { return fallback; } }

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