@remembrance-ai/mcp-server 0.1.4 → 0.1.6

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/dist/server.js CHANGED
@@ -4183,6 +4183,7 @@ var agentProviderSchema = external_exports.enum([
4183
4183
  "codex",
4184
4184
  "cursor",
4185
4185
  "claude",
4186
+ "openclaw",
4186
4187
  "generic",
4187
4188
  "other"
4188
4189
  ]);
@@ -6163,7 +6164,7 @@ function resolveApiKey() {
6163
6164
  return fromFile ? String(fromFile) : "";
6164
6165
  }
6165
6166
  var apiBase = (process.env.REMEMBRANCE_API_URL || readRemembranceConfig().apiUrl || "https://remembrance.dev").replace(/\/$/, "");
6166
- var SERVER_VERSION = true ? "0.1.4" : "0.0.0-dev";
6167
+ var SERVER_VERSION = true ? "0.1.6" : "0.0.0-dev";
6167
6168
  var tools = toolDefinitions;
6168
6169
  var inputBuffer = Buffer.alloc(0);
6169
6170
  process.stdin.on("data", (chunk) => {
@@ -6190,8 +6191,9 @@ function readJsonRpcMessages(buffer) {
6190
6191
  const errors = [];
6191
6192
  let remaining = buffer;
6192
6193
  while (true) {
6193
- const text = remaining.toString("utf8");
6194
- const legacyHeader = text.match(/^content-length:/i);
6194
+ const legacyHeader = /^content-length:/i.test(
6195
+ remaining.subarray(0, 16).toString("utf8")
6196
+ );
6195
6197
  let body = null;
6196
6198
  if (legacyHeader) {
6197
6199
  const headerEnd = remaining.indexOf("\r\n\r\n");
@@ -6631,16 +6633,21 @@ function agentProviderForIdentity(provider) {
6631
6633
  return "generic";
6632
6634
  }
6633
6635
  function writeResponse(id, result, error) {
6636
+ process.stdout.write(formatJsonRpcResponse(id, result, error));
6637
+ }
6638
+ function formatJsonRpcResponse(id, result, error) {
6634
6639
  const body = JSON.stringify({
6635
6640
  jsonrpc: "2.0",
6636
6641
  id: id ?? null,
6637
6642
  ...error ? { error } : { result }
6638
6643
  });
6639
- process.stdout.write(`${body}
6640
- `);
6644
+ return `Content-Length: ${Buffer.byteLength(body, "utf8")}\r
6645
+ \r
6646
+ ${body}`;
6641
6647
  }
6642
6648
  export {
6643
6649
  callTool,
6644
6650
  dispatchJsonRpcRequest,
6651
+ formatJsonRpcResponse,
6645
6652
  readJsonRpcMessages
6646
6653
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remembrance-ai/mcp-server",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
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.4",
9
+ "version": "0.1.6",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@remembrance-ai/mcp-server",
14
- "version": "0.1.4",
14
+ "version": "0.1.6",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },