AI assistants (MCP)
Connect VS Code (GitHub Copilot)
Use LedgerOne from GitHub Copilot's agent mode in Visual Studio Code.
Add the server
Run MCP: Add Server from the Command Palette, choose HTTP and paste the URL, or add it to .vscode/mcp.json (or your user mcp.json):
{
"servers": {
"ledgerone": {
"type": "http",
"url": "https://finance.psycodelabs.lk/api/mcp"
}
}
}Start the server from the file or the MCP view; VS Code opens the LedgerOne consent page for you to Allow.
With a personal access token
VS Code can ask for the token once and store it securely, so it's never written in the file:
{
"inputs": [
{
"type": "promptString",
"id": "ledgerone-token",
"description": "LedgerOne personal access token",
"password": true
}
],
"servers": {
"ledgerone": {
"type": "http",
"url": "https://finance.psycodelabs.lk/api/mcp",
"headers": {
"Authorization": "Bearer ${input:ledgerone-token}"
}
}
}
}