We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/minipuft/claude-prompts-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
gate-reference-resolver.d.ts•1.18 kB
import type { GateDefinitionProvider } from '../core/gate-loader.js';
export type GateReferenceResolution = {
referenceType: 'registered';
gateId: string;
} | {
referenceType: 'inline';
criteria: string;
/** Fuzzy match suggestions if criteria looks like a mistyped gate ID */
suggestions?: string[];
};
/**
* Resolves inline gate references by checking whether they match
* canonical gate definitions or should remain inline criteria.
*
* Gate resolution is now fully dynamic - gates are identified by loading
* from the definitions directory via GateLoader. No hardcoded gate sets.
*
* Includes fuzzy matching to suggest similar gate IDs for typos.
*/
export declare class GateReferenceResolver {
private readonly gateLoader;
private readonly cache;
constructor(gateLoader: GateDefinitionProvider);
resolve(reference: string): Promise<GateReferenceResolution>;
private computeResolution;
/**
* Find similar gate IDs using fuzzy matching (Levenshtein distance)
* Returns suggestions for typos within edit distance of 3
*/
private findSuggestions;
private isGateSlug;
private buildCandidates;
}