Skip to main content
Glama

Eureka Labo Task Management MCP Server

by mazemaze
config.ts1.08 kB
/** * Configuration loader for Eureka Labo MCP Server */ import dotenv from 'dotenv'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; // Load .env file const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); dotenv.config({ path: join(__dirname, '..', '.env') }); export interface Config { apiUrl: string; apiKey: string; workspacePath: string; } function loadConfig(): Config { const apiUrl = process.env.EUREKA_API_URL; const apiKey = process.env.EUREKA_API_KEY; // Use WORKSPACE_PATH from env if provided, otherwise use current directory // Claude Code automatically sets cwd to the project directory const workspacePath = process.env.WORKSPACE_PATH || process.cwd(); if (!apiUrl) { throw new Error('EUREKA_API_URL is required in .env file'); } if (!apiKey) { throw new Error('EUREKA_API_KEY is required in .env file'); } return { apiUrl, apiKey, workspacePath, }; } export const config = loadConfig(); export function getConfig(): Config { return config; }

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

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