@remembrance-ai/mcp-server 0.2.2 → 0.2.4
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 +115 -18
- package/dist/server.js +798 -176
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -299,6 +299,70 @@ standalone CLI can verify configuration, registry, auth, and read access, but it
|
|
|
299
299
|
cannot claim that a host registered MCP; it tells you to rerun
|
|
300
300
|
`run_connection_doctor` inside the host after update/reinstall and restart.
|
|
301
301
|
|
|
302
|
+
### Highly Recommended: approve private submissions
|
|
303
|
+
|
|
304
|
+
For organizations that use Remembrance with a private organization key, this
|
|
305
|
+
step is required for Remembrance to do its job fully. Without it, on hosts that
|
|
306
|
+
ask before these tools, every private lesson or skill submission stops for a
|
|
307
|
+
manual approval, and unattended or headless runs deny it. Public-only use,
|
|
308
|
+
without an organization key, does not need it.
|
|
309
|
+
|
|
310
|
+
Persist host approval for exactly `submit_private_lesson_candidate`,
|
|
311
|
+
`retry_private_lesson_candidate`, `submit_private_skill_candidate`, and
|
|
312
|
+
`retry_private_skill_candidate`. Hosted MCP exposes only
|
|
313
|
+
`submit_private_lesson_candidate` of the four. Never pre-approve the
|
|
314
|
+
`delete_private_*` tools, a whole server, `bypassPermissions`, Gemini CLI
|
|
315
|
+
`trust: true` or `mcp.allowed`, or any global auto-approve.
|
|
316
|
+
|
|
317
|
+
Every local private submission starts with `capture_learning`, which is local
|
|
318
|
+
only: it stays on this machine and sends nothing. Hosts that ask before it
|
|
319
|
+
(Claude Code, Gemini CLI, VS Code, and Cursor depending on its Run Mode) need
|
|
320
|
+
it approved as a fifth, local-only entry. Codex under the managed `writes` mode
|
|
321
|
+
also asks before it, but there approving it is an optional administrator
|
|
322
|
+
decision: with it, Auto-review never sees the lesson content. Per host:
|
|
323
|
+
|
|
324
|
+
- Claude Code: `permissions.allow` in `~/.claude/settings.json` with
|
|
325
|
+
`mcp__plugin_remembrance_remembrance__<tool>` for the plugin, including
|
|
326
|
+
`capture_learning`, or `mcp__remembrance__<tool>` for a local server
|
|
327
|
+
registered as `remembrance` (including `capture_learning`), and only
|
|
328
|
+
`mcp__remembrance__submit_private_lesson_candidate` on hosted MCP.
|
|
329
|
+
- Codex: one
|
|
330
|
+
`[plugins."remembrance@remembrance".mcp_servers.remembrance.tools.<tool>]`
|
|
331
|
+
table per tool with `approval_mode = "approve"` in `~/.codex/config.toml`, or
|
|
332
|
+
`[mcp_servers.remembrance.tools.<tool>]` for a manually registered server.
|
|
333
|
+
`approve` also skips Auto-review, so in a managed organization add them only
|
|
334
|
+
with your administrator.
|
|
335
|
+
- Cursor: `remembrance:<tool>` entries, including `capture_learning`, merged
|
|
336
|
+
into the `mcpAllowlist` of `~/.cursor/permissions.json`, which replaces the
|
|
337
|
+
in-app list (keep your existing entries and the file's other keys), and
|
|
338
|
+
`Mcp(remembrance:<tool>)` in `permissions.allow` of
|
|
339
|
+
`~/.cursor/cli-config.json` for the CLI.
|
|
340
|
+
- VS Code: run **Chat: Manage Tool Approval**, tick only the four tools and
|
|
341
|
+
`capture_learning`, and turn off **Configure for this workspace only**; no
|
|
342
|
+
settings key exists.
|
|
343
|
+
- OpenCode: `"remembrance_<tool>": "allow"` entries in `permission`, including
|
|
344
|
+
`capture_learning`, placed after any broader `"*"` or `"remembrance_*"` rule
|
|
345
|
+
because the last matching rule wins.
|
|
346
|
+
- OpenClaw: choose allow-always once per lane, or, on Remembrance for OpenClaw
|
|
347
|
+
0.2.3 or later only, set `private_lesson` and `private_skill` to `true` under
|
|
348
|
+
`privateLearningEgressApprovals` in the plugin config. Earlier versions
|
|
349
|
+
reject the key, and the Gateway then refuses to start until it is removed.
|
|
350
|
+
- Gemini CLI: one `[[rule]]` per tool, including `capture_learning`, in
|
|
351
|
+
`~/.gemini/policies/remembrance.toml` with `mcpName = "remembrance"`,
|
|
352
|
+
`decision = "allow"`, and `priority = 200`.
|
|
353
|
+
- Claude Desktop: its per-tool **Always allow** has no config key and users
|
|
354
|
+
report that it resets when the app updates, so do not rely on it for
|
|
355
|
+
unattended runs.
|
|
356
|
+
|
|
357
|
+
On hosts that ask, a headless run denies every tool without an approval, so it
|
|
358
|
+
also needs approvals for the other Remembrance tools it calls. Copyable
|
|
359
|
+
snippets for each host are in the
|
|
360
|
+
[setup reference](https://remembrance.dev/skills/remembrancer/references/remembrance-setup.md).
|
|
361
|
+
Check the step by behavior: capture one disposable private lesson and confirm
|
|
362
|
+
that neither the capture nor its submission prompts. Where the organization
|
|
363
|
+
leaves the capture to Auto-review or a person, as managed Codex may, only the
|
|
364
|
+
capture is reviewed. `run_connection_doctor` cannot see a persisted approval.
|
|
365
|
+
|
|
302
366
|
## Installation identity and preferences
|
|
303
367
|
|
|
304
368
|
The local TOFU key is the durable installation principal. The MCP server
|
|
@@ -446,6 +510,11 @@ key signing on your machine) or `queue_private_skill_import` (a zero-network,
|
|
|
446
510
|
mode-0600 handoff for an admin dashboard import), which the remote endpoint
|
|
447
511
|
cannot provide.
|
|
448
512
|
|
|
513
|
+
With an organization key, the Highly Recommended step for a hosted server
|
|
514
|
+
approves only `submit_private_lesson_candidate`, the one private submit action
|
|
515
|
+
hosted MCP exposes; for example `mcp__remembrance__submit_private_lesson_candidate`
|
|
516
|
+
in Claude Code after the `claude mcp add` above.
|
|
517
|
+
|
|
449
518
|
Every MCP tool publishes `readOnlyHint`, `openWorldHint`, and
|
|
450
519
|
`destructiveHint`. Public submission tools are open-world. The exact
|
|
451
520
|
`submit_private_lesson_candidate` and `submit_private_skill_candidate` actions
|
|
@@ -464,7 +533,8 @@ expose only the organization tool inventory in
|
|
|
464
533
|
`skills/remembrancer/references/remembrance-setup.md`. That reference contains
|
|
465
534
|
current, copyable policy for Codex, Claude Code, Gemini CLI, OpenClaw, Cursor,
|
|
466
535
|
and generic MCP clients, including host modes that suppress plugin hooks or
|
|
467
|
-
plugin-provided MCP servers
|
|
536
|
+
plugin-provided MCP servers, plus the Highly Recommended private-submission
|
|
537
|
+
approval for every host. The same guide is available at
|
|
468
538
|
<https://remembrance.dev/docs/remembrancer#private-repository-policy>.
|
|
469
539
|
|
|
470
540
|
The recommended organization inventory covers discovery, invocation,
|
|
@@ -629,21 +699,36 @@ older host integrations. Tool visibility, feedback schema, instructions, and
|
|
|
629
699
|
the capability header move together; the server never advertises capture while
|
|
630
700
|
serving the legacy contract.
|
|
631
701
|
|
|
632
|
-
Allow the
|
|
633
|
-
Claude Code's
|
|
634
|
-
`
|
|
635
|
-
`
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
702
|
+
Allow the four submit and retry actions persistently, as in the Highly
|
|
703
|
+
Recommended step above, without granting every write tool. Claude Code's
|
|
704
|
+
permission names are `mcp__plugin_remembrance_remembrance__<tool>` for the
|
|
705
|
+
plugin and `mcp__remembrance__<tool>` for a local server registered as
|
|
706
|
+
`remembrance`; hosted MCP has only
|
|
707
|
+
`mcp__remembrance__submit_private_lesson_candidate`. OpenCode prefixes the same
|
|
708
|
+
tool names with `remembrance_`. Cursor approves them through `mcpAllowlist`, and
|
|
709
|
+
VS Code through **Chat: Manage Tool Approval**. OpenClaw persists its
|
|
710
|
+
plugin-owned `allow-always` decisions, one for the lesson lane and one for the
|
|
711
|
+
skill lane. Keep broader public/admin writes disabled when they are not needed.
|
|
640
712
|
|
|
641
713
|
The capture action never contacts Remembrance. A host denial is retained
|
|
642
|
-
locally and is never retried through another transport
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
714
|
+
locally and is never retried through another transport; the plugin hooks park
|
|
715
|
+
only the denied draft, as a decline does. A parked draft returns as a user
|
|
716
|
+
decision 1, 7 and 30 days later (each wait counted from the park or the last
|
|
717
|
+
showing), whether or not the host allows its lane. A client update, and for a
|
|
718
|
+
host-denied draft the host letting that lane through again, makes the next
|
|
719
|
+
return come right away instead (or adds one more, if all three were shown). It
|
|
720
|
+
is sent only through its exact submit or retry action after the user agrees.
|
|
721
|
+
The hooks offer drafts no active session is handling as a user decision too,
|
|
722
|
+
until the user delivers, keeps or deletes them; a kept draft is parked. These
|
|
723
|
+
decisions go to the next main-thread prompt on the machine, at most once a day,
|
|
724
|
+
including unattended runs; the drafts stay listed by
|
|
725
|
+
`inspect_private_learning_outbox`, and none is sent or deleted without
|
|
726
|
+
the user. Neither outbox expires or evicts unresolved drafts; reaching its
|
|
727
|
+
64 MiB ceiling pauses capture rather than deleting data. Only the matching
|
|
728
|
+
delete tool with explicit confirmation removes a selected draft. Hosted MCP
|
|
729
|
+
exposes policy and the network-backed `submit_private_lesson_candidate` action
|
|
730
|
+
(complete skills use `propose_private_skill`), but no local router, outbox, or
|
|
731
|
+
retry, and reports
|
|
647
732
|
`auto_capture_supported: false` unless a local plugin is paired with it.
|
|
648
733
|
|
|
649
734
|
## Claude Desktop (local stdio)
|
|
@@ -662,6 +747,11 @@ submit actions, but no local router or outbox, and reports
|
|
|
662
747
|
}
|
|
663
748
|
```
|
|
664
749
|
|
|
750
|
+
Claude Desktop asks before each tool call. Its per-tool **Always allow**, in the
|
|
751
|
+
prompt or the connector's tool permissions, has no config key and users report
|
|
752
|
+
that it resets when the app updates, so it is not dependable for unattended
|
|
753
|
+
private submissions.
|
|
754
|
+
|
|
665
755
|
## Tools
|
|
666
756
|
|
|
667
757
|
- `get_connection_status`: inspect the active local/hosted transport,
|
|
@@ -792,10 +882,17 @@ current instructions. Catalog browsing and handle reads do not count as use.
|
|
|
792
882
|
- `decline_pending_action`: local-only way to decline one pending action that a
|
|
793
883
|
plugin hook reminder listed and the agent cannot complete. Supply the
|
|
794
884
|
`action_id` shown under that action and one `reason`:
|
|
795
|
-
`not_observed_by_this_agent`, `agent_exited`, `not_reusable`,
|
|
796
|
-
`
|
|
797
|
-
|
|
798
|
-
|
|
885
|
+
`not_observed_by_this_agent`, `agent_exited`, `not_reusable`, `duplicate`,
|
|
886
|
+
or `host_policy_denied` (only for a private-learning line or notice whose
|
|
887
|
+
exact action the host denied). It sends and stores nothing and never counts
|
|
888
|
+
as feedback; the plugin's completion hook closes that action in the calling
|
|
889
|
+
agent's own pending list when it observes the call. A declined private draft
|
|
890
|
+
stays retained and returns later only as a user decision, at the next
|
|
891
|
+
main-thread prompt on the machine and at most once a day, unattended runs
|
|
892
|
+
included: 1, 7 and 30 days later (each wait counted from the decline or the
|
|
893
|
+
last showing); a client update, and for a draft declined with
|
|
894
|
+
`host_policy_denied` the host letting that lane through again, makes the next
|
|
895
|
+
return come right away instead (or adds one more, if all three were shown).
|
|
799
896
|
- `get_pending_action_payload`: local-only retrieval of the exact payload a
|
|
800
897
|
pending reusable-evidence action keeps on this device, or the exact
|
|
801
898
|
`record_preference` arguments a pending durable-preference action keeps,
|