@dizzlkheinz/ynab-mcpb 0.26.4 → 0.26.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/CLAUDE.md +1 -1
- package/dist/bundle/index.cjs +99 -98
- package/dist/server/resourceCacheInvalidation.d.ts +8 -0
- package/dist/server/resourceCacheInvalidation.js +25 -0
- package/dist/tools/accountTools.d.ts +3 -3
- package/dist/tools/accountTools.js +18 -10
- package/dist/tools/adapters.d.ts +1 -0
- package/dist/tools/adapters.js +6 -0
- package/dist/tools/categoryTools.d.ts +3 -3
- package/dist/tools/categoryTools.js +23 -14
- package/dist/tools/compareTransactions/index.d.ts +1 -1
- package/dist/tools/compareTransactions/index.js +5 -3
- package/dist/tools/exportTransactions.d.ts +1 -1
- package/dist/tools/exportTransactions.js +7 -5
- package/dist/tools/monthTools.d.ts +2 -2
- package/dist/tools/monthTools.js +8 -6
- package/dist/tools/payeeTools.d.ts +2 -2
- package/dist/tools/payeeTools.js +8 -6
- package/dist/tools/reconciliation/index.d.ts +1 -1
- package/dist/tools/reconciliation/index.js +12 -10
- package/dist/tools/transactionReadTools.js +11 -9
- package/dist/tools/transactionSchemas.d.ts +8 -8
- package/dist/tools/transactionSchemas.js +8 -8
- package/dist/tools/transactionUtils.js +8 -0
- package/dist/tools/transactionWriteTools.js +27 -21
- package/docs/reference/API.md +45 -45
- package/docs/technical/reconciliation-system-architecture.md +1 -1
- package/package.json +1 -1
- package/src/server/__tests__/toolRegistration.test.ts +39 -0
- package/src/server/resourceCacheInvalidation.ts +64 -0
- package/src/tools/__tests__/accountTools.test.ts +33 -3
- package/src/tools/__tests__/categoryTools.test.ts +38 -18
- package/src/tools/__tests__/monthTools.test.ts +9 -8
- package/src/tools/__tests__/payeeTools.test.ts +9 -8
- package/src/tools/__tests__/transactionSchemas.test.ts +58 -5
- package/src/tools/__tests__/transactionTools.test.ts +59 -49
- package/src/tools/accountTools.ts +22 -10
- package/src/tools/adapters.ts +15 -0
- package/src/tools/categoryTools.ts +28 -15
- package/src/tools/compareTransactions/index.ts +5 -3
- package/src/tools/exportTransactions.ts +7 -5
- package/src/tools/monthTools.ts +12 -6
- package/src/tools/payeeTools.ts +12 -6
- package/src/tools/reconciliation/__tests__/index.test.ts +11 -0
- package/src/tools/reconciliation/index.ts +16 -12
- package/src/tools/transactionReadTools.ts +15 -11
- package/src/tools/transactionSchemas.ts +8 -8
- package/src/tools/transactionUtils.ts +8 -0
- package/src/tools/transactionWriteTools.ts +37 -36
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.26.6] - 2026-04-03
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **`budget_id` now optional on all tool schemas** — All 28 tool input schemas now declare `budget_id` as optional, relying on the registry's `defaultArgumentResolver` to inject the default budget ID when omitted. Handlers use `requireResolvedBudgetId()` to narrow the type at runtime, providing a clear error if no default budget is configured.
|
|
15
|
+
- **New `requireResolvedBudgetId()` adapter** — Centralizes the budget ID narrowing pattern in `adapters.ts`, replacing ad-hoc checks across all tool handlers
|
|
16
|
+
|
|
17
|
+
## [0.26.5] - 2026-04-03
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **Resource cache invalidation on writes** — Write operations (`create_account`, `update_category`, `create_transaction`, `update_transaction`, `delete_transaction`, bulk creates/updates) now invalidate MCP resource caches (budgets, accounts, categories, months) in addition to tool-level caches, preventing stale resource reads after mutations
|
|
22
|
+
- **`auto_unclear_missing` default changed to `false`** — Previously defaulted to `true`, which could unexpectedly unclear cleared transactions during reconciliation; now requires explicit opt-in like all other write flags
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- **Reconciliation tool description** — Documents `auto_unclear_missing` parameter and clarifies the execute example to say "explicitly enable the write flags you want"
|
|
27
|
+
|
|
10
28
|
## [0.26.4] - 2026-04-02
|
|
11
29
|
|
|
12
30
|
### Fixed
|
package/CLAUDE.md
CHANGED
|
@@ -6,7 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|
|
6
6
|
|
|
7
7
|
This is a Model Context Protocol (MCP) server for YNAB (You Need A Budget) integration, enabling AI assistants to interact with YNAB budgets, accounts, transactions, and categories. The codebase uses TypeScript with a modular, service-oriented architecture.
|
|
8
8
|
|
|
9
|
-
**Current Version:** 0.26.
|
|
9
|
+
**Current Version:** 0.26.6
|
|
10
10
|
|
|
11
11
|
## Essential Commands
|
|
12
12
|
|