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.
- package/index.js +8 -5
- 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
|
-
|
|
102
|
-
|
|
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: '
|
|
130
|
-
data: { error: error.message }
|
|
133
|
+
message: 'Request timeout after 30 seconds'
|
|
131
134
|
},
|
|
132
|
-
id: mcpRequest.id
|
|
135
|
+
id: mcpRequest.id ?? null
|
|
133
136
|
}));
|
|
134
137
|
});
|
|
135
138
|
|