agent-security-scanner-mcp 3.10.1 → 3.10.2
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/cli/doctor.js +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-security-scanner-mcp",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"mcpName": "io.github.sinewaveai/agent-security-scanner-mcp",
|
|
5
5
|
"description": "Security scanner MCP server for AI coding agents. Prompt injection firewall, package hallucination detection (4.3M+ packages), 1000+ vulnerability rules with AST & taint analysis, auto-fix. For Claude Code, Cursor, Windsurf, Cline, OpenClaw.",
|
|
6
6
|
"main": "index.js",
|
package/src/cli/doctor.js
CHANGED
|
@@ -3,6 +3,7 @@ import { readFileSync, existsSync, writeFileSync, copyFileSync, mkdirSync } from
|
|
|
3
3
|
import { dirname, join } from "path";
|
|
4
4
|
import { homedir, platform } from "os";
|
|
5
5
|
import { fileURLToPath } from "url";
|
|
6
|
+
import { getDaemonClient } from '../daemon-client.js';
|
|
6
7
|
|
|
7
8
|
// Handle both ESM and CJS bundling (Smithery bundles to CJS)
|
|
8
9
|
let __dirname;
|
|
@@ -158,6 +159,18 @@ export async function runDoctor(args) {
|
|
|
158
159
|
console.log(` \u26a0 daemon.py not found (daemon mode unavailable, sync fallback will be used)`);
|
|
159
160
|
}
|
|
160
161
|
|
|
162
|
+
// 3c. Daemon live health check
|
|
163
|
+
if (existsSync(daemonPath) && pythonCmd) {
|
|
164
|
+
try {
|
|
165
|
+
const client = getDaemonClient();
|
|
166
|
+
const health = await client.health();
|
|
167
|
+
console.log(` \u2713 Daemon responding (pid=${health.pid}, cache=${health.cache_size}, uptime=${health.uptime.toFixed(1)}s)`);
|
|
168
|
+
await client.shutdown();
|
|
169
|
+
} catch (e) {
|
|
170
|
+
console.log(` \u26a0 Daemon health check failed: ${e.message}`);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
161
174
|
// 4. Python can import yaml (analyzer dependency check)
|
|
162
175
|
if (pythonCmd && existsSync(analyzerPath)) {
|
|
163
176
|
const yamlCheck = checkCommand(pythonCmd, ['-c', 'import yaml; print("ok")']);
|