Skip to main content
Glama
client.ts750 B
import { sheets_v4 } from "@googleapis/sheets" import { createGoogleAuth } from "./config.ts" let _auth: any = null let _googleSheets: sheets_v4.Sheets | null = null export function getGoogleSheetsClient() { if (!_googleSheets) { _auth = createGoogleAuth() _googleSheets = new sheets_v4.Sheets({ auth: _auth }) } return _googleSheets } // For backward compatibility export const googleSheets = new Proxy({} as sheets_v4.Sheets, { get(target, prop) { return getGoogleSheetsClient()[prop as keyof sheets_v4.Sheets] } }) export function getAuth() { if (!_auth) { _auth = createGoogleAuth() } return _auth } export const auth = new Proxy({} as any, { get(target, prop) { return getAuth()[prop as string] } })

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/itsregularjohn/mcps'

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