Skip to main content
Glama
oauthFactory.ts408 B
export function makeToken(overrides?: Partial<{ access_token: string; expires_in: number; scope: string | string[] }>) { const scope = overrides?.scope ?? ['openid'] return { access_token: overrides?.access_token ?? `at_${Math.random().toString(36).slice(2)}`, token_type: 'bearer', expires_in: overrides?.expires_in ?? 3600, scope: Array.isArray(scope) ? scope.join(' ') : scope, } }

Latest Blog Posts

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/Jakedismo/master-mcp-server'

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