We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mercurialsolo/counsel-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { z } from 'zod';
import dotenv from 'dotenv';
import path from 'path';
import { fileURLToPath } from 'url';
// Load .env from project root if it exists (mostly for dev)
const __dirname = process.cwd();
dotenv.config({ path: path.resolve(__dirname, '.env') });
const ConfigSchema = z.object({
COUNSEL_API_URL: z.string().default('https://counsel.getmason.dev'),
});
export const config = ConfigSchema.parse(process.env);