Skip to main content
Glama

Memory Bank MCP Server

by yywdandan
try_catch.asynct.js1.1 kB
var it = require('it-is').style('colour') , split = require('..') exports ['emit mapper exceptions as error events'] = function (test) { var s = split(JSON.parse) , caughtError = false , rows = [] s.on('error', function (err) { caughtError = true }) s.on('data', function (row) { rows.push(row) }) s.write('{"a":1}\n{"') it(caughtError).equal(false) it(rows).deepEqual([ { a: 1 } ]) s.write('b":2}\n{"c":}\n') it(caughtError).equal(true) it(rows).deepEqual([ { a: 1 }, { b: 2 } ]) s.end() test.done() } exports ['mapper error events on trailing chunks'] = function (test) { var s = split(JSON.parse) , caughtError = false , rows = [] s.on('error', function (err) { caughtError = true }) s.on('data', function (row) { rows.push(row) }) s.write('{"a":1}\n{"') it(caughtError).equal(false) it(rows).deepEqual([ { a: 1 } ]) s.write('b":2}\n{"c":}') it(caughtError).equal(false) it(rows).deepEqual([ { a: 1 }, { b: 2 } ]) s.end() it(caughtError).equal(true) it(rows).deepEqual([ { a: 1 }, { b: 2 } ]) test.done() }

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