AI assistants (MCP)
Connect Cursor
Add LedgerOne to Cursor's agent through mcp.json.
Add the server
Open Cursor Settings → MCP and add a new server, or edit ~/.cursor/mcp.json (all projects) directly:
{
"mcpServers": {
"ledgerone": {
"url": "https://finance.psycodelabs.lk/api/mcp"
}
}
}Cursor detects that LedgerOne needs sign-in and opens the consent page in your browser. Press Allow.
With a personal access token
{
"mcpServers": {
"ledgerone": {
"url": "https://finance.psycodelabs.lk/api/mcp",
"headers": {
"Authorization": "Bearer ${env:LEDGERONE_TOKEN}"
}
}
}
}