@devpad/mcp 2.2.12 → 2.2.13
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/index.js +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13025,7 +13025,8 @@ async function handleResponseError(response) {
|
|
|
13025
13025
|
const errorMessage = errorText || "Request failed";
|
|
13026
13026
|
let parsedError = null;
|
|
13027
13027
|
try {
|
|
13028
|
-
|
|
13028
|
+
const raw = JSON.parse(errorText);
|
|
13029
|
+
parsedError = raw;
|
|
13029
13030
|
} catch {}
|
|
13030
13031
|
if (response.status === HTTP_STATUS.BAD_REQUEST && parsedError?.error?.name === "ZodError") {
|
|
13031
13032
|
const zodErrorDetails = parsedError.error.issues ? JSON.stringify(parsedError.error) : errorMessage;
|
|
@@ -13183,7 +13184,8 @@ var ApiClient = class {
|
|
|
13183
13184
|
result = undefined;
|
|
13184
13185
|
} else {
|
|
13185
13186
|
try {
|
|
13186
|
-
|
|
13187
|
+
const raw = JSON.parse(text2);
|
|
13188
|
+
result = raw;
|
|
13187
13189
|
} catch {
|
|
13188
13190
|
result = text2;
|
|
13189
13191
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/mcp",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.13",
|
|
4
4
|
"description": "MCP server for devpad - exposes devpad API functionality via Model Context Protocol",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-tools",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"zod-to-json-schema": "^3.24.6"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@devpad/api": "^2.2.
|
|
53
|
+
"@devpad/api": "^2.2.13",
|
|
54
54
|
"@types/node": "^24.3.0",
|
|
55
55
|
"typescript": "^5.0.0"
|
|
56
56
|
},
|