@cpenned/mcp 0.8.0 → 0.8.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.
package/README.md CHANGED
@@ -151,7 +151,9 @@ Point the `args` at the absolute `packages/mcp/dist/index.js` path with
151
151
  web-app-only): `list_shares` (gardens shared with the caller: capabilities,
152
152
  owner, participants - empty unless the key has `includeGrants`),
153
153
  `list_shared_tasks` (`{shareId, status?, includeCanceled?}`, capped at
154
- 500). In a shared garden, a guest's status moves are gated by the owner's
154
+ 500). A garden shared from another Open Brain deployment carries
155
+ `remote: {origin, lastSyncedAt, lastError}` and is edited with the normal
156
+ task tools. In a shared garden, a guest's status moves are gated by the owner's
155
157
  capability grant rather than the usual status machine: `complete` only
156
158
  moves an open task to `done`; any other move (including reopening `done`/
157
159
  `canceled`) needs `edit`; `canceled` needs `cancel`.
@@ -23,7 +23,7 @@ export function listSharedTasks(client, args) {
23
23
  export function registerShareTools(server, client) {
24
24
  server.registerTool("list_shares", {
25
25
  title: "List shared gardens",
26
- description: "Gardens another user has shared with the caller: capabilities, owner, and participants. Empty unless the key has includeGrants. Sharing/invites/revoke are web-only.",
26
+ description: "Gardens another user has shared with the caller: capabilities, owner, and participants. `remote` is set (with the owner deployment's origin and last sync) when the garden lives on another Open Brain deployment; its tasks are still read and edited with the normal task tools. Empty unless the key has includeGrants. Sharing/invites/revoke and joining by code are web-only.",
27
27
  inputSchema: {},
28
28
  }, () => runTool(() => listShares(client)));
29
29
  server.registerTool("list_shared_tasks", {
@@ -1 +1 @@
1
- {"version":3,"file":"shares.js","sourceRoot":"","sources":["../../src/tools/shares.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,uEAAuE;AACvE,4EAA4E;AAC5E,6EAA6E;AAC7E,gCAAgC;AAGhC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,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C,CAAC,CACxC,CAAC;IACF,MAAM,CAAC,YAAY,CACjB,mBAAmB,EACnB;QACE,KAAK,EAAE,+BAA+B;QACtC,WAAW,EACT,yJAAyJ;QAC3J,WAAW,EAAE,qBAAqB,CAAC,KAAK;KACzC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CACvD,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpenned/mcp",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "MCP server for Open Brain - a thin adapter over the /v1 HTTP API.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -74,8 +74,13 @@ pre-guessing constraints.
74
74
  `archived`/`deleted` are independent reversible booleans, same pattern as
75
75
  reading list items.
76
76
  - **Mind Meld (shared gardens)** = a garden owner shares one garden with
77
- another signed-in user on the same deployment via the web app (invites,
78
- capability edits, and revoke are web-only - there is no tool for them).
77
+ another user via the web app (invites, capability edits, revoke, and
78
+ joining by code are web-only - there is no tool for them). The guest can be
79
+ on the same deployment or on their own Open Brain deployment; a garden from
80
+ another deployment is mirrored locally, so the same tools read and edit it
81
+ (edits are forwarded to the owner's deployment, which has the final say and
82
+ may revert a change it rejects). `list_shares` marks such a garden with
83
+ `remote: { origin, lastSyncedAt, lastError }`.
79
84
  A guest sees the shared garden's tasks and, per the owner's chosen
80
85
  capability preset, can arrange (move/complete), edit fields, create tasks,
81
86
  or cancel - never see the owner's people/habit/calendar links, and never