Skip to main content
Glama

Xano MCP Server

by SarimSiddd
config.ts1 kB
import dotenv from "dotenv"; import path from "path"; import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); dotenv.config({ path: path.resolve(__dirname, "../.env") }); export interface Config { xano: { apiKey: string; apiUrl: string; timeout: number; }; env: string; } function validateEnv(envVar: string): string { const value = process.env[envVar]; if (!value) { throw new Error(`Missing required environment variable: ${envVar}`); } return value; } const config: Config = { xano: { apiKey: validateEnv("XANO_API_KEY"), apiUrl: validateEnv("XANO_API_URL"), timeout: parseInt(process.env.API_TIMEOUT || "10000", 10), }, env: process.env.NODE_ENV || "development", }; export default Object.freeze(config); export function isProduction(): boolean { return config.env == "production"; } export function isDeveloper(): boolean { return config.env == "development"; }

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/SarimSiddd/xano_mcp'

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