Skip to main content
Glama

CTS MCP Server

by EricA1019
prompt_loader.d.ts1.05 kB
/** * PromptLoader * Loads and caches MCP resource prompts from JSON files */ import { Resource, ResourceContents } from '../types.js'; export declare class PromptLoader { private cache; /** * Load all prompts from a directory * @param dir - Directory path containing JSON prompt files * @returns Array of Resource objects */ loadPromptsFromDirectory(dir: string): Promise<Resource[]>; /** * Read prompt content by URI * @param uri - Resource URI * @returns Resource contents * @throws Error if URI not found */ readPromptContent(uri: string): Promise<ResourceContents>; /** * Validate prompt file structure * @param content - Parsed JSON content * @returns true if valid */ validatePromptStructure(content: unknown): boolean; /** * Get all cached URIs * @returns Array of cached resource URIs */ getCachedUris(): string[]; /** * Clear the cache */ clearCache(): void; } //# sourceMappingURL=prompt_loader.d.ts.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/EricA1019/CTS_MCP'

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