KosmoKrator

finance

Xero MCP Gateway for AI Agents

Expose Xero tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

7 functions 6 read 1 write Manual OAuth token auth

Xero MCP Gateway

Expose Xero to MCP clients with `kosmokrator mcp:serve --integration=xero`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.

curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
kosmokrator mcp:gateway:install --integration=xero --write=deny --json
{
  "mcpServers": {
    "kosmokrator-xero": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=xero",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

kosmokrator mcp:serve --integration=xero --write=deny

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__xero__xero_create_invoice xero.xero_create_invoice Write write
integration__xero__xero_get_contact xero.xero_get_contact Read read
integration__xero__xero_get_current_user xero.xero_get_current_user Read read
integration__xero__xero_get_invoice xero.xero_get_invoice Read read
integration__xero__xero_list_accounts xero.xero_list_accounts Read read
integration__xero__xero_list_contacts xero.xero_list_contacts Read read
integration__xero__xero_list_invoices xero.xero_list_invoices Read read

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.