MCPVault

hledger_rewrite

MCP tool from Hledger MCP by iiAtlas

runs hledger rewrite on a temporary copy, letting you specify one or more addPostings instructions for matching transactions. Use dryRun for a diff-only preview or diff: true to include the patch output alongside the applied change.

How to use it

hledger_rewrite is exposed by the Hledger MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the hledger_rewrite tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Hledger MCP

$npx @iiatlas/hledger-mcp /path/to/your/master.journal
FULL HLEDGER MCP LISTING

Other tools in Hledger MCP (8)