Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2026 Changes in this version + type Options struct + APIKey string + AllowWrites bool + Version string + type Server struct + func New(service Service, options Options) *Server + func (s *Server) Protocol() *mcp.Server + type Service interface + CommitInflightTransaction func(ctx context.Context, transactionID string, amount *big.Int) (*model.Transaction, error) + CreateBalance func(ctx context.Context, balance model.Balance) (model.Balance, error) + CreateBulkTransactions func(ctx context.Context, request *model.BulkTransactionRequest) (*model.BulkTransactionResult, error) + CreateLedger func(ledger model.Ledger) (model.Ledger, error) + GetAllBalances func(ctx context.Context, limit, offset int) ([]model.Balance, error) + GetAllLedgers func(limit, offset int) ([]model.Ledger, error) + GetAllTransactions func(limit, offset int) ([]model.Transaction, error) + GetBalanceAtTime func(ctx context.Context, balanceID string, targetTime time.Time, fromSource bool) (*model.Balance, error) + GetBalanceByID func(ctx context.Context, id string, include []string, withQueued bool) (*model.Balance, error) + GetBalanceByIndicator func(ctx context.Context, indicator, currency string) (*model.Balance, error) + GetBalanceLineage func(ctx context.Context, balanceID string) (*ledgerforge.BalanceLineage, error) + GetLedgerByID func(id string) (*model.Ledger, error) + GetTransaction func(ctx context.Context, id string) (*model.Transaction, error) + GetTransactionByRef func(ctx context.Context, reference string) (model.Transaction, error) + GetTransactionLineage func(ctx context.Context, transactionID string) (*ledgerforge.TransactionLineage, error) + QueueTransaction func(ctx context.Context, transaction *model.Transaction) (*model.Transaction, error) + RefundTransaction func(ctx context.Context, transactionID string, skipQueue bool) (*model.Transaction, error) + VoidInflightTransaction func(ctx context.Context, transactionID string) (*model.Transaction, error)