@socketsecurity/mcp
Advanced tools
Comparing version
@@ -228,2 +228,13 @@ #!/usr/bin/env node | ||
const url = new URL(req.url, `http://localhost:${port}`); | ||
// Health check endpoint for K8s/Docker | ||
if (url.pathname === '/health') { | ||
res.writeHead(200, { 'Content-Type': 'application/json' }); | ||
res.end(JSON.stringify({ | ||
status: 'healthy', | ||
service: 'socket-mcp', | ||
version: VERSION, | ||
timestamp: new Date().toISOString() | ||
})); | ||
return; | ||
} | ||
if (url.pathname === '/mcp') { | ||
@@ -230,0 +241,0 @@ if (req.method === 'POST') { |
{ | ||
"name": "@socketsecurity/mcp", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"type": "module", | ||
@@ -10,3 +10,3 @@ "main": "./build/index.js", | ||
"scripts": { | ||
"build": "tsc && chmod 755 ./build/index.js && (chmod 755 ./build/mock-client/*.js 2>/dev/null || true)", | ||
"build": "tsc && tsc -p tsconfig.mock-client.json && chmod 755 ./build/index.js && (chmod 755 ./build/mock-client/*.js 2>/dev/null || true)", | ||
"debug:stdio": "node ./build/mock-client/debug-client.js", | ||
@@ -13,0 +13,0 @@ "debug:sdk": "node ./build/mock-client/stdio-client.js", |
23672
1.9%349
3.25%