Skip to main content
Glama
systempromptio

SystemPrompt Coding Agent

Official
check-env.js1.09 kB
#!/usr/bin/env node import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const envPath = path.join(__dirname, '..', '.env'); // Check if .env file exists if (!fs.existsSync(envPath)) { console.error('❌ Error: .env file not found in e2e-test directory'); console.error('Please create e2e-test/.env with your configuration'); process.exit(1); } // Read and parse .env file const envContent = fs.readFileSync(envPath, 'utf-8'); const envVars = {}; envContent.split('\n').forEach(line => { const trimmed = line.trim(); if (trimmed && !trimmed.startsWith('#')) { const [key, ...valueParts] = trimmed.split('='); if (key) { envVars[key.trim()] = valueParts.join('=').trim(); } } }); console.log('✅ .env file found and loaded'); // Optional: Set MCP_BASE_URL if provided if (envVars.MCP_BASE_URL) { console.log(`✅ MCP_BASE_URL set to: ${envVars.MCP_BASE_URL}`); } else { console.log('ℹ️ MCP_BASE_URL not set, will use default: http://localhost:3000'); }

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/systempromptio/systemprompt-code-orchestrator'

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