class

Finfry::MCP

Inherits Reference < Object

A minimal MCP (Model Context Protocol) server over stdio, so any MCP client (Claude Code, Claude Desktop, …) can read and update the ledger using finfry's own commands as tools. JSON-RPC 2.0, one message per line.

Approval is the client's job (MCP clients gate tool calls), so writes execute immediately here — each still records its own undoable changeset, and the account policy + balance guards still apply. delete and accounts policy are not exposed (they're absent from the agent tool registry).

Constants

PROTOCOL_VERSION = "2025-06-18"

Constructors

new(store : Store, input : IO = STDIN, output : IO = STDOUT)
Source

Instance methods