protect-mcp 0.4.4 → 0.4.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/dist/cli.mjs CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  loadPolicy,
13
13
  validateCredentials
14
14
  } from "./chunk-VF3OCG4D.mjs";
15
+ import "./chunk-PQJP2ZCI.mjs";
15
16
 
16
17
  // src/cli.ts
17
18
  function printHelp() {
@@ -128,8 +129,8 @@ async function handleInit(argv) {
128
129
  let keypair;
129
130
  {
130
131
  const { randomBytes } = await import("crypto");
131
- const { ed25519 } = await import("./ed25519-EDO4K4EP.mjs");
132
- const { bytesToHex } = await import("./utils-IDWBSHJU.mjs");
132
+ const { ed25519 } = await import("./ed25519-V7HDL2WC.mjs");
133
+ const { bytesToHex } = await import("./utils-6AYZFE5A.mjs");
133
134
  const privateKey = randomBytes(32);
134
135
  const publicKey = ed25519.getPublicKey(privateKey);
135
136
  keypair = {
@@ -590,7 +591,7 @@ ${bold("\u{1F6E1}\uFE0F Recent Receipts")} (last ${recent.length})
590
591
  async function handleBundle(argv) {
591
592
  const { readFileSync, writeFileSync, existsSync } = await import("fs");
592
593
  const { join } = await import("path");
593
- const { createAuditBundle } = await import("./bundle-TXOTFJIJ.mjs");
594
+ const { createAuditBundle } = await import("./bundle-XTR3YMPO.mjs");
594
595
  let dir = process.cwd();
595
596
  const dirIdx = argv.indexOf("--dir");
596
597
  if (dirIdx !== -1 && argv[dirIdx + 1]) dir = argv[dirIdx + 1];
@@ -668,8 +669,8 @@ ${bold("protect-mcp quickstart")}
668
669
  const { randomBytes } = await import("crypto");
669
670
  let keypair;
670
671
  try {
671
- const { ed25519 } = await import("./ed25519-EDO4K4EP.mjs");
672
- const { bytesToHex } = await import("./utils-IDWBSHJU.mjs");
672
+ const { ed25519 } = await import("./ed25519-V7HDL2WC.mjs");
673
+ const { bytesToHex } = await import("./utils-6AYZFE5A.mjs");
673
674
  const privateKey = randomBytes(32);
674
675
  const publicKey = ed25519.getPublicKey(privateKey);
675
676
  keypair = {
@@ -1086,7 +1087,7 @@ async function main() {
1086
1087
  if (useHttp) {
1087
1088
  const portIdx = args.indexOf("--port");
1088
1089
  const httpPort = portIdx >= 0 && args[portIdx + 1] ? parseInt(args[portIdx + 1]) : 3e3;
1089
- const { startHttpTransport } = await import("./http-transport-VLIPOPIC.mjs");
1090
+ const { startHttpTransport } = await import("./http-transport-XCHIKTYG.mjs");
1090
1091
  startHttpTransport({ port: httpPort, config, serverCommand: childCommand });
1091
1092
  return;
1092
1093
  }
@@ -1276,7 +1277,7 @@ async function handleReport(args) {
1276
1277
  dir = args[++i];
1277
1278
  }
1278
1279
  }
1279
- const { generateReport, formatReportMarkdown } = await import("./report-ENQ3KUI2.mjs");
1280
+ const { generateReport, formatReportMarkdown } = await import("./report-5XCNW6FB.mjs");
1280
1281
  const { join } = await import("path");
1281
1282
  const logPath = join(dir, ".protect-mcp-log.jsonl");
1282
1283
  const receiptPath = join(dir, ".protect-mcp-receipts.jsonl");
@@ -13,95 +13,10 @@
13
13
  * - web_search (rate-limited)
14
14
  * - deploy (high-privilege)
15
15
  */
16
- interface JsonRpcRequest {
17
- jsonrpc: '2.0';
18
- id?: string | number;
19
- method: string;
20
- params?: Record<string, unknown>;
21
- }
22
- declare function handleRequest(request: JsonRpcRequest): string;
23
16
  /**
24
- * Smithery sandbox server — returns a minimal MCP server instance
17
+ * Smithery sandbox server — returns a McpServer instance
25
18
  * that Smithery can scan for tool/resource capabilities.
26
19
  */
27
- declare function createSandboxServer(): {
28
- tools: ({
29
- name: string;
30
- description: string;
31
- inputSchema: {
32
- type: string;
33
- properties: {
34
- path: {
35
- type: string;
36
- description: string;
37
- };
38
- content?: undefined;
39
- query?: undefined;
40
- environment?: undefined;
41
- reason?: undefined;
42
- };
43
- required: string[];
44
- };
45
- } | {
46
- name: string;
47
- description: string;
48
- inputSchema: {
49
- type: string;
50
- properties: {
51
- path: {
52
- type: string;
53
- description: string;
54
- };
55
- content: {
56
- type: string;
57
- description: string;
58
- };
59
- query?: undefined;
60
- environment?: undefined;
61
- reason?: undefined;
62
- };
63
- required: string[];
64
- };
65
- } | {
66
- name: string;
67
- description: string;
68
- inputSchema: {
69
- type: string;
70
- properties: {
71
- query: {
72
- type: string;
73
- description: string;
74
- };
75
- path?: undefined;
76
- content?: undefined;
77
- environment?: undefined;
78
- reason?: undefined;
79
- };
80
- required: string[];
81
- };
82
- } | {
83
- name: string;
84
- description: string;
85
- inputSchema: {
86
- type: string;
87
- properties: {
88
- environment: {
89
- type: string;
90
- description: string;
91
- enum: string[];
92
- };
93
- reason: {
94
- type: string;
95
- description: string;
96
- };
97
- path?: undefined;
98
- content?: undefined;
99
- query?: undefined;
100
- };
101
- required: string[];
102
- };
103
- })[];
104
- handleRequest: typeof handleRequest;
105
- };
20
+ declare function createSandboxServer(): any;
106
21
 
107
22
  export { createSandboxServer };
@@ -13,95 +13,10 @@
13
13
  * - web_search (rate-limited)
14
14
  * - deploy (high-privilege)
15
15
  */
16
- interface JsonRpcRequest {
17
- jsonrpc: '2.0';
18
- id?: string | number;
19
- method: string;
20
- params?: Record<string, unknown>;
21
- }
22
- declare function handleRequest(request: JsonRpcRequest): string;
23
16
  /**
24
- * Smithery sandbox server — returns a minimal MCP server instance
17
+ * Smithery sandbox server — returns a McpServer instance
25
18
  * that Smithery can scan for tool/resource capabilities.
26
19
  */
27
- declare function createSandboxServer(): {
28
- tools: ({
29
- name: string;
30
- description: string;
31
- inputSchema: {
32
- type: string;
33
- properties: {
34
- path: {
35
- type: string;
36
- description: string;
37
- };
38
- content?: undefined;
39
- query?: undefined;
40
- environment?: undefined;
41
- reason?: undefined;
42
- };
43
- required: string[];
44
- };
45
- } | {
46
- name: string;
47
- description: string;
48
- inputSchema: {
49
- type: string;
50
- properties: {
51
- path: {
52
- type: string;
53
- description: string;
54
- };
55
- content: {
56
- type: string;
57
- description: string;
58
- };
59
- query?: undefined;
60
- environment?: undefined;
61
- reason?: undefined;
62
- };
63
- required: string[];
64
- };
65
- } | {
66
- name: string;
67
- description: string;
68
- inputSchema: {
69
- type: string;
70
- properties: {
71
- query: {
72
- type: string;
73
- description: string;
74
- };
75
- path?: undefined;
76
- content?: undefined;
77
- environment?: undefined;
78
- reason?: undefined;
79
- };
80
- required: string[];
81
- };
82
- } | {
83
- name: string;
84
- description: string;
85
- inputSchema: {
86
- type: string;
87
- properties: {
88
- environment: {
89
- type: string;
90
- description: string;
91
- enum: string[];
92
- };
93
- reason: {
94
- type: string;
95
- description: string;
96
- };
97
- path?: undefined;
98
- content?: undefined;
99
- query?: undefined;
100
- };
101
- required: string[];
102
- };
103
- })[];
104
- handleRequest: typeof handleRequest;
105
- };
20
+ declare function createSandboxServer(): any;
106
21
 
107
22
  export { createSandboxServer };