Docs menu

AI assistants (MCP)

Connect Claude Code

Add LedgerOne to Claude Code with one command, signing in with OAuth or a personal access token.

Add the server

bash
claude mcp add --transport http ledgerone https://finance.psycodelabs.lk/api/mcp

Then start Claude Code, run /mcp, choose ledgerone and Authenticate. Your browser opens LedgerOne's consent page; press Allow.

With a personal access token

For servers, CI or anywhere a browser isn't available, pass a token as a header instead:

bash
claude mcp add --transport http ledgerone https://finance.psycodelabs.lk/api/mcp \
  --header "Authorization: Bearer $LEDGERONE_TOKEN"

Add --scope user to make it available in every project, or --scope project to share it with your team through .mcp.json (keep tokens out of shared files).

  • Log our AWS invoice from this email as an expense under Software.
  • Generate a sales report for Q3 grouped by customer and save it as sales-q3.md.