ofw-mcp 2.26.1 → 2.27.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 +45 -2
- package/dist/bundle.js +929 -359
- package/dist/config.js +12 -0
- package/dist/tools/attachments.js +31 -2
- package/dist/tools/messages.js +236 -79
- package/dist/tools/uploads.js +311 -0
- package/dist/version.js +1 -1
- package/mint.yaml +5 -0
- package/package.json +2 -2
- package/server.json +2 -2
- package/skills/ofw/SKILL.md +4 -4
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "OurFamilyWizard tools for Claude Code",
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.27.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.27.0",
|
|
18
18
|
"author": {
|
|
19
19
|
"name": "Chris Chall"
|
|
20
20
|
},
|
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,
|
|
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
|
|
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,47 @@ 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": "Finn_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": "Finn 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": "Finn_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. `ofw_send_message` uploads only after the send is approved, and its approval is bound to each file's SHA-256. Editing a draft (`ofw_save_draft` with `messageId`) keeps the draft's existing attachments unless you pass `myFileIDs`.
|
|
201
|
+
|
|
202
|
+
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.
|
|
203
|
+
|
|
163
204
|
### Data freshness (`OFW_FRESHNESS_TTL_SECONDS`)
|
|
164
205
|
|
|
165
206
|
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 +399,8 @@ Every request that carries your OFW token or login passes its constructed URL th
|
|
|
358
399
|
|
|
359
400
|
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
401
|
|
|
402
|
+
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`.
|
|
403
|
+
|
|
361
404
|
## Troubleshooting
|
|
362
405
|
|
|
363
406
|
**"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"*.
|