We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { HeadersOptions } from "openapi-fetch";
/**
* A utility function that simplifies the headers for passing to other clients
*/
export function toObjectHeaders(
headers: HeadersOptions
): Record<string, string> {
if (Array.isArray(headers)) {
return Object.fromEntries(headers);
}
const objectHeaders: Record<string, string> = {};
for (const [key, value] of Object.entries(headers)) {
if (value !== null && value !== undefined) {
objectHeaders[key] = Array.isArray(value)
? value.join(", ")
: String(value);
}
}
return objectHeaders;
}