@socketsecurity/mcp 0.0.4 → 0.0.5
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/build/index.js +11 -0
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -225,6 +225,17 @@ if (useHttp) {
|
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
227
|
const url = new URL(req.url, `http://localhost:${port}`);
|
|
228
|
+
// Health check endpoint for K8s/Docker
|
|
229
|
+
if (url.pathname === '/health') {
|
|
230
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
231
|
+
res.end(JSON.stringify({
|
|
232
|
+
status: 'healthy',
|
|
233
|
+
service: 'socket-mcp',
|
|
234
|
+
version: VERSION,
|
|
235
|
+
timestamp: new Date().toISOString()
|
|
236
|
+
}));
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
228
239
|
if (url.pathname === '/mcp') {
|
|
229
240
|
if (req.method === 'POST') {
|
|
230
241
|
// Handle JSON-RPC messages
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"socket-mcp": "./build/index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "tsc && chmod 755 ./build/index.js && (chmod 755 ./build/mock-client/*.js 2>/dev/null || true)",
|
|
10
|
+
"build": "tsc && tsc -p tsconfig.mock-client.json && chmod 755 ./build/index.js && (chmod 755 ./build/mock-client/*.js 2>/dev/null || true)",
|
|
11
11
|
"debug:stdio": "node ./build/mock-client/debug-client.js",
|
|
12
12
|
"debug:sdk": "node ./build/mock-client/stdio-client.js",
|
|
13
13
|
"debug:http": "node ./build/mock-client/http-client.js",
|