reportdash-datastore-mcp-claude-desktop 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/index.js +8 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -98,8 +98,12 @@ function forwardToAPI(mcpRequest) {
98
98
  if (res.statusCode === 204 || !data.trim()) {
99
99
  console.log(JSON.stringify({
100
100
  jsonrpc: '2.0',
101
- result: {},
102
- id: mcpRequest.id || null
101
+ error: {
102
+ code: res.statusCode,
103
+ message: `API error: ${res.statusCode}${data ? ' - ' + data : ''}`,
104
+ data: { statusCode: res.statusCode, body: data }
105
+ },
106
+ id: mcpRequest.id ?? null
103
107
  }));
104
108
  } else {
105
109
  // Forward the response as-is
@@ -126,10 +130,9 @@ function forwardToAPI(mcpRequest) {
126
130
  jsonrpc: '2.0',
127
131
  error: {
128
132
  code: -32603,
129
- message: 'Network error: ' + error.message,
130
- data: { error: error.message }
133
+ message: 'Request timeout after 30 seconds'
131
134
  },
132
- id: mcpRequest.id || null
135
+ id: mcpRequest.id ?? null
133
136
  }));
134
137
  });
135
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reportdash-datastore-mcp-claude-desktop",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "ReportDash DataStore MCP server for Claude Desktop",
5
5
  "main": "index.js",
6
6
  "bin": {