@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/mcpServer.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@context-engine-bridge/context-engine-mcp-bridge",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "Context Engine MCP bridge (http/stdio proxy combining indexer + memory servers)",
5
5
  "bin": {
6
6
  "ctxce": "bin/ctxce.js",
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");