Skip to main content
Glama
get-spec.ts417 B
import axios from 'axios'; import type { OpenAPIV3 } from 'openapi-types'; export async function getSpec(url: string) { let spec: OpenAPIV3.Document; try { const { data } = await axios.get(url); spec = data; } catch (error: any) { console.error( 'Failed to fetch OpenAPI spec:', error?.response.status, error?.response.statusText, ); process.exit(1); } return spec; }

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/MoralisWeb3/moralis-mcp-server'

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