@remembrance-ai/mcp-server 0.1.53 → 0.1.60

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
@@ -20,6 +20,19 @@ Remembrance plugin. Claude Code, Codex, Cursor, OpenClaw, VS Code, and OpenCode
20
20
  users should start with their native plugin path because those packages add
21
21
  skills/rules and hooks around the MCP tools.
22
22
 
23
+ At MCP initialization, the server performs a bounded, cached, credential-free
24
+ release check. If a newer verified version is published, the agent receives
25
+ locally bundled update guidance and must ask before changing the MCP
26
+ registration. Restart the host after updating; the running MCP process cannot
27
+ become the new version in place. `run_connection_doctor` reports the same state.
28
+ Set `REMEMBRANCE_CLIENT_UPDATE_CHECK=0` to disable the advisory check.
29
+
30
+ MCP processes from before this initialization check existed still receive
31
+ command-free `client_update` metadata in their next successful `query_skills`
32
+ response. Restart the host after changing a pinned registration; an unpinned
33
+ `@latest` registration picks up the new package only when the host starts a new
34
+ MCP process.
35
+
23
36
  Claude Code plugin install:
24
37
 
25
38
  ```bash
@@ -100,12 +113,18 @@ Environment:
100
113
  - `REMEMBRANCE_AGENT_KEY_PATH`: optional local key path. Defaults to
101
114
  `$XDG_CONFIG_HOME/remembrance/agent-key.json` or
102
115
  `~/.config/remembrance/agent-key.json`.
116
+ - `REMEMBRANCE_MEMBER_LINK_TOKEN`: optional single-use, ten-minute token from
117
+ **Dashboard > Agents > Instances > Install on this device**. Use only in the
118
+ one device-specific setup command that issued it; reusable organization-key
119
+ distribution must omit it.
103
120
  - `REMEMBRANCE_PLUGIN_HOST`: set by native plugin manifests (`codex`,
104
121
  `claude_code`, `cursor`, `openclaw`, `vs_code`, or `opencode`) so connection
105
122
  health can verify that host's local lifecycle. Leave unset for MCP-only
106
123
  installs.
107
124
  - `REMEMBRANCE_HEALTH_REPORTING=0`: disables best-effort submission of bounded
108
125
  degraded-activation issue codes. Local diagnostics remain available.
126
+ - `REMEMBRANCE_CLIENT_UPDATE_CHECK=0`: disables the credential-free public
127
+ release-manifest check. Queries and other MCP tools are unaffected.
109
128
 
110
129
  Before diagnosing authentication, call `run_connection_doctor`. It performs a
111
130
  non-mutating authorized catalog read and reports transport, credential security,
@@ -137,6 +156,55 @@ standalone CLI can verify configuration, registry, auth, and read access, but it
137
156
  cannot claim that a host registered MCP; it tells you to rerun
138
157
  `run_connection_doctor` inside the host after update/reinstall and restart.
139
158
 
159
+ ## Installation identity and preferences
160
+
161
+ The local TOFU key is the durable installation principal. The MCP server
162
+ registers or upgrades it automatically, then signs a one-time challenge to
163
+ obtain a revocable 24-hour principal session. Registration is retried in the
164
+ background and never blocks query or invocation. Identity, member-link, and
165
+ preference mutations fail strictly when the session cannot be established.
166
+
167
+ Each host under the installation gets a child runtime profile. The profile
168
+ contains the normalized runtime and surface, bounded client/runtime versions,
169
+ and a locally derived opaque profile key. It never sends a hostname, username,
170
+ config path, or repository path. Profiles do not create extra billed agents;
171
+ they inherit the installation billing principal.
172
+
173
+ An optional dashboard member-link token binds the installation privately to the
174
+ signed-in organization member. The token is single-use and expires after ten
175
+ minutes. Linking lets preferences follow that member across installations and
176
+ runtimes. Without a link, Remembrance still works and keeps preferences at the
177
+ installation level.
178
+
179
+ Query and invocation responses may include `effective_preferences`,
180
+ `preference_definition_version`, and a bounded
181
+ `preference_application`. Comment density/focus, explanation depth, and output
182
+ organization are built-ins, not a closed vocabulary. A custom setting carries
183
+ a stable key/value, label, normalized behavior, presentation/workflow/strategy
184
+ effect, prefer/avoid direction, and definition version. Required organization
185
+ guidance and locked skill requirements always win. Safety, authorization,
186
+ privacy, applicability, required skill steps, validation, and review are never
187
+ preferences. Explicit corrections apply immediately; inferred values
188
+ activate only after the server's consistency/confidence gates and expire after
189
+ 180 inactive days. Use `record_preference` with hashes and typed values only,
190
+ never raw prompt or feedback text. `scope: "auto"` stores a preference for the
191
+ linked member when available and otherwise for the installation.
192
+
193
+ Native hooks may add a locally derived `client_context.project_key`. It is an
194
+ installation-keyed opaque project-context digest; the path and
195
+ repository name never leave the device. Preferences never change base
196
+ relevance evidence, applicability, or match tier. Declared skill traits may
197
+ reorder already-relevant candidates only inside the same tier. After selection,
198
+ the application object may surgically alter discretionary presentation,
199
+ workflow, or strategy choices and explicitly reports replaced defaults or
200
+ blocked conflicts. Organization admins choose Required or Recommended guidance
201
+ under Dashboard > Agents > Preferences.
202
+
203
+ `X-Remembrance-Principal-Session` is the preferred header. The legacy
204
+ `X-Remembrance-Economics-Session` header and economics-session endpoint remain
205
+ backward-compatible aliases. Send one session header; if both are present, the
206
+ principal-session header wins.
207
+
140
208
  ## Local Identity Recovery
141
209
 
142
210
  `REMEMBRANCE_AGENT_KEY_PATH` points at a local private key. Back it up like an
@@ -204,8 +272,10 @@ plugin-provided MCP servers. The same guide is available at
204
272
  The recommended organization inventory covers discovery, invocation, bounded
205
273
  feedback/outcomes, `submit_remembrance`, `propose_private_skill`, and
206
274
  `submit_suggestion`. Dual-scope/public, resource, and identity tools are
207
- opt-in. If repository export remains denied, keep the denial and use local
208
- `queue_private_skill_import`; do not retry through another transport.
275
+ opt-in. If repository export remains denied, keep the denial, report that
276
+ nothing was sent, and do not retry through another transport. Do not create a
277
+ handoff automatically. `queue_private_skill_import` remains available only when
278
+ an organization admin explicitly requests a local handoff.
209
279
 
210
280
  With an organization key, `propose_skill_idea` also stays in the organization
211
281
  review queue. Never remove or bypass the key to force a public candidate;
@@ -277,6 +347,15 @@ current instructions. Catalog browsing and handle reads do not count as use.
277
347
  - `bootstrap_agent_identity`: with no required arguments, generate/register a
278
348
  local TOFU Ed25519 key, repair its permissions, or explicitly re-bootstrap a
279
349
  new identity if the local key file was lost.
350
+ - `get_effective_preferences`: resolve only the typed preference values relevant
351
+ to the current project context, skill, and domains. A missing principal session
352
+ returns organization/default behavior rather than failing retrieval.
353
+ - `record_preference`: record a privacy-safe explicit or inferred preference
354
+ observation for the verified installation/member/runtime. A live principal
355
+ session is required.
356
+ - `link_current_installation`: consume the one-time dashboard member token and
357
+ bind the verified installation to that organization member. It does not
358
+ rotate the API key or create another billed agent.
280
359
  - `queue_private_skill_import`: preserve up to 10 organization skills locally
281
360
  when host privacy or network policy blocks export. It never contacts
282
361
  Remembrance and never counts as submission; an organization admin uploads
@@ -342,8 +421,21 @@ current instructions. Catalog browsing and handle reads do not count as use.
342
421
  - `request_attestation_challenge`, `register_agent_key` for adapters that
343
422
  manage keys themselves.
344
423
 
424
+ Submission tools may include an optional `routing_hint`, but it is advisory.
425
+ Remembrance keeps the evidence immutable and independently chooses `amend`,
426
+ `specialize`, `strategy_fork`, `independent_skill`, `preference`,
427
+ `evidence_only`, or `hold` after static safety, duplicate, target, risk,
428
+ verifier, and organization-policy checks. Subjective but reusable presentation,
429
+ workflow, or strategy choices go to the preference plane rather than polluting
430
+ canonical skill instructions.
431
+ Specializations are complete reviewed versions pinned to an exact parent
432
+ version with structured conditions and `use_when`/`avoid_when`; parent changes
433
+ create reviewed rebase candidates instead of silently changing children.
434
+ Organization evidence never routes into a public artifact.
435
+
345
436
  The local MCP server uses the same TOFU identity to obtain a revocable 24-hour
346
- economics session. Native plugins report a bounded completion automatically when
437
+ principal session (the economics-session name remains an alias). Native plugins
438
+ report a bounded completion automatically when
347
439
  their host exposes enough lifecycle data. Raw MCP clients should call
348
440
  `report_task_outcome` themselves after a selected result is used. Collection
349
441
  mode never exposes USD values, prices, rebates, credits, subscriptions, or