Skip to main content
Glama
XeroAPI

Xero MCP Server

Official
create-xero-tool.ts534 B
import { ToolCallback } from "@modelcontextprotocol/sdk/server/mcp.js"; import { ToolDefinition } from "../types/tool-definition.js"; import { ZodRawShapeCompat } from "@modelcontextprotocol/sdk/server/zod-compat.js"; export const CreateXeroTool = <Args extends ZodRawShapeCompat>( name: string, description: string, schema: Args, handler: ToolCallback<Args>, ): (() => ToolDefinition<ZodRawShapeCompat>) => () => ({ name: name, description: description, schema: schema, handler: handler, });

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/XeroAPI/xero-mcp-server'

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