@remembrance-ai/mcp-server 0.1.27 → 0.1.38

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
@@ -48,12 +48,14 @@ OpenClaw plugin install:
48
48
 
49
49
  ```bash
50
50
  openclaw plugins install clawhub:@remembrance/openclaw-plugin
51
+ openclaw remembrance setup
51
52
  ```
52
53
 
53
54
  The OpenClaw plugin reads the same shared key config at
54
55
  `~/.config/remembrance/config.json`, registers the Remembrancer skill, and adds
55
56
  conversation hooks around the MCP tools. Use standalone MCP only when a native
56
- plugin install is unavailable.
57
+ plugin install is unavailable. Restart OpenClaw after setup, then run
58
+ `openclaw mcp doctor remembrance --probe`.
57
59
 
58
60
  Environment:
59
61
 
@@ -62,6 +64,20 @@ Environment:
62
64
  - `REMEMBRANCE_AGENT_KEY_PATH`: optional local key path. Defaults to
63
65
  `$XDG_CONFIG_HOME/remembrance/agent-key.json` or
64
66
  `~/.config/remembrance/agent-key.json`.
67
+ - `REMEMBRANCE_PLUGIN_HOST`: set by native plugin manifests (`codex`,
68
+ `claude_code`, `cursor`, or `openclaw`) so connection health can verify that
69
+ host's local lifecycle. Leave unset for MCP-only installs.
70
+ - `REMEMBRANCE_HEALTH_REPORTING=0`: disables best-effort submission of bounded
71
+ degraded-activation issue codes. Local diagnostics remain available.
72
+
73
+ Before diagnosing authentication, call `get_connection_status`. The local
74
+ server reports whether it used the environment, the shared config file, or no
75
+ credential, plus the verified public/organization registry scope. It never
76
+ returns the key. Do not treat an unset environment variable or an anonymous
77
+ curl/browser probe as evidence that this local MCP process is anonymous. When a
78
+ native plugin declares its host, the result also shows whether its startup,
79
+ prompt, tool-observer, and completion hooks have been observed. MCP-only
80
+ installs report that native lifecycle checks are not applicable.
65
81
 
66
82
  ## Local Identity Recovery
67
83
 
@@ -74,7 +90,8 @@ registered-provider key when durable trust continuity matters.
74
90
 
75
91
  ## Remote endpoint (no install)
76
92
 
77
- The same tools (everything except the local-only `bootstrap_agent_identity`) are
93
+ The same proxy tools (everything except the local-only
94
+ `bootstrap_agent_identity` and `queue_private_skill_import`) are
78
95
  hosted at a remote Streamable HTTP endpoint, so most clients need no local
79
96
  install. An optional org key goes in `Authorization: Bearer <key>`.
80
97
 
@@ -101,7 +118,39 @@ url = "https://remembrance.dev/api/mcp"
101
118
  ```
102
119
 
103
120
  Use the local stdio server below when you want `bootstrap_agent_identity` (TOFU
104
- key signing on your machine), which the remote endpoint cannot provide.
121
+ key signing on your machine) or `queue_private_skill_import` (a zero-network,
122
+ mode-0600 handoff for an admin dashboard import), which the remote endpoint
123
+ cannot provide.
124
+
125
+ Every MCP tool publishes `readOnlyHint`, `openWorldHint`, and
126
+ `destructiveHint`. Public submission tools are open-world. The networked
127
+ `propose_private_skill` tool is non-read-only but closed-world because it can
128
+ write only to the authenticated organization's private review queue and can
129
+ never publish publicly. `queue_private_skill_import` is both closed-world and
130
+ zero-network. These annotations help hosts review the real operation, but they
131
+ never override host or tenant policy.
132
+
133
+ ## Managed host policy
134
+
135
+ An API key authorizes Remembrance; the agent host separately decides which MCP
136
+ server, destination, and tools may run. For managed installs, allow the exact
137
+ `https://remembrance.dev/api/mcp` endpoint or exact local stdio command, then
138
+ expose only the organization tool inventory in
139
+ `skills/remembrancer/references/remembrance-setup.md`. That reference contains
140
+ current, copyable policy for Codex, Claude Code, Gemini CLI, OpenClaw, Cursor,
141
+ and generic MCP clients, including host modes that suppress plugin hooks or
142
+ plugin-provided MCP servers. The same guide is available at
143
+ <https://remembrance.dev/docs/remembrancer#private-repository-policy>.
144
+
145
+ The recommended organization inventory covers discovery, invocation, bounded
146
+ feedback/outcomes, `submit_remembrance`, `propose_private_skill`, and
147
+ `submit_suggestion`. Dual-scope/public, resource, and identity tools are
148
+ opt-in. If repository export remains denied, keep the denial and use local
149
+ `queue_private_skill_import`; do not retry through another transport.
150
+
151
+ With an organization key, `propose_skill_idea` also stays in the organization
152
+ review queue. Never remove or bypass the key to force a public candidate;
153
+ submit privately, then use the reviewed public-propagation flow.
105
154
 
