We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { cache } from "react";
import "server-only";
import { getInfo } from "@/api/openapi-server/misc";
import { DefaultSettings, Settings, parseSettings } from "./settings";
const getSettingsCached = cache(async () => {
const { data } = await getInfo({
cache: "no-store",
});
return parseSettings(data);
});
export async function getSettings(): Promise<Settings> {
try {
const settings = await getSettingsCached();
return settings;
} catch (e) {
return DefaultSettings;
}
}