Skip to main content
Glama

MCP Files

by OrionPotter
env.tsโ€ข693 B
const env = { PORT: readNumber('PORT', 4657), TRANSPORT: readString('TRANSPORT', 'stdio'), DEBUG: readBoolean('DEBUG', false), OVERRIDE_S_R: readBoolean('OVERRIDE_S_R', false), // Used internally by the developer to collect mismatches on its local machine COLLECT_MISMATCHES: readBoolean('COLLECT_MISMATCHES', false), // Set by cli.ts CLI: false, } function readString(key: string, def: any): string { return process.env[key] ?? String(def) } function readNumber(key: string, def: number): number { return Number.parseFloat(readString(key, def)) } function readBoolean(key: string, def: boolean): boolean { return readString(key, def) === 'true' } export default env

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/OrionPotter/flesler-mcp-tools'

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