@guardbee/mcp-prompt-leak-scanner 1.0.1 → 1.1.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/CHANGELOG.md +20 -0
- package/dist/server.d.ts +1 -1
- package/dist/server.js +10 -10
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @guardbee/mcp-prompt-leak-scanner
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#245](https://github.com/GuardBee/guardbee-mcp/pull/245) [`29bac2f`](https://github.com/GuardBee/guardbee-mcp/commit/29bac2f679cf97fd48d3d09eef80f328d77f5655) Thanks [@4hmetuyar](https://github.com/4hmetuyar)! - Move to the MCP TypeScript SDK v2: every server now speaks MCP 2026-07-28 as well as 2025-11-25, choosing per connection (`serveStdio`). Tools without arguments no longer declare an empty input schema. The rug-pull detector and owasp-scan connect to target servers with version negotiation, so they read servers on either revision. `instrumentServer` from `@guardbee/mcp-telemetry` accepts an SDK v1 or v2 server.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`29bac2f`](https://github.com/GuardBee/guardbee-mcp/commit/29bac2f679cf97fd48d3d09eef80f328d77f5655)]:
|
|
12
|
+
- @guardbee/mcp-telemetry@0.3.1
|
|
13
|
+
|
|
14
|
+
## 1.0.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#189](https://github.com/GuardBee/guardbee-mcp/pull/189) [`d6b75fe`](https://github.com/GuardBee/guardbee-mcp/commit/d6b75fe26af9f074d87d92d063b6f355fdcc61d3) Thanks [@4hmetuyar](https://github.com/4hmetuyar)! - - **Node 22 for the proxy, document-scanner and security-suite** (`engines.node: ">=22"`): ldapts 9 and unpdf, which they depend on, require it. Node 18 and 20 are past end of life; the other packages still run on Node 18.
|
|
19
|
+
- **`require()` works for every ESM package**: each `exports` entry gains a `default` condition next to `import` (Node 20.19+ / 22.12+ can `require()` ESM), so `require("@guardbee/mcp-secret-scanner")` no longer fails with ERR_PACKAGE_PATH_NOT_EXPORTED.
|
|
20
|
+
- **`guardbee-proxy --help` / `--version`** print usage and the version instead of failing with "No proxy target configured"; **`guardbee-gateway --help` / `--version`** no longer start the stdio server, and an unknown argument is an error.
|
|
21
|
+
- The proxy's npm description starts with "MCP security gateway" again.
|
|
22
|
+
|
|
3
23
|
## 1.0.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpServer } from "@modelcontextprotocol/
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
2
2
|
export declare function startServer(): Promise<void>;
|
|
3
3
|
/** This package's MCP tools on `server`; @guardbee/security-suite serves several packages' tools from one process this way. */
|
|
4
4
|
export declare function registerTools(server: McpServer): void;
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { McpServer } from "@modelcontextprotocol/
|
|
2
|
-
import {
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
2
|
+
import { serveStdio } from "@modelcontextprotocol/server/stdio";
|
|
3
3
|
import { instrumentServer } from "@guardbee/mcp-telemetry";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { scanText, scanBody, scanFile, scanDirectory } from "./scanner.js";
|
|
@@ -26,14 +26,15 @@ function formatFindings(findings, scannedFiles, durationMs) {
|
|
|
26
26
|
return lines.join("\n");
|
|
27
27
|
}
|
|
28
28
|
export async function startServer() {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
serveStdio(() => {
|
|
30
|
+
const server = new McpServer({
|
|
31
|
+
name: "guardbee-prompt-leak-scanner",
|
|
32
|
+
version: "0.1.0",
|
|
33
|
+
});
|
|
34
|
+
instrumentServer(server, "prompt-leak-scanner");
|
|
35
|
+
registerTools(server);
|
|
36
|
+
return server;
|
|
32
37
|
});
|
|
33
|
-
instrumentServer(server, "prompt-leak-scanner");
|
|
34
|
-
registerTools(server);
|
|
35
|
-
const transport = new StdioServerTransport();
|
|
36
|
-
await server.connect(transport);
|
|
37
38
|
}
|
|
38
39
|
/** This package's MCP tools on `server`; @guardbee/security-suite serves several packages' tools from one process this way. */
|
|
39
40
|
export function registerTools(server) {
|
|
@@ -82,7 +83,6 @@ export function registerTools(server) {
|
|
|
82
83
|
});
|
|
83
84
|
server.registerTool("list_patterns", {
|
|
84
85
|
description: "List every credential/PII pattern this scanner detects, grouped by category",
|
|
85
|
-
inputSchema: {},
|
|
86
86
|
}, async () => {
|
|
87
87
|
const lines = ["Detected patterns:\n"];
|
|
88
88
|
const byCategory = new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardbee/mcp-prompt-leak-scanner",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"mcpName": "io.github.GuardBee/prompt-leak-scanner",
|
|
5
5
|
"description": "PII and secret leak scanner for LLM prompts: catches API keys, TC Kimlik No, cards and IBANs in outbound prompts before they leave your app; MCP server and reverse proxy",
|
|
6
6
|
"type": "module",
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
14
15
|
"import": "./dist/index.js",
|
|
15
|
-
"
|
|
16
|
+
"default": "./dist/index.js"
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
@@ -24,10 +25,10 @@
|
|
|
24
25
|
"!dist/**/__tests__"
|
|
25
26
|
],
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"@modelcontextprotocol/
|
|
28
|
+
"@modelcontextprotocol/server": "^2.4.0",
|
|
28
29
|
"zod": "^4.6.7",
|
|
29
|
-
"@guardbee/guard-core": "^1.0
|
|
30
|
-
"@guardbee/mcp-telemetry": "^0.3.
|
|
30
|
+
"@guardbee/guard-core": "^1.4.0",
|
|
31
|
+
"@guardbee/mcp-telemetry": "^0.3.1"
|
|
31
32
|
},
|
|
32
33
|
"keywords": [
|
|
33
34
|
"mcp",
|