Skip to main content
Glama
api.ts678 B
export const SUPAVEC_BASE_URL = "https://api.supavec.com"; export async function makeSupavecRequest<T>( url: string, body: object, apiKey: string ): Promise<T | { error: string }> { try { const response = await fetch(url, { method: "POST", headers: { authorization: apiKey, "Content-Type": "application/json", }, body: JSON.stringify(body), }); if (!response.ok) { return { error: `Failed to fetch data: status ${response.status}`, }; } const data = await response.json(); return data as T; } catch (error) { return { error: `Failed to fetch data: ${error}`, }; } }

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

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