Skip to main content
Glama

Neo4j MCP Server

lastValueFrom.js798 B
import { EmptyError } from './util/EmptyError'; export function lastValueFrom(source, config) { const hasConfig = typeof config === 'object'; return new Promise((resolve, reject) => { let _hasValue = false; let _value; source.subscribe({ next: (value) => { _value = value; _hasValue = true; }, error: reject, complete: () => { if (_hasValue) { resolve(_value); } else if (hasConfig) { resolve(config.defaultValue); } else { reject(new EmptyError()); } }, }); }); } //# sourceMappingURL=lastValueFrom.js.map

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/Tobarrientos2/neo4j-mcpserver'

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