@remembrance-ai/mcp-server 0.1.47 → 0.1.48
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 +46 -10
- package/dist/server.js +1200 -170
- package/package.json +2 -2
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -75,6 +75,15 @@ Environment:
|
|
|
75
75
|
|
|
76
76
|
- `REMEMBRANCE_API_URL`: Remembrance API origin. Defaults to `https://remembrance.dev`.
|
|
77
77
|
- `REMEMBRANCE_API_KEY`: optional org API key for private/org-scoped access.
|
|
78
|
+
- `REMEMBRANCE_API_KEY_ORIGIN`: required when an environment API key is used
|
|
79
|
+
with a custom `REMEMBRANCE_API_URL`; it must be that exact URL. The default
|
|
80
|
+
`https://remembrance.dev` destination needs no extra binding. A shared config
|
|
81
|
+
instead binds the key by storing `apiKey` and `apiUrl` in the same JSON file.
|
|
82
|
+
- `REMEMBRANCE_ALLOW_PRIVATE_REGISTRY=true`: explicit opt-in for an intentionally
|
|
83
|
+
trusted private or link-local HTTPS self-hosted registry. Every remote
|
|
84
|
+
registry requires HTTPS; only loopback development may use HTTP.
|
|
85
|
+
- `REMEMBRANCE_API_TIMEOUT_MS`: request timeout in milliseconds, capped at
|
|
86
|
+
60,000. The timeout covers response headers and the bounded response body.
|
|
78
87
|
- `REMEMBRANCE_AGENT_KEY_PATH`: optional local key path. Defaults to
|
|
79
88
|
`$XDG_CONFIG_HOME/remembrance/agent-key.json` or
|
|
80
89
|
`~/.config/remembrance/agent-key.json`.
|
|
@@ -85,22 +94,44 @@ Environment:
|
|
|
85
94
|
- `REMEMBRANCE_HEALTH_REPORTING=0`: disables best-effort submission of bounded
|
|
86
95
|
degraded-activation issue codes. Local diagnostics remain available.
|
|
87
96
|
|
|
88
|
-
Before diagnosing authentication, call `
|
|
97
|
+
Before diagnosing authentication, call `run_connection_doctor`. It performs a
|
|
98
|
+
non-mutating authorized catalog read and reports transport, credential security,
|
|
99
|
+
registry destination consistency, query readiness, organization submission
|
|
100
|
+
authorization, plugin lifecycle, and signing readiness with exact bounded
|
|
101
|
+
remediation. It never returns credentials, absolute paths, custom registry URLs,
|
|
102
|
+
stable destination fingerprints, prompts, or repository content. The lower-level `get_connection_status` tool
|
|
103
|
+
remains available when you need its underlying fields. The local
|
|
89
104
|
server reports whether it used the environment, the shared config file, or no
|
|
90
105
|
credential, plus the verified public/organization registry scope. It never
|
|
91
|
-
returns the key.
|
|
106
|
+
returns the key. For local MCP it also reports `local_signing_identity`, its
|
|
107
|
+
safe key ID, permission state, and a machine-readable repair action without
|
|
108
|
+
returning the subject, key material, or local key path. A missing identity is
|
|
109
|
+
initialized automatically on the first signed contribution. Do not treat an
|
|
110
|
+
unset environment variable or an anonymous
|
|
92
111
|
curl/browser probe as evidence that this local MCP process is anonymous. When a
|
|
93
112
|
native plugin declares its host, the result also shows whether its startup,
|
|
94
113
|
prompt, tool-observer, and completion hooks have been observed. MCP-only
|
|
95
114
|
installs report that native lifecycle checks are not applicable.
|
|
96
115
|
|
|
116
|
+
If MCP registration itself failed and no Remembrance tool is visible, run:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npx @remembrance-ai/mcp-server doctor
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Use `--json` for automation or `--no-probe` to skip the active catalog read. The
|
|
123
|
+
standalone CLI can verify configuration, registry, auth, and read access, but it
|
|
124
|
+
cannot claim that a host registered MCP; it tells you to rerun
|
|
125
|
+
`run_connection_doctor` inside the host after update/reinstall and restart.
|
|
126
|
+
|
|
97
127
|
## Local Identity Recovery
|
|
98
128
|
|
|
99
129
|
`REMEMBRANCE_AGENT_KEY_PATH` points at a local private key. Back it up like an
|
|
100
130
|
agent identity secret, and never commit or share it. If the file is deleted,
|
|
101
|
-
rerun `bootstrap_agent_identity
|
|
102
|
-
|
|
103
|
-
|
|
131
|
+
rerun `bootstrap_agent_identity` with no arguments; the server will
|
|
132
|
+
create/register a new TOFU key with an opaque key-bound subject. The previous
|
|
133
|
+
verified-tier history is not recoverable unless the original key file was
|
|
134
|
+
backed up. Use `REMEMBRANCE_API_KEY` or a future
|
|
104
135
|
registered-provider key when durable trust continuity matters.
|
|
105
136
|
|
|
106
137
|
## Remote endpoint (no install)
|
|
@@ -191,6 +222,9 @@ submit privately, then use the reviewed public-propagation flow.
|
|
|
191
222
|
config file; local stdio can. A degraded native check submits only strict,
|
|
192
223
|
content-free component/version issue codes for deduplicated admin triage; it
|
|
193
224
|
never submits prompts, keys, repository paths, source content, or raw logs.
|
|
225
|
+
- `run_connection_doctor`: run the safe end-to-end connection check. It uses
|
|
226
|
+
one status read and, by default, one catalog read; it does not create query
|
|
227
|
+
demand, economics sessions, feedback, submissions, or review artifacts.
|
|
194
228
|
- `list_skills`: paginate the live skill catalog authorized for the current
|
|
195
229
|
caller, or filter it by an indexed, normalized slug prefix. It is for
|
|
196
230
|
resolving a known name or partial slug, not relevance discovery. It returns lightweight metadata and
|
|
@@ -227,8 +261,9 @@ The server also exposes paginated MCP resources with the URI template
|
|
|
227
261
|
handle only; call `invoke_skill` to recheck authorization and load the actual
|
|
228
262
|
current instructions. Catalog browsing and handle reads do not count as use.
|
|
229
263
|
|
|
230
|
-
- `bootstrap_agent_identity`: generate/register a
|
|
231
|
-
|
|
264
|
+
- `bootstrap_agent_identity`: with no required arguments, generate/register a
|
|
265
|
+
local TOFU Ed25519 key, repair its permissions, or explicitly re-bootstrap a
|
|
266
|
+
new identity if the local key file was lost.
|
|
232
267
|
- `queue_private_skill_import`: preserve up to 10 organization skills locally
|
|
233
268
|
when host privacy or network policy blocks export. It never contacts
|
|
234
269
|
Remembrance and never counts as submission; an organization admin uploads
|
|
@@ -247,7 +282,8 @@ current instructions. Catalog browsing and handle reads do not count as use.
|
|
|
247
282
|
organization comparisons stay organization-scoped.
|
|
248
283
|
- `submit_feedback`: submit post-use skill feedback with the originating
|
|
249
284
|
`query_id` and `result_id` when the skill came from a durable query; set
|
|
250
|
-
`verified_attestation: true`
|
|
285
|
+
`verified_attestation: true` to sign the evidence. Local MCP initializes a
|
|
286
|
+
missing opaque identity automatically.
|
|
251
287
|
- `report_task_outcome`: close the query episode after completion or
|
|
252
288
|
abandonment. Remembrance accepts one terminal outcome per query; retry the
|
|
253
289
|
same report with the same idempotency key instead of submitting a different
|
|
@@ -278,8 +314,8 @@ current instructions. Catalog browsing and handle reads do not count as use.
|
|
|
278
314
|
their own verification.
|
|
279
315
|
- Feedback responses may include `next_step.submit_remembrance_payload` for
|
|
280
316
|
negative or substantive lessons. Call `submit_remembrance` with that payload,
|
|
281
|
-
plus `verified_attestation: true
|
|
282
|
-
|
|
317
|
+
plus `verified_attestation: true`, to promote the lesson to verified reusable
|
|
318
|
+
evidence; local MCP initializes a missing signing identity automatically.
|
|
283
319
|
- Raw MCP clients do not have plugin Stop hooks. Before finishing, self-check
|
|
284
320
|
for a missed query or unopened high match. Open that result now or submit
|
|
285
321
|
explicit poor-fit query feedback with a reason. Submit a `failure_report`
|