@formstr/mcp 0.5.1 → 0.7.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/README.md +29 -0
- package/dist/index.js +5522 -103
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -227,6 +227,35 @@ service supports (more than the super-app builder UI currently exposes).
|
|
|
227
227
|
Other modules (calendar, pages, polls, drive) expose the v1 read/create tools and gated
|
|
228
228
|
actions; see the source under `src/tools/`.
|
|
229
229
|
|
|
230
|
+
## Mail tools
|
|
231
|
+
|
|
232
|
+
Email through mailstr, using the same identity you logged in with (the account the
|
|
233
|
+
`you@mailstr.app` address is bound to). No key material leaves the signer.
|
|
234
|
+
|
|
235
|
+
**Read (always on)**
|
|
236
|
+
|
|
237
|
+
- `list_mail` — your inbox: sender, subject, date per message (kind-1059 gift-wrapped mail).
|
|
238
|
+
- `read_mail` — the full body of one message by its id.
|
|
239
|
+
- `list_mail_aliases` — every address (NIP-05 alias) this account can send as, and the default.
|
|
240
|
+
- `who_is_my_mail_address` — the signed-in identity, its default `From:`, and its aliases.
|
|
241
|
+
|
|
242
|
+
**Gated (require `--allow-writes` + `confirm: true`)**
|
|
243
|
+
|
|
244
|
+
- `send_mail` — send email to an npub/hex key, or an external address via the domain's SMTP bridge.
|
|
245
|
+
Pass `from` to choose which alias to send as (one of your own addresses); omit it to send from
|
|
246
|
+
an owned alias, or the npub mailbox when you have none. A `from` you do not own is rejected with
|
|
247
|
+
the list of valid senders.
|
|
248
|
+
- `claim_mailbox` — start claiming `you@mailstr.app`. Returns a **Lightning invoice to pay in
|
|
249
|
+
your own wallet** — the server holds no wallet, so it cannot pay it. Mail works once NIP-05
|
|
250
|
+
propagates.
|
|
251
|
+
- `publish_mail_setup` — publish your profile (with the NIP-05 address) and the kind-10050
|
|
252
|
+
delivery-relay list senders read.
|
|
253
|
+
|
|
254
|
+
**Aliases.** A mail identity is one Nostr key; an *alias* is a NIP-05 name bound to that key.
|
|
255
|
+
All of an account's aliases share one key and one inbox — mail is encrypted to the key, so which
|
|
256
|
+
alias a message was addressed to is only a header. `send_mail`'s `from` picks which alias appears
|
|
257
|
+
in the `From:`; `list_mail_aliases` shows the choices.
|
|
258
|
+
|
|
230
259
|
## Safety model
|
|
231
260
|
|
|
232
261
|
Destructive / outward tools are **not registered** unless `--allow-writes` (or
|