Skip to main content
Glama
helper.js530 B
const handleError = (errorData) => { return { content:[ { type: "text", text: `${errorData instanceof Error ? errorData.message : String(errorData)}` } ], isError:true } } const handleSuccess = (successData) => { return { content:[ { type: "text", text: JSON.stringify(successData) } ], isError:false, } } module.exports = {handleError, handleSuccess};

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/dddd-community/hexiaoyi-mcp-js'

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