106
155
  ## Claude Desktop (local stdio)
107
156
 
@@ -121,6 +170,22 @@ key signing on your machine), which the remote endpoint cannot provide.
121
170
 
122
171
  ## Tools
123
172
 
173
+ - `get_connection_status`: inspect the active local/hosted transport,
174
+ credential source, verified registry scope, and any declared native plugin
175
+ lifecycle without exposing key material. Hosted MCP cannot read a local
176
+ config file; local stdio can. A degraded native check submits only strict,
177
+ content-free component/version issue codes for deduplicated admin triage; it
178
+ never submits prompts, keys, repository paths, source content, or raw logs.
179
+ - `list_skills`: paginate the live skill catalog authorized for the current
180
+ caller, or filter it by an indexed, normalized slug prefix. It is for
181
+ resolving a known name or partial slug, not relevance discovery. It returns lightweight metadata and
182
+ `remembrance://skills/{slug}` handles, not full private instructions.
183
+ - `invoke_skill`: load an explicitly selected skill by exact slug. It rechecks
184
+ policy, resolves the current accepted version, marks the direct result
185
+ selected/fetched, and returns post-use feedback and outcome instructions. Do
186
+ not submit query-fit feedback for this direct selection. Resolve ambiguous
187
+ known names with the `list_skills` slug-prefix filter; use `query_skills` for
188
+ discovery, and never guess a slug.
124
189
  - `query_skills`: find relevant skills and resources before non-trivial work;
125
190
  short follow-ups must be interpreted from the full conversation. Results
126
191
  include a high/possible/exploratory tier, a concise reason, approximate
@@ -133,11 +198,26 @@ key signing on your machine), which the remote endpoint cannot provide.
133
198
  organization skills and do not substitute bundled or live public references;
134
199
  an unavailable query with an organization key fails closed for public-skill
135
200
  fallback because the current policy cannot be confirmed.
136
- - `get_skill`, `get_resource`: fetch details by slug. Open a high match before
137
- custom work and pass its originating `query_id` and `result_id`; possible and
138
- exploratory matches remain optional.
201
+ - `get_skill`, `get_resource`: fetch details by slug. `get_skill` also returns
202
+ the exact reviewed `skill_md`, `version_id`, and public/org source selected
203
+ by the current authorization policy. First compare the query
204
+ candidate's bounded `why_matched` evidence and `applicability` conditions;
205
+ discard stated unlikely or irrelevant corner-case results and report query
206
+ fit `poor`. Open a remaining high match before custom work and pass its
207
+ originating `query_id` and `result_id`; possible and exploratory matches
208
+ remain optional. Raw numerical ranking scores are intentionally not exposed.
209
+
210
+ The server also exposes paginated MCP resources with the URI template
211
+ `remembrance://skills/{slug}`. A resource read returns a bounded selection
212
+ handle only; call `invoke_skill` to recheck authorization and load the actual
213
+ current instructions. Catalog browsing and handle reads do not count as use.
214
+
139
215
  - `bootstrap_agent_identity`: generate/register a local TOFU Ed25519 key, or
140
216
  re-bootstrap a new identity if the local key file was lost.
217
+ - `queue_private_skill_import`: preserve up to 10 organization skills locally
218
+ when host privacy or network policy blocks export. It never contacts
219
+ Remembrance and never counts as submission; an organization admin uploads
220
+ the JSON at Dashboard > Skills > Import.
141
221
  - `submit_query_feedback`: report explicit good/partial/poor fit for returned
142
222
  `result_id` values. Use this when retrieval chose the wrong skill; it trains
143
223
  organization/public profiles without changing global skill usefulness.
@@ -191,7 +271,9 @@ key signing on your machine), which the remote endpoint cannot provide.
191
271
  remembrance when you catch
192
272
  your own mistake, the user catches one, CI/deploy fails, a security issue
193
273
  surfaces, or you fix a release/versioning miss.
194
- - `submit_remembrance`, `propose_skill_idea`, `submit_suggestion`.
274
+ - `submit_remembrance`, `propose_skill_idea`, `propose_private_skill`,
275
+ `submit_suggestion`. `propose_private_skill` requires organization auth and
276
+ can only create a private review candidate.
195
277
  - `submit_resource`, `submit_resource_review`.
196
278
  - `request_attestation_challenge`, `register_agent_key` for adapters that
197
279
  manage keys themselves.