Skip to main content
Glama
types.ts•1.45 kB
#!/usr/bin/env node import { TextContent } from "@modelcontextprotocol/sdk/types.js"; // Type definitions for better type safety export interface ToolRequest { params: { name: string; arguments?: Record<string, unknown>; }; } export interface ContentResponse { content: TextContent[]; } export interface SearchDocsArgs { query: string; limit?: number; } export interface CatalystComponentArgs { component_name: string; } export interface PatternArgs { category: string; pattern_name: string; } export interface StarterKitArgs { id: string; } export interface RecommendTemplateArgs { purpose?: string; colorPreference?: string; animations?: string; features?: string[]; complexity?: string; } export interface QuestionnaireArgs { answers: Record<string, string | string[]>; } export interface LibraryDocsArgs { library_name: string; } export interface AnalyzeSiteArgs { url: string; } export interface ValidationResult { isValid: boolean; sanitizedValue?: string; error?: string; } export interface CacheEntry { content: string; lastModified: number; } export interface ServerConfig { contentBasePath: string; nextjsDocsPath: string; tailwindDocsPath: string; catalystComponentsPath: string; patternsPath: string; templatesPath: string; libraryDocsPath: string; maxFileSize: number; largeFileSize: number; // For large documentation files (5MB) cacheTimeout: number; }

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/CaullenOmdahl/Nextjs-React-Tailwind-Assistant'

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