Skip to main content
Glama

1313

by chatmcp
openai.ts288 B
import OpenAI, { ClientOptions } from "openai"; export function getOpenAIClient(model?: string): OpenAI { const options: ClientOptions = { baseURL: process.env.OPENAI_BASE_URL, apiKey: process.env.OPENAI_API_KEY, }; const openai = new OpenAI(options); return openai; }

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/chatmcp/mcpso'

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