Skip to main content
Glama

Simple MCP Server

errorUtil.ts408 B
export namespace errorUtil { export type ErrMessage = string | { message?: string | undefined }; export const errToObj = (message?: ErrMessage): { message?: string | undefined } => typeof message === "string" ? { message } : message || {}; // biome-ignore lint: export const toString = (message?: ErrMessage): string | undefined => typeof message === "string" ? message : message?.message; }

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/shaleen-wonder-ent/simple-mcp-server'

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