cf-memory-mcp 3.8.6 → 3.8.7

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.
@@ -1695,13 +1695,19 @@ class CFMemoryMCP {
1695
1695
  const response = JSON.parse(body);
1696
1696
  resolve(response);
1697
1697
  } catch (error) {
1698
+ // Include HTTP status + body snippet so callers can
1699
+ // see whether they got a 404, a Cloudflare HTML error
1700
+ // page, or some other non-JSON response. Without this,
1701
+ // "Invalid JSON" alone hides whether the worker is
1702
+ // even reachable.
1703
+ const bodyPreview = body.slice(0, 200).replace(/\s+/g, ' ');
1698
1704
  resolve({
1699
1705
  jsonrpc: '2.0',
1700
1706
  id: message.id || null,
1701
1707
  error: {
1702
1708
  code: -32603,
1703
- message: 'Invalid JSON response from server',
1704
- data: error.message
1709
+ message: `Invalid JSON response from server (HTTP ${res.statusCode})`,
1710
+ data: `${error.message}; body[0..200]=${bodyPreview}`
1705
1711
  }
1706
1712
  });
1707
1713
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-memory-mcp",
3
- "version": "3.8.6",
3
+ "version": "3.8.7",
4
4
  "description": "Cloudflare-hosted MCP server for code indexing, retrieval, and assistant memory with a direct remote MCP endpoint and local stdio bridge.",
5
5
  "main": "bin/cf-memory-mcp.js",
6
6
  "bin": {