Skip to main content
Glama
const.ts779 B
// Ensure these are set in the environment if (!process.env.KERNEL_CLI_PROD_CLIENT_ID) { throw new Error("KERNEL_CLI_PROD_CLIENT_ID is not set"); } if (!process.env.KERNEL_CLI_STAGING_CLIENT_ID) { throw new Error("KERNEL_CLI_STAGING_CLIENT_ID is not set"); } if (!process.env.KERNEL_CLI_DEV_CLIENT_ID) { throw new Error("KERNEL_CLI_DEV_CLIENT_ID is not set"); } // Shared client IDs that use JWT round-trip instead of Redis for org persistence export const SHARED_CLIENT_IDS = [ process.env.KERNEL_CLI_PROD_CLIENT_ID, process.env.KERNEL_CLI_STAGING_CLIENT_ID, process.env.KERNEL_CLI_DEV_CLIENT_ID, ].filter(Boolean) as string[]; // Sliding TTL for refresh_token→org_id mapping (defaults to 30 days) export const REFRESH_TOKEN_ORG_TTL_SECONDS = 60 * 60 * 24 * 30;

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/onkernel/kernel-mcp-server'

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