ofw-mcp 2.26.1 → 2.27.1

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.
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "OurFamilyWizard tools for Claude Code",
9
- "version": "2.26.1"
9
+ "version": "2.27.1"
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.26.1",
17
+ "version": "2.27.1",
18
18
  "author": {
19
19
  "name": "Chris Chall"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ofw",
3
3
  "displayName": "OurFamilyWizard",
4
- "version": "2.26.1",
4
+ "version": "2.27.1",
5
5
  "description": "OurFamilyWizard co-parenting tools for Claude — messages, calendar, expenses, and journal via MCP",
6
6
  "author": {
7
7
  "name": "Chris Chall"
package/README.md CHANGED
@@ -139,12 +139,12 @@ Read-only tools run automatically. Writes that reach your co-parent or the court
139
139
  | `ofw_get_unread_sent` | Sent messages a recipient hasn't read yet (from local cache) | Auto | any |
140
140
  | `ofw_check_freshness` | Cheap live check that the cache still matches OFW — per id, whether it is still a `draft` or was `sent`/`deleted`, without a full sync | Auto | any |
141
141
  | `ofw_status` | **One live call for "where does everything stand?"** — the full verified draft inventory, and the current state of any ids or draft keys | Auto | any |
142
- | `ofw_download_attachment` | Download a message attachment to disk, or inline as extracted content / bytes | Auto | any |
142
+ | `ofw_download_attachment` | Download a message attachment to disk, inline as extracted content / bytes, or (hosted) as a private expiring link | Auto | any |
143
143
  | `ofw_send_message` | Send a message | Confirm (server) | `all` |
144
144
  | `ofw_list_drafts` | Draft messages | Auto | any |
145
145
  | `ofw_save_draft` | Create or update a draft | Confirm | `drafts` |
146
146
  | `ofw_delete_draft` | Delete a draft | Confirm | `drafts` |
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` |
147
+ | `ofw_upload_attachment` | Upload files to My Files — from a hosted session via signed upload slots (`uploadSlots` → PUT → `blobKeys`) or base64 `inline`; locally from the upload directory (`path`). Returns fileIds to attach via `ofw_send_message`/`ofw_save_draft` (which can also take `inlineAttachments`/`blobKeys` directly). Sharing (`shareClass: SHARED`) needs mode `all` | Auto (PRIVATE) / Confirm (server) (SHARED) | `drafts` |
148
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
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 |
150
150
  | `ofw_create_event` | Create a calendar event | Confirm (server) unless private | `all` (or `drafts` + `OFW_CALENDAR_WRITES`) |
@@ -160,6 +160,49 @@ Read-only tools run automatically. Writes that reach your co-parent or the court
160
160
  | `ofw_list_journal_entries` | Journal entries | Auto | any |
161
161
  | `ofw_create_journal_entry` | Create a journal entry | Confirm | `all` |
162
162
 
163
+ ### Uploading attachments
164
+
165
+ There are three ways to get a file to OurFamilyWizard, and which one works depends on where the server runs.
166
+
167
+ **Hosted (claude.ai connector, mcp-host): signed upload slots.** The server cannot see your machine, so `path` is refused there, with an explanation. Ask for a slot, PUT the file to it, then hand back its key:
168
+
169
+ ```jsonc
170
+ // 1. ofw_upload_attachment
171
+ { "uploadSlots": [{ "filename": "Sam_Think_Sheet_2026-11-03.jpg" }] }
172
+ // → { "blobKeys": ["uploads/…"], "slots": [{ "uploadUrl": "https://…", "mimeType": "image/jpeg",
173
+ // "curl": "curl -sS --fail -X PUT -H 'Content-Type: image/jpeg' --data-binary @'<path to …>' '…'", "expiresAt": "…" }] }
174
+
175
+ // 2. run the slot's curl with the real file path
176
+
177
+ // 3. ofw_upload_attachment — or pass blobKeys straight to ofw_save_draft / ofw_send_message
178
+ { "blobKeys": ["uploads/…"], "label": "Sam Think Sheet 11-3-26" }
179
+ // → { "uploaded": 1, "failed": 0, "fileIds": [12345], "results": [{ "ok": true, "fileId": 12345, "blobDeleted": true, … }] }
180
+ ```
181
+
182
+ The PUT must send the slot's `Content-Type` (the URL is signed for it), and the URL works for 30 minutes. The server deletes each file from the upload store as soon as OurFamilyWizard has it. If the OFW upload fails, the file is kept, so the same key can be retried.
183
+
184
+ **Any deployment, small files: `inline` base64.** Every byte travels inside the tool call, and a hosted connector caps one request at about 10 MB of JSON (about 7 MB of files once base64-encoded). Use it for a document or a couple of small images, not a batch of phone photos:
185
+
186
+ ```jsonc
187
+ { "inline": { "filename": "form.pdf", "contentBase64": "JVBERi0xLjcK…" } }
188
+ // or an array of up to 10, with per-file results:
189
+ { "inline": [{ "filename": "a.jpg", "contentBase64": "…" }, { "filename": "b.heic", "contentBase64": "…", "mimeType": "image/heic" }] }
190
+ ```
191
+
192
+ **Local installs: `path`.** A file inside the upload directory (`OFW_UPLOAD_DIR`, default `~/Downloads/ofw-mcp`, created `0700` on first use). Paths outside it after resolving symlinks, hidden files, and files over 25 MiB are refused:
193
+
194
+ ```jsonc
195
+ { "path": "Sam_Think_Sheet_2026-11-03.jpg" }
196
+ ```
197
+
198
+ Every source has the same limits: up to 10 files per call, each non-empty and at most 25 MiB, with a bare filename. The MIME type comes from the extension unless you pass `mimeType`. Uploads are `PRIVATE` unless you pass `shareClass: "SHARED"`, which goes one file at a time and is confirmed first.
199
+
200
+ To upload and attach in one step, give `ofw_save_draft` or `ofw_send_message` `inlineAttachments` (the same `{filename, contentBase64, mimeType?}` entries) or `blobKeys`. Every entry is validated before anything is uploaded.
201
+
202
+ **Drafts don't hold attachments on OurFamilyWizard.** OFW drops files from a saved draft, and its own web app only attaches them when the message is sent. So `ofw_save_draft` *holds* a draft's files on this server: they show under `attachments.held`, are kept across edits (`removeFileIDs` drops one), change the draft's `revision`, and are attached when you send the draft with `ofw_send_message(draftId)`. You won't see them on the draft in the OFW web app. On send, every attachment goes out `SHARED`, as the web app does it. New files are uploaded `SHARED`, and files known to be `PRIVATE` are re-shared as `SHARED`, both only after you approve the send; the approval is bound to each new file's SHA-256. The response then checks the sent message and reports any file OFW left off.
203
+
204
+ On a hosted connector, `ofw_download_attachment` with `inline:false` (or `link:true`) returns a private download link that expires after `linkMinutes` (default 60), instead of a path on the server's disk. Inline images over 10 MiB fall back to a link too.
205
+
163
206
  ### Data freshness (`OFW_FRESHNESS_TTL_SECONDS`)
164
207
 
165
208
  Message and draft reads are served from the local cache, which means a result can look authoritative while being minutes or months out of date. The cache also cannot detect some changes on its own: **editing a draft in the OFW web app bumps no timestamp at all**, so "nothing changed" and "we didn't look" are indistinguishable unless the server says which happened.
@@ -358,6 +401,8 @@ Every request that carries your OFW token or login passes its constructed URL th
358
401
 
359
402
  The one other host the server contacts is `*.oaiusercontent.com`, and only for `ofw_upload_expense_pdf`'s `url` mode: it downloads the receipt PDF from that signed file URL with no OFW credential attached, re-checking every redirect hop against the same suffix, capping the size and requiring a real PDF. The hosted registration's egress allowlist (`mint.yaml`) names exactly these two hosts.
360
403
 
404
+ On a hosted connector the server also reaches mcp-host's own blob store (`MCP_BLOB_BASE_URL`, the gateway that serves the connector) with signed requests and no OFW credential. It stores `.ics` exports and download links, and reads (then deletes) files you upload through `uploadSlots`.
405
+
361
406
  ## Troubleshooting
362
407
 
363
408
  **"0 messages"** — Claude may have read the notification counts rather than the actual messages. Ask explicitly: *"List the messages in my OFW inbox"* or *"Use ofw_list_message_folders then ofw_list_messages"*.