denpex-mcp 0.2.20 → 0.2.21
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 +12 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -165,15 +165,24 @@ var DenpexClient = class {
|
|
|
165
165
|
if (this.config.apiKey) headers["X-Denpex-Key"] = this.config.apiKey;
|
|
166
166
|
if (body !== void 0) headers["Content-Type"] = "application/json";
|
|
167
167
|
Object.assign(headers, opts.headers ?? {});
|
|
168
|
-
let res;
|
|
169
168
|
try {
|
|
170
|
-
res = await fetch(`${this.config.apiUrl}${path2}`, {
|
|
169
|
+
const res = await fetch(`${this.config.apiUrl}${path2}`, {
|
|
171
170
|
method,
|
|
172
171
|
headers,
|
|
173
172
|
body: body !== void 0 ? JSON.stringify(body) : void 0,
|
|
174
173
|
signal: controller.signal
|
|
175
174
|
});
|
|
175
|
+
const raw = await res.text();
|
|
176
|
+
let parsed;
|
|
177
|
+
try {
|
|
178
|
+
parsed = raw ? JSON.parse(raw) : void 0;
|
|
179
|
+
} catch {
|
|
180
|
+
parsed = raw;
|
|
181
|
+
}
|
|
182
|
+
if (!res.ok) throw new DenpexError(res.status, parsed, `HTTP ${res.status}`);
|
|
183
|
+
return parsed;
|
|
176
184
|
} catch (e) {
|
|
185
|
+
if (e instanceof DenpexError) throw e;
|
|
177
186
|
const err = e;
|
|
178
187
|
if (err?.name === "AbortError") {
|
|
179
188
|
throw new DenpexError(504, null, "Request timed out");
|
|
@@ -182,17 +191,6 @@ var DenpexClient = class {
|
|
|
182
191
|
} finally {
|
|
183
192
|
clearTimeout(timer);
|
|
184
193
|
}
|
|
185
|
-
const raw = await res.text();
|
|
186
|
-
let parsed;
|
|
187
|
-
try {
|
|
188
|
-
parsed = raw ? JSON.parse(raw) : void 0;
|
|
189
|
-
} catch {
|
|
190
|
-
parsed = raw;
|
|
191
|
-
}
|
|
192
|
-
if (!res.ok) {
|
|
193
|
-
throw new DenpexError(res.status, parsed, `HTTP ${res.status}`);
|
|
194
|
-
}
|
|
195
|
-
return parsed;
|
|
196
194
|
}
|
|
197
195
|
};
|
|
198
196
|
|
|
@@ -12975,7 +12973,7 @@ function registerPrompts(server) {
|
|
|
12975
12973
|
|
|
12976
12974
|
// src/version.ts
|
|
12977
12975
|
var SERVER_NAME = "denpex";
|
|
12978
|
-
var SERVER_VERSION = "0.2.
|
|
12976
|
+
var SERVER_VERSION = "0.2.21";
|
|
12979
12977
|
|
|
12980
12978
|
// src/server.ts
|
|
12981
12979
|
function createServer() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "denpex-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
4
4
|
"description": "Denpex MCP server, diagnose GPU/ML training failures (CUDA OOM, NCCL timeouts, Xid faults, NaN loss) from Claude Desktop, Cursor, or Claude Code, with optional explicit zero-egress mode.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|