Skip to main content
Glama
getSSOTokenFromFile.jsโ€ข418 B
import { readFile } from "fs/promises"; import { getSSOTokenFilepath } from "./getSSOTokenFilepath"; export const tokenIntercept = {}; export const getSSOTokenFromFile = async (id) => { if (tokenIntercept[id]) { return tokenIntercept[id]; } const ssoTokenFilepath = getSSOTokenFilepath(id); const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); return JSON.parse(ssoTokenText); };

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