Skip to main content
Glama
types.ts1.15 kB
// Using any types for OpenAPI to avoid dependency issues export interface ServerConfig { specsPath: string; port?: number; transportType?: 'stdio' | 'httpStream'; } export interface AuthConfig { [apiName: string]: { type: 'bearer' | 'apiKey' | 'basic'; token?: string; username?: string; password?: string; headerName?: string; }; } export interface ParsedSpec { apiName: string; filePath: string; spec: any; tools: GeneratedTool[]; } export interface GeneratedTool { name: string; description: string; operationId?: string; method: string; path: string; parameters: ToolParameter[]; requestBody?: any; responses: any; security?: any[]; baseUrl: string; } export interface ToolParameter { name: string; in: 'path' | 'query' | 'header' | 'cookie'; required: boolean; schema: any; description?: string; } export interface ToolExecutionContext { apiName: string; tool: GeneratedTool; authConfig?: AuthConfig[string]; } export interface RequestConfig { url: string; method: string; headers: Record<string, string>; params?: Record<string, any>; data?: any; }

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/TBosak/specbridge'

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