Skip to main content
Glama
types.ts1.29 kB
/** * Code-MCP Type Definitions * Following TypeScript best practices - strong typing */ // Language registry types export interface Language { id: string; name: string; paradigms: string[]; extensions: string[]; type: string; } // Database registry types export interface Database { id: string; name: string; type: string; category: string; features: string[]; } // Framework registry types export interface Framework { id: string; name: string; language: string; type: string; features: string[]; } // Tool definition types export interface ToolSchema { name: string; description: string; inputSchema: any; } export interface ToolHandler { (args: any): Promise<{ content: Array<{ type: string; text: string }> }> | { content: Array<{ type: string; text: string }> }; } export interface RegisteredTool { schema: ToolSchema; handler: ToolHandler; } // Resource types export interface Resource { uri: string; name: string; mimeType: string; description: string; } // Prompt types export interface Prompt { name: string; description: string; arguments?: Array<{ name: string; description: string; required?: boolean; }>; template: string; }

Latest Blog Posts

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/millsydotdev/Code-MCP'

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