Skip to main content
Glama

Memory Bank MCP Server

by yywdandan
applyWriteConcern.js991 B
'use strict'; const get = require('../get'); module.exports = function applyWriteConcern(schema, options) { if (options.writeConcern != null) { return; } const writeConcern = get(schema, 'options.writeConcern', {}); if (Object.keys(writeConcern).length != 0) { options.writeConcern = {}; if (!('w' in options) && writeConcern.w != null) { options.writeConcern.w = writeConcern.w; } if (!('j' in options) && writeConcern.j != null) { options.writeConcern.j = writeConcern.j; } if (!('wtimeout' in options) && writeConcern.wtimeout != null) { options.writeConcern.wtimeout = writeConcern.wtimeout; } } else { if (!('w' in options) && writeConcern.w != null) { options.w = writeConcern.w; } if (!('j' in options) && writeConcern.j != null) { options.j = writeConcern.j; } if (!('wtimeout' in options) && writeConcern.wtimeout != null) { options.wtimeout = writeConcern.wtimeout; } } };

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