@bryan-thompson/inspector-assessment-cli 1.22.14 → 1.23.0
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/assess-full.js +6 -0
- package/package.json +1 -1
package/build/assess-full.js
CHANGED
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
import * as fs from "fs";
|
|
13
13
|
import * as path from "path";
|
|
14
14
|
import * as os from "os";
|
|
15
|
+
import { EventEmitter } from "events";
|
|
16
|
+
// Increase max listeners to prevent warning during security testing
|
|
17
|
+
// Full assessment runs 234+ sequential tool calls (6 tools × 13 patterns × 3 payloads)
|
|
18
|
+
// Each call may add listeners to the underlying socket
|
|
19
|
+
EventEmitter.defaultMaxListeners = 300;
|
|
20
|
+
process.setMaxListeners(300);
|
|
15
21
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
16
22
|
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
17
23
|
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
package/package.json
CHANGED