Skip to main content
Glama

Xero MCP Server

ErrorMiddleware.ts359 B
import { IRequestMiddleware } from "./IRequestMiddleware.js"; export const ErrorMiddleware: IRequestMiddleware = async (request, next) => { try { return await next(request); } catch (error: any) { return { content: [ { type: "text", text: `Unexpected error occurred: ${error}`, }, ], }; } };

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/john-zhang-dev/xero-mcp'

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