Skip to main content
Glama

MCP Agent TypeScript Port

by waldzellai
promiseCallback.js532 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const PROMISE_SYMBOL = Symbol('promiseCallback'); function promiseCallback() { let resolve, reject; function callback(err, ...args) { if (err) return reject(err); resolve(args.length > 1 ? args : args[0]); } callback[PROMISE_SYMBOL] = new Promise((res, rej) => { resolve = res, reject = rej; }); return callback; } exports.promiseCallback = promiseCallback; exports.PROMISE_SYMBOL = PROMISE_SYMBOL;

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/waldzellai/mcp-agent-ts'

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