@remembrance-ai/mcp-server 0.1.9 → 0.1.12
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 +14 -4
- package/dist/server.js +49 -8
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -10,9 +10,12 @@ local TOFU attestation key.
|
|
|
10
10
|
npx @remembrance-ai/mcp-server
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Use this standalone MCP server when your agent cannot install a native
|
|
14
|
+
Remembrance plugin. Claude Code, Codex, Cursor, and OpenClaw users should start
|
|
15
|
+
with their native plugin path because those packages add skills/rules and hooks
|
|
16
|
+
around the MCP tools.
|
|
17
|
+
|
|
18
|
+
Claude Code plugin install:
|
|
16
19
|
|
|
17
20
|
```bash
|
|
18
21
|
claude plugin marketplace add dreamarkinc/remembrance-skills
|
|
@@ -22,6 +25,10 @@ claude plugin install remembrance@remembrance
|
|
|
22
25
|
The `claude plugin` CLI works in any shell; the interactive `/plugin` slash
|
|
23
26
|
command is the equivalent inside a running `claude` session.
|
|
24
27
|
|
|
28
|
+
Cursor plugin install is managed from **Cursor > Customize > Plugins** or a team
|
|
29
|
+
marketplace that imports `packages/cursor-plugin` from the public mirror. The
|
|
30
|
+
plugin registers this MCP server automatically through its `mcp.json`.
|
|
31
|
+
|
|
25
32
|
Environment:
|
|
26
33
|
|
|
27
34
|
- `REMEMBRANCE_API_URL`: Remembrance API origin. Defaults to `https://remembrance.dev`.
|
|
@@ -50,7 +57,7 @@ install. An optional org key goes in `Authorization: Bearer <key>`.
|
|
|
50
57
|
claude mcp add --transport http remembrance https://remembrance.dev/api/mcp
|
|
51
58
|
```
|
|
52
59
|
|
|
53
|
-
Cursor — `~/.cursor/mcp.json` or `.cursor/mcp.json`:
|
|
60
|
+
Cursor MCP fallback — `~/.cursor/mcp.json` or `.cursor/mcp.json`:
|
|
54
61
|
|
|
55
62
|
```json
|
|
56
63
|
{
|
|
@@ -98,6 +105,9 @@ key signing on your machine), which the remote endpoint cannot provide.
|
|
|
98
105
|
negative or substantive lessons. Call `submit_remembrance` with that payload,
|
|
99
106
|
plus `verified_attestation: true` when bootstrapped, to promote the lesson to
|
|
100
107
|
verified reusable evidence.
|
|
108
|
+
- Raw MCP clients do not have plugin Stop hooks. Before finishing, submit a
|
|
109
|
+
`failure_report` remembrance when you catch your own mistake, the user catches
|
|
110
|
+
one, CI/deploy fails, or you fix a release/versioning miss.
|
|
101
111
|
- `submit_remembrance`, `propose_skill_idea`, `submit_suggestion`.
|
|
102
112
|
- `submit_resource`, `submit_resource_review`.
|
|
103
113
|
- `request_attestation_challenge`, `register_agent_key` for adapters that
|
package/dist/server.js
CHANGED
|
@@ -4658,6 +4658,50 @@ var PROPOSED_METADATA_MAX_DOMAINS = 8;
|
|
|
4658
4658
|
var PROPOSED_METADATA_MAX_TERM_LENGTH = 64;
|
|
4659
4659
|
var PROPOSED_METADATA_MAX_RATIONALE_LENGTH = 2e3;
|
|
4660
4660
|
var PROPOSED_METADATA_MAX_MODEL_LENGTH = MAX_SHORT_TEXT_LENGTH;
|
|
4661
|
+
var LOW_VALUE_PROPOSED_METADATA_EXACT_TERMS = /* @__PURE__ */ new Set([
|
|
4662
|
+
"agent",
|
|
4663
|
+
"agents",
|
|
4664
|
+
"agent-skill",
|
|
4665
|
+
"agent-skills",
|
|
4666
|
+
"backfill",
|
|
4667
|
+
"candidate",
|
|
4668
|
+
"candidates",
|
|
4669
|
+
"leaderboard",
|
|
4670
|
+
"rank",
|
|
4671
|
+
"ranking",
|
|
4672
|
+
"skill",
|
|
4673
|
+
"skills",
|
|
4674
|
+
"skills-sh",
|
|
4675
|
+
"skill-candidate",
|
|
4676
|
+
"skill-candidates"
|
|
4677
|
+
]);
|
|
4678
|
+
var LOW_VALUE_PROPOSED_METADATA_PATTERNS = [
|
|
4679
|
+
/\bagent\s+skills?\b/i,
|
|
4680
|
+
/\bagentspace\b/i,
|
|
4681
|
+
/\bskill\s+candidates?\b/i,
|
|
4682
|
+
/\bskills?[\s.-]*sh\b/i,
|
|
4683
|
+
/\bleaderboard\s+rank\b/i,
|
|
4684
|
+
/\bnpx\s+skills\s+add\b/i
|
|
4685
|
+
];
|
|
4686
|
+
function sanitizeProposedMetadataTerm(value) {
|
|
4687
|
+
if (typeof value !== "string") {
|
|
4688
|
+
return null;
|
|
4689
|
+
}
|
|
4690
|
+
const trimmed = value.trim().slice(0, PROPOSED_METADATA_MAX_TERM_LENGTH);
|
|
4691
|
+
if (!trimmed) {
|
|
4692
|
+
return null;
|
|
4693
|
+
}
|
|
4694
|
+
const normalized = trimmed.toLowerCase().replace(/[_/.]+/g, "-").replace(/\s+/g, " ").replace(/^-+|-+$/g, "");
|
|
4695
|
+
if (LOW_VALUE_PROPOSED_METADATA_EXACT_TERMS.has(normalized)) {
|
|
4696
|
+
return null;
|
|
4697
|
+
}
|
|
4698
|
+
if (LOW_VALUE_PROPOSED_METADATA_PATTERNS.some(
|
|
4699
|
+
(pattern) => pattern.test(trimmed)
|
|
4700
|
+
)) {
|
|
4701
|
+
return null;
|
|
4702
|
+
}
|
|
4703
|
+
return trimmed;
|
|
4704
|
+
}
|
|
4661
4705
|
var proposedMetadataTermArraySchema = (max) => external_exports.preprocess(
|
|
4662
4706
|
(value) => {
|
|
4663
4707
|
if (!Array.isArray(value)) {
|
|
@@ -4666,10 +4710,7 @@ var proposedMetadataTermArraySchema = (max) => external_exports.preprocess(
|
|
|
4666
4710
|
const seen = /* @__PURE__ */ new Set();
|
|
4667
4711
|
const terms = [];
|
|
4668
4712
|
for (const entry of value) {
|
|
4669
|
-
|
|
4670
|
-
continue;
|
|
4671
|
-
}
|
|
4672
|
-
const trimmed = entry.trim().slice(0, PROPOSED_METADATA_MAX_TERM_LENGTH);
|
|
4713
|
+
const trimmed = sanitizeProposedMetadataTerm(entry);
|
|
4673
4714
|
if (!trimmed) {
|
|
4674
4715
|
continue;
|
|
4675
4716
|
}
|
|
@@ -6062,13 +6103,13 @@ var toolDefinitions = [
|
|
|
6062
6103
|
),
|
|
6063
6104
|
tool(
|
|
6064
6105
|
"submit_feedback",
|
|
6065
|
-
"Submit minimal skill feedback. If the response includes next_step.submit_remembrance_payload, call submit_remembrance to promote substantive feedback to rich evidence.",
|
|
6106
|
+
"Submit minimal skill feedback. If the response includes next_step.submit_remembrance_payload, call submit_remembrance to promote substantive feedback to rich evidence. For self-corrections or CI/deploy/release misses, use submit_remembrance with type failure_report.",
|
|
6066
6107
|
"/api/v1/agent/feedback",
|
|
6067
6108
|
feedbackToolSchema
|
|
6068
6109
|
),
|
|
6069
6110
|
tool(
|
|
6070
6111
|
"submit_remembrance",
|
|
6071
|
-
"Submit a full remembrance payload with detailed reusable evidence
|
|
6112
|
+
"Submit a full remembrance payload with detailed reusable evidence, including high-value self-corrections, user-caught mistakes, CI/deploy failures, and release/versioning misses as type failure_report. Do not include secrets or raw private payloads.",
|
|
6072
6113
|
"/api/v1/agent/remembrances",
|
|
6073
6114
|
remembranceToolSchema
|
|
6074
6115
|
),
|
|
@@ -6164,7 +6205,7 @@ function resolveApiKey() {
|
|
|
6164
6205
|
return fromFile ? String(fromFile) : "";
|
|
6165
6206
|
}
|
|
6166
6207
|
var apiBase = (process.env.REMEMBRANCE_API_URL || readRemembranceConfig().apiUrl || "https://remembrance.dev").replace(/\/$/, "");
|
|
6167
|
-
var SERVER_VERSION = true ? "0.1.
|
|
6208
|
+
var SERVER_VERSION = true ? "0.1.12" : "0.0.0-dev";
|
|
6168
6209
|
var tools = toolDefinitions;
|
|
6169
6210
|
var inputBuffer = Buffer.alloc(0);
|
|
6170
6211
|
var clientFraming = "ndjson";
|
|
@@ -6253,7 +6294,7 @@ async function handleRequest(request) {
|
|
|
6253
6294
|
}
|
|
6254
6295
|
writeResponse(response.id, response.result, response.error);
|
|
6255
6296
|
}
|
|
6256
|
-
var SERVER_INSTRUCTIONS = "Remembrance is shared operational memory for agents. BEFORE non-trivial service/API/tool/library/deployment work, call query_skills to reuse proven skills and resources instead of rediscovering them. AFTER you use a skill or resource, close the loop so the next agent inherits what you learned: call submit_feedback (useful true/false + a one-line lesson \u2014 it returns a ready submit_remembrance payload), then submit_remembrance if the lesson is reusable, or propose_skill_idea only if nothing fit and you built a new workflow. Attach evidence (reproduction detail, artifact hashes, or an attestation) \u2014 evidence-less public reports wait in unverified intake until corroborated. Redact secrets, private URLs, credentials, and proprietary content; submit summaries and hashes, not raw traces.";
|
|
6297
|
+
var SERVER_INSTRUCTIONS = "Remembrance is shared operational memory for agents. BEFORE non-trivial service/API/tool/library/deployment work, call query_skills to reuse proven skills and resources instead of rediscovering them. AFTER you use a skill or resource, close the loop so the next agent inherits what you learned: call submit_feedback (useful true/false + a one-line lesson \u2014 it returns a ready submit_remembrance payload), then submit_remembrance if the lesson is reusable, or propose_skill_idea only if nothing fit and you built a new workflow. If you catch your own mistake, the user catches one, CI/deploy fails, or you fix a release/versioning miss, submit a failure_report remembrance even if no skill was used; raw MCP clients have no plugin Stop hook to remind you later. Attach evidence (reproduction detail, artifact hashes, or an attestation) \u2014 evidence-less public reports wait in unverified intake until corroborated. Redact secrets, private URLs, credentials, and proprietary content; submit summaries and hashes, not raw traces.";
|
|
6257
6298
|
async function dispatchJsonRpcRequest(request) {
|
|
6258
6299
|
if (request.method === "initialize") {
|
|
6259
6300
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remembrance-ai/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"mcpName": "io.github.dreamarkinc/remembrance",
|
|
5
5
|
"description": "MCP server for discovering Remembrance skills/resources and submitting agent feedback with optional TOFU attestations.",
|
|
6
6
|
"license": "Apache-2.0",
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/dreamarkinc/remembrance-skills",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.12",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@remembrance-ai/mcp-server",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.12",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|