PolyAccounts
Evaluation resources

PolyAccounts · Developer evaluation

Connect an AI agent to PolyAccounts

Try a no-account synthetic MCP demo, then connect to an approved workspace using a company-scoped credential. No database connection or source checkout needed.

Try the integration before creating an account

The public agent kit includes an invented demonstration company, a local MCP server, an expense-review example and reusable review workflows. It uses Node.js 20 or later and has no runtime dependencies. The demo needs no login, database, API key or network connection after installation.

Download the demo desktop extension for an MCPB-compatible client, or use the pinned package below with a client that supports stdio MCP. The demo is intentionally read-only. Full company write access is provided by the separate hosted connector.

npx --yes --package=https://github.com/andrewblount/polyaccounts-agent-kit/releases/download/v1.0.2/polyaccounts-agent-kit-1.0.2.tgz polyaccounts-demo

Connect to an approved company workspace

An administrator opens Settings, then AI agents, and issues a company-scoped credential. Store the credential in your client’s protected secret configuration or in a local token file. Never paste a credential into a prompt, issue, public repository or support message.

Install the hosted connector extension and enter that credential in its sensitive configuration field. Or download the standalone connector, set POLYACCOUNTS_TOKEN_FILE to your protected token file, and run it with Node.js. No source checkout or direct database access is required.

The connection uses a local stdio bridge to the hosted HTTPS API at polyaccounts.com. It is not a remote MCP URL and does not yet offer an OAuth connection flow. Clients that accept only remote MCP servers cannot connect directly to this bridge.

{
  "mcpServers": {
    "polyaccounts": {
      "command": "node",
      "args": ["/absolute/path/polyaccounts-mcp.mjs"],
      "env": { "POLYACCOUNTS_TOKEN_FILE": "/absolute/path/agent-token" }
    }
  }
}

Verify a useful connection

Initialize MCP and request tools/list. Call accounting_context to confirm the authorized company, then trial_balance and ledger_entries for an explicit period. Keep exact decimal strings and follow all pagination cursors using the same filters.

A successful accounting tool response verifies the connection. Listing tool metadata alone does not. Before attempting a write, inspect the tool schema and supported operations. The hosted catalog documents create, update, soft-delete and accounting workflows.

Resolve common connection problems

For an authentication error, check that the credential is current, belongs to the intended company and has not been revoked. An administrator can issue a replacement. Do not work around company boundaries by using an operator database connection.

For an uncertain write response, inspect the receipt and retry only with the same idempotency key. A revision conflict means the record changed since you read it. Retrieve the current record and reconsider the change. A period lock or payment restriction requires the documented accounting workflow.