Skip to main content
Glama
deferred.ts564 B
export class Deferred<T> { private _promise: Promise<T>; private _resolve: (response: T | PromiseLike<T>) => void = (_) => undefined; private _reject: (reason?: unknown) => void = (_) => undefined; constructor() { this._promise = new Promise<T>((resolve, reject) => { this._resolve = resolve; this._reject = reject; }); } get promise(): Promise<T> { return this._promise; } resolve(response: T | PromiseLike<T>): void { this._resolve(response); } reject(reason?: unknown): void { this._reject(reason); } }

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/datalabs89/tableau-mcp'

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