Skip to main content
Glama

Memory Bank MCP Server

by yywdandan
objectid.js601 B
'use strict'; const isBsonType = require('../helpers/isBsonType'); const ObjectId = require('../types/objectid'); module.exports = function castObjectId(value) { if (value == null) { return value; } if (isBsonType(value, 'ObjectId')) { return value; } if (value._id) { if (isBsonType(value._id, 'ObjectId')) { return value._id; } if (value._id.toString instanceof Function) { return new ObjectId(value._id.toString()); } } if (value.toString instanceof Function) { return new ObjectId(value.toString()); } return new ObjectId(value); };

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