Skip to main content
Glama

Memory Bank MCP Server

by yywdandan
parentPaths.js385 B
'use strict'; const dotRE = /\./g; module.exports = function parentPaths(path) { if (path.indexOf('.') === -1) { return [path]; } const pieces = path.split(dotRE); const len = pieces.length; const ret = new Array(len); let cur = ''; for (let i = 0; i < len; ++i) { cur += (cur.length !== 0) ? '.' + pieces[i] : pieces[i]; ret[i] = cur; } return ret; };

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