Skip to main content
Glama
logStack.ts383 B
import { ANSIColors, colorize } from '../logger'; export const logStack = ( message: string, options: { limit: number } = { limit: 50 } ) => { Error.stackTraceLimit = options.limit; try { throw new Error('test'); } catch (error) { console.log(colorize(message, ANSIColors.YELLOW)); console.log(colorize((error as Error).stack ?? '', ANSIColors.BLUE)); } };

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/aymericzip/intlayer'

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