Skip to content

Conversation

@stephendolan
Copy link
Owner

Summary

  • Adds categories update CLI command to update category name, note, group, or goal target
  • Adds corresponding update_category MCP tool for agent access
  • Includes input validation (required fields, empty name check) and milliunit conversion for goal targets

Test plan

  • bun run typecheck passes
  • bun test passes (20 tests)
  • bun run lint passes (0 errors/warnings)
  • Manual: ynab categories update <id> --name "New Name" updates category name
  • Manual: ynab categories update <id> --note "" clears category note
  • Manual: ynab categories update <id> --goal-target 500 sets goal target

🤖 Generated with Claude Code

Juan Carlos Orrego and others added 3 commits January 28, 2026 19:50
- Add updateCategory method to API client
- Add 'categories update' command with options for name, note, category group, and goal target
- Update README with new command documentation
- Support updating category name, note, moving to different group, and modifying goal target
- Amounts are specified in dollars and converted to milliunits automatically
- Fix validation to use !== undefined checks instead of falsy checks
- Reject empty/whitespace category names instead of converting to null
- Update README to show optional flags with brackets
Add missing update_category MCP tool, fix categoryGroupId guard
to use strict undefined check, improve option descriptions, and
remove redundant comments and validation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@stephendolan stephendolan merged commit d45dffd into main Jan 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants