Skip to main content
Glama

Nexar MCP Server

by phuhduong
config.ts723 B
/** * Configuration management */ import dotenv from 'dotenv'; dotenv.config(); export interface Config { clientId: string; clientSecret: string; port: number; isProduction: boolean; } export function loadConfig(): Config { const clientId = process.env.NEXAR_CLIENT_ID; const clientSecret = process.env.NEXAR_CLIENT_SECRET; if (!clientId) { throw new Error('NEXAR_CLIENT_ID environment variable is required'); } if (!clientSecret) { throw new Error('NEXAR_CLIENT_SECRET environment variable is required'); } const port = parseInt(process.env.PORT || '8080', 10); const isProduction = process.env.NODE_ENV === 'production'; return { clientId, clientSecret, port, isProduction }; }

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/phuhduong/nexar-mcp'

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