@cybermem/mcp 0.14.12 → 0.14.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/CHANGELOG.md +6 -0
- package/dist/index.js +7 -1
- package/package.json +1 -1
- package/src/index.ts +7 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -283,7 +283,13 @@ For full protocol: https://docs.cybermem.dev/agent-protocol`;
|
|
|
283
283
|
const port = parseInt(getArg("--port") || "3100", 10);
|
|
284
284
|
const app = (0, express_1.default)();
|
|
285
285
|
app.use((0, cors_1.default)());
|
|
286
|
-
app.use(
|
|
286
|
+
app.use((req, res, next) => {
|
|
287
|
+
// Skip JSON parsing for SSE message endpoint - it needs raw body stream
|
|
288
|
+
if (req.path === "/message") {
|
|
289
|
+
return next();
|
|
290
|
+
}
|
|
291
|
+
express_1.default.json()(req, res, next);
|
|
292
|
+
});
|
|
287
293
|
app.get("/health", (req, res) => res.json({ ok: true, version: PACKAGE_VERSION }));
|
|
288
294
|
app.use((req, res, next) => {
|
|
289
295
|
const clientName = req.headers["x-client-name"] || "antigravity-client";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -392,7 +392,13 @@ For full protocol: https://docs.cybermem.dev/agent-protocol`;
|
|
|
392
392
|
const port = parseInt(getArg("--port") || "3100", 10);
|
|
393
393
|
const app = express();
|
|
394
394
|
app.use(cors());
|
|
395
|
-
app.use(
|
|
395
|
+
app.use((req, res, next) => {
|
|
396
|
+
// Skip JSON parsing for SSE message endpoint - it needs raw body stream
|
|
397
|
+
if (req.path === "/message") {
|
|
398
|
+
return next();
|
|
399
|
+
}
|
|
400
|
+
express.json()(req, res, next);
|
|
401
|
+
});
|
|
396
402
|
app.get("/health", (req, res) =>
|
|
397
403
|
res.json({ ok: true, version: PACKAGE_VERSION }),
|
|
398
404
|
);
|