xero_status
Check the status of your Xero credentials and view available domains for connection. Ensures your setup is valid before proceeding with accounting operations.
Instructions
Show credentials status and available domains
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:226-239 (handler)The handler logic for the xero_status tool. Checks credentials status (checks for XERO_ACCESS_TOKEN env var) and returns a text response listing the available domains.
if (name === "xero_status") { const credStatus = process.env.XERO_ACCESS_TOKEN ? `Configured (tenant: ${process.env.XERO_TENANT_ID || "env-based"})` : "NOT CONFIGURED - Please set environment variables"; return { content: [ { type: "text", text: `Xero MCP Server Status\n\nCredentials: ${credStatus}\nAvailable domains: contacts, invoices, payments, accounts, reports\n\nAll tools are available at all times. Use xero_navigate to discover tools by domain.`, }, ], }; } - src/index.ts:151-158 (schema)The tool schema definition for xero_status. Defines the tool name, description, and empty input schema (no parameters required).
const statusTool: Tool = { name: "xero_status", description: "Show credentials status and available domains", inputSchema: { type: "object", properties: {}, }, }; - src/index.ts:195-198 (registration)Registration of xero_status in the ListTools handler. The statusTool is included in the tools list returned by the ListToolsRequestSchema handler, making it available to MCP clients.
server.setRequestHandler(ListToolsRequestSchema, async () => { const domainTools = getAllDomainTools(); return { tools: [navigateTool, statusTool, backTool, ...domainTools] }; });