Repository navigation
feat: batch-categorize, tag income, name payees and edit plans from MCP - #60
Merged
Merged
Conversation
… payee names and plans Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e edits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An MCP client with the write grant still couldn't do the everyday cleanup: categorizing 33+ transactions meant 33 calls (each one recomputing every inference), it couldn't say whether a deposit was real income or money moving, name a payee, change the plan's envelopes or edit a recurrence's amount and date, and
create_category_rulesilently recategorized history.This finishes the write tools on top of #59. Every write tool still exists only for a token with the
spendle:writescope, which the person grants with Permitir alterações on/autorizar; no new scope. Read tools keep their names, paths and inputs; entries only gain apayeefield.update_transaction(changed){ entryIds: string[1..200], categoryId?, learnCategory?, note?: string|null, oneOff? }— unknown category or entry ids refuse the whole call before anything changes; categories go through a new atomicPOST /api/category-decisionscreate_category_rule(changed){ pattern, categoryId, matchMode?, direction?, applyToHistory?, dryRun? }— refuses a rule that would recategorize past movements unlessapplyToHistory: truefix_income_tag(new){ entryId, kind: 'income'|'movement', categoryId?, counterpartEntryId? }set_payee_alias(new){ entryId, name: string(≤80)|null }— names every movement with the same merchant signature; shown in/transacoesupdate_plan(new){ strategyId?, allocation?: { essential, lifestyle, investment, reserve } (bps, sum 10000), monthlyIncomeTargetCents?, reserveMonths? }update_recurrence(changed){ recurrenceId, active?, amountCents?, nextDate? }mark_transfer,set_budgetAlso fixes a crash when
PUT /api/planning/settingsgot a partial update.Not included:
add_manual_accountandadd_planned_expense(separate features; they'd double this PR). No tool deletes transactions or moves money. A forward-only rule isn't possible in this model (rules are a projection over history), hence theapplyToHistorygate.Testing
/transacoeson desktop and phone; without it, 17 read tools only.Created with Claude Opus 5.5 in Claude Code (T3 Code); reviewed by gpt-6.2-astra and gemini-4-neon.