Skip to main content
Glama
config.spec.ts451 B
import { describe, it, expect } from 'vitest'; import { loadConfig } from '../src/config/index'; describe('config loader', () => { it('prefers env over file values', async () => { process.env.GITLAB_URL = 'https://env.gitlab'; process.env.GITLAB_TOKEN = 'env-token'; const cfg = await loadConfig('/does/not/exist.json'); expect(cfg.gitlab?.url).toBe('https://env.gitlab'); expect(cfg.gitlab?.token).toBe('env-token'); }); });

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/ashabbir/multi-mcp'

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