@remembrance-ai/mcp-server 0.1.5 → 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
@@ -6164,7 +6164,7 @@ function resolveApiKey() {
6164
6164
  return fromFile ? String(fromFile) : "";
6165
6165
  }
6166
6166
  var apiBase = (process.env.REMEMBRANCE_API_URL || readRemembranceConfig().apiUrl || "https://remembrance.dev").replace(/\/$/, "");
6167
- var SERVER_VERSION = true ? "0.1.5" : "0.0.0-dev";
6167
+ var SERVER_VERSION = true ? "0.1.6" : "0.0.0-dev";
6168
6168
  var tools = toolDefinitions;
6169
6169
  var inputBuffer = Buffer.alloc(0);
6170
6170
  process.stdin.on("data", (chunk) => {
@@ -6633,16 +6633,21 @@ function agentProviderForIdentity(provider) {
6633
6633
  return "generic";
6634
6634
  }
6635
6635
  function writeResponse(id, result, error) {
6636
+ process.stdout.write(formatJsonRpcResponse(id, result, error));
6637
+ }
6638
+ function formatJsonRpcResponse(id, result, error) {
6636
6639
  const body = JSON.stringify({
6637
6640
  jsonrpc: "2.0",
6638
6641
  id: id ?? null,
6639
6642
  ...error ? { error } : { result }
6640
6643
  });
6641
- process.stdout.write(`${body}
6642
- `);
6644
+ return `Content-Length: ${Buffer.byteLength(body, "utf8")}\r
6645
+ \r
6646
+ ${body}`;
6643
6647
  }
6644
6648
  export {
6645
6649
  callTool,
6646
6650
  dispatchJsonRpcRequest,
6651
+ formatJsonRpcResponse,
6647
6652
  readJsonRpcMessages
6648
6653
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remembrance-ai/mcp-server",
3
- "version": "0.1.5",
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.5",
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.5",
14
+ "version": "0.1.6",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },