Skip to main content
Glama

Memory Bank MCP Server

by yywdandan
isAtlas.js748 B
'use strict'; const getConstructorName = require('../getConstructorName'); /** * @typedef { import('mongodb').TopologyDescription } TopologyDescription */ /** * Checks if topologyDescription contains servers connected to an atlas instance * * @param {TopologyDescription} topologyDescription * @returns {boolean} */ module.exports = function isAtlas(topologyDescription) { if (getConstructorName(topologyDescription) !== 'TopologyDescription') { return false; } if (topologyDescription.servers.size === 0) { return false; } for (const server of topologyDescription.servers.values()) { if (server.host.endsWith('.mongodb.net') === false || server.port !== 27017) { return false; } } return true; };

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/yywdandan/memory-bank-mcp-server'

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