Skip to main content
Glama
validateTokenKey.jsโ€ข381 B
import { TokenProviderError } from "@smithy/property-provider"; import { REFRESH_MESSAGE } from "./constants"; export const validateTokenKey = (key, value, forRefresh = false) => { if (typeof value === "undefined") { throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false); } };

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/consigcody94/office-whisperer'

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