ofw-mcp 2.21.0 → 2.23.0
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +50 -1
- package/dist/bundle.js +942 -349
- package/dist/index.js +2 -1
- package/dist/timestamps.js +19 -0
- package/dist/tools/_confirm.js +17 -9
- package/dist/tools/_shared.js +6 -4
- package/dist/tools/attachments.js +21 -1
- package/dist/tools/calendar-ics.js +250 -0
- package/dist/tools/calendar.js +122 -10
- package/dist/tools/expense-reimbursement.js +117 -0
- package/dist/tools/expenses.js +3 -0
- package/dist/tools/messages.js +4 -18
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/server.json +3 -3
- package/skills/ofw/SKILL.md +24 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "OurFamilyWizard tools for Claude Code",
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.23.0"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"displayName": "OurFamilyWizard",
|
|
15
15
|
"source": "./",
|
|
16
16
|
"description": "OurFamilyWizard co-parenting tools for Claude — messages, calendar, expenses, and journal via MCP",
|
|
17
|
-
"version": "2.
|
|
17
|
+
"version": "2.23.0",
|
|
18
18
|
"author": {
|
|
19
19
|
"name": "Chris Chall"
|
|
20
20
|
},
|
package/README.md
CHANGED
|
@@ -145,7 +145,8 @@ Read-only tools run automatically. Writes that reach your co-parent or the court
|
|
|
145
145
|
| `ofw_save_draft` | Create or update a draft | Confirm | `drafts` |
|
|
146
146
|
| `ofw_delete_draft` | Delete a draft | Confirm | `drafts` |
|
|
147
147
|
| `ofw_upload_attachment` | Upload a local file from the upload directory (`OFW_UPLOAD_DIR`, default `~/Downloads/ofw-mcp`) to My Files; returns a fileId to attach via `ofw_send_message`/`ofw_save_draft`. Sharing (`shareClass: SHARED`) needs mode `all` | Auto (PRIVATE) / Confirm (server) (SHARED) | `drafts` |
|
|
148
|
-
| `ofw_list_events` | Calendar events in a date range | Auto | any |
|
|
148
|
+
| `ofw_list_events` | Calendar events and custody handoffs in a date range; filter with `types`, read in a per-call `timeZone`, or get iCalendar text with `format: "ics"` | Auto | any |
|
|
149
|
+
| `ofw_save_calendar_ics` | Save a date range as an `.ics` file — custody schedule included, which OFW's own export leaves out. A private, expiring download link on a hosted connector; a file in the attachments directory locally | Auto | any |
|
|
149
150
|
| `ofw_create_event` | Create a calendar event | Confirm (server) unless private | `all` (or `drafts` + `OFW_CALENDAR_WRITES`) |
|
|
150
151
|
| `ofw_update_event` | Update a calendar event | Confirm (server) if shared | `all` (or `drafts` + `OFW_CALENDAR_WRITES`) |
|
|
151
152
|
| `ofw_delete_event` | Delete a calendar event | Confirm (server) if shared | `all` (or `drafts` + `OFW_CALENDAR_WRITES`) |
|
|
@@ -154,6 +155,7 @@ Read-only tools run automatically. Writes that reach your co-parent or the court
|
|
|
154
155
|
| `ofw_list_expense_categories` | Expense category ids and split metadata | Auto | any |
|
|
155
156
|
| `ofw_upload_expense_pdf` | Upload a receipt PDF to My Files for an expense (SHARED — the co-parent sees it in My Files at once, even on a private expense) | Confirm (server) | `all` |
|
|
156
157
|
| `ofw_create_expense` | Log a new expense; supports private entries and one receipt PDF | Confirm (server) | `all` |
|
|
158
|
+
| `ofw_mark_expense_reimbursed` | Irreversibly record full remaining external reimbursement; no transfer or partial payment; unavailable in upload-only mode | Confirm (server) | `all` |
|
|
157
159
|
| `ofw_update_expense` | Change an expense, e.g. publish a private one. Pass only the fields to change; it reads the expense first so the rest are kept | Confirm (server) | `all` |
|
|
158
160
|
| `ofw_list_journal_entries` | Journal entries | Auto | any |
|
|
159
161
|
| `ofw_create_journal_entry` | Create a journal entry | Confirm | `all` |
|
|
@@ -225,6 +227,53 @@ A false negative ("no, that was never sent") is more dangerous than a refusal, b
|
|
|
225
227
|
|
|
226
228
|
Every list read also carries an explicit **`complete`** boolean describing the *result set* — "this is every matching item on OurFamilyWizard as of `asOf`" — with a `completeNote` naming what is missing when it is false. Check it before stating a count.
|
|
227
229
|
|
|
230
|
+
### Recording an external expense reimbursement
|
|
231
|
+
|
|
232
|
+
`ofw_mark_expense_reimbursed` records money **already reimbursed outside OFW**. It
|
|
233
|
+
never transfers money, calls `/payments`, or initiates a bank action. OFW warns
|
|
234
|
+
that marking reimbursed **cannot be undone**. The tool is registered only in
|
|
235
|
+
`OFW_WRITE_MODE=all`, including expense-only mode, but **never** in
|
|
236
|
+
`OFW_EXPENSE_UPLOAD_ONLY=true`; that restricted roster is unchanged.
|
|
237
|
+
|
|
238
|
+
Pass an expense id and `expectedRemainingAmount` in currency units, positive and
|
|
239
|
+
exact to cents. For example, a synthetic expense totaling `96.99` with
|
|
240
|
+
`totalOwed=48.50` and `leftToPay=48.50` needs
|
|
241
|
+
`{ "expenseId": 81001, "expectedRemainingAmount": 48.50 }` — **not** `96.99` and
|
|
242
|
+
not a partial amount. The first call previews the title, author/payer user ids,
|
|
243
|
+
split/category, children, privacy, total, owed amount, remaining balance and
|
|
244
|
+
current status. Verify the parties and that the external reimbursement actually
|
|
245
|
+
happened, then explicitly approve the preview before returning its `confirmToken`
|
|
246
|
+
with the same arguments (or approve the supported client's confirmation prompt).
|
|
247
|
+
|
|
248
|
+
Only `OPEN`, `APPROVED`, or `PARTIAL` with `subStatus=NONE` and a positive balance
|
|
249
|
+
are supported. Missing/malformed detail, unknown or pending status, inconsistent
|
|
250
|
+
balances, id mismatch, or amount mismatch refuses without writing. A record
|
|
251
|
+
already `PAID` with zero remaining balance returns `ALREADY_PAID` without a write,
|
|
252
|
+
regardless of its payment method; this does not relabel an electronic payment.
|
|
253
|
+
|
|
254
|
+
Confirmation binds the **entire detail record**. A fresh detail GET immediately
|
|
255
|
+
before the write rejects any drift, including receipt or metadata edits. The
|
|
256
|
+
only mutation is `PUT /pub/v2/expense/expenses/{id}/status` with
|
|
257
|
+
`{ "status": "MARKED_REIMBURSED" }`. A subsequent detail GET must show `PAID`,
|
|
258
|
+
`subStatus=NONE`, zero remaining balance, `paymentType="Marked reimbursed"`, and
|
|
259
|
+
unchanged fields outside the expected status/balance transition before success
|
|
260
|
+
is reported. Known derived balance-display fields may change normally; numeric
|
|
261
|
+
purchase/owed totals and other protected fields must remain unchanged. The public
|
|
262
|
+
web application's status request contract and the resulting status transition
|
|
263
|
+
were manually accepted against the real provider with one user-authorized record.
|
|
264
|
+
Automated tests remain mock-only and contain synthetic records. Unexpected
|
|
265
|
+
backend changes outside the supported transition still fail conservatively
|
|
266
|
+
rather than claim verification.
|
|
267
|
+
|
|
268
|
+
These are best-effort preconditions, **not an atomic conditional update**: OFW
|
|
269
|
+
exposes no conditional status-write contract here, so a concurrent edit after the
|
|
270
|
+
last GET cannot be prevented. An ambiguous mutation failure (timeout/network/5xx)
|
|
271
|
+
or failed/mismatched readback returns `EXPENSE_REIMBURSEMENT_UNCONFIRMED` with
|
|
272
|
+
`mayHaveLanded=true`. **Do not automatically replay or roll back.** Inspect the
|
|
273
|
+
expense in the Expenses log on ourfamilywizard.com and reconcile its status
|
|
274
|
+
before any new attempt. Definitive OFW rejections remain errors. No live account
|
|
275
|
+
or private family/financial data is used in the automated tests.
|
|
276
|
+
|
|
228
277
|
### Server-side confirmation (`MCP_CONFIRM_MODE`)
|
|
229
278
|
|
|
230
279
|
The writes marked **Confirm (server)** above — sending a message, logging an expense, creating/updating/deleting a *shared* calendar event, and uploading a file as `SHARED` — are confirmed by this server, not left to the host. A client that can show a confirmation prompt (Claude Code) gets one, with a preview of exactly what would happen, unless `MCP_CONFIRM_ELICITATION=off`. A client that cannot (claude.ai, Claude Desktop) gets two steps: the first call writes **nothing** and returns that preview plus a `confirmToken`, and only a repeat call with the same arguments and that token proceeds.
|