@context-engine-bridge/context-engine-mcp-bridge 0.0.21 → 0.0.22
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/package.json +1 -1
- package/src/mcpServer.js +7 -0
package/package.json
CHANGED
package/src/mcpServer.js
CHANGED
|
@@ -1172,6 +1172,13 @@ export async function runHttpMcpServer(options) {
|
|
|
1172
1172
|
return;
|
|
1173
1173
|
}
|
|
1174
1174
|
|
|
1175
|
+
// Health check endpoint (used by VS Code extension health ping)
|
|
1176
|
+
if (parsedUrl.pathname === "/health") {
|
|
1177
|
+
res.writeHead(200, { "Content-Type": "application/json" });
|
|
1178
|
+
res.end(JSON.stringify({ status: "ok", sessions: sessions.size }));
|
|
1179
|
+
return;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1175
1182
|
// 404 for everything else
|
|
1176
1183
|
res.statusCode = 404;
|
|
1177
1184
|
res.setHeader("Content-Type", "application/json");
|