Skip to main content
Glama
fetcher.ts591 B
let baseUrl = 'https://api.superglue.ai/v1'; let apiKey = ''; export const configure = (config: { baseUrl?: string; apiKey: string }) => { if (config.baseUrl) baseUrl = config.baseUrl; apiKey = config.apiKey; }; export const customFetch = async <T>(url: string, options: RequestInit): Promise<T> => { const response = await fetch(`${baseUrl}${url}`, { ...options, headers: { ...options.headers, Authorization: `Bearer ${apiKey}`, }, }); const data = await response.json(); return { data, status: response.status, headers: response.headers } as T; };

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/superglue-ai/superglue'

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