Skip to main content
Glama
errors.spec.ts451 B
import { describe, it, expect } from 'vitest'; import { toMcpError } from '../src/lib/errors'; describe('error sanitization', () => { it('redacts tokens from messages', () => { process.env.GITLAB_TOKEN = 'secret123'; const err = new Error('Failure with secret123 in message'); const mapped = toMcpError(err); expect(mapped.message.includes('secret123')).toBe(false); expect(mapped.message.includes('***')).toBe(true); }); });

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