@formstr/mcp 0.5.0 → 0.6.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 CHANGED
@@ -2,8 +2,10 @@
2
2
 
3
3
  A standalone [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that
4
4
  exposes the **Formstr** super-app (forms, calendar, pages, drive, polls) to any MCP host —
5
- Claude Code/Desktop, Cursor, and others. It builds on `@formstr/core` and the super-app's
6
- service layer and talks to Nostr relays directly. Transport: **stdio**.
5
+ Claude Code/Desktop, Cursor, and others. It builds on `@formstr/agent` (the shared service
6
+ layer + tool registry) and `@formstr/core` (Nostr primitives), and talks to Nostr relays
7
+ directly. Transport: **stdio**. Source lives in
8
+ [`formstr-hq/common-packages`](https://github.com/formstr-hq/common-packages/tree/main/packages/mcp).
7
9
 
8
10
  Identity is powered by [`@formstr/signer`](https://www.npmjs.com/package/@formstr/signer) —
9
11
  the same login engine the Formstr web app uses. Local keys are stored **NIP-49 encrypted
@@ -225,6 +227,26 @@ service supports (more than the super-app builder UI currently exposes).
225
227
  Other modules (calendar, pages, polls, drive) expose the v1 read/create tools and gated
226
228
  actions; see the source under `src/tools/`.
227
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
+ - `who_is_my_mail_address` — the account's mail address (NIP-05) and pubkey.
240
+
241
+ **Gated (require `--allow-writes` + `confirm: true`)**
242
+
243
+ - `send_mail` — send email to an npub/hex key, or an external address via the domain's SMTP bridge.
244
+ - `claim_mailbox` — start claiming `you@mailstr.app`. Returns a **Lightning invoice to pay in
245
+ your own wallet** — the server holds no wallet, so it cannot pay it. Mail works once NIP-05
246
+ propagates.
247
+ - `publish_mail_setup` — publish your profile (with the NIP-05 address) and the kind-10050
248
+ delivery-relay list senders read.
249
+
228
250
  ## Safety model
229
251
 
230
252
  Destructive / outward tools are **not registered** unless `--allow-writes` (or