perfai-cloud-mcp 0.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.
Files changed (99) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +243 -0
  3. package/dist/auth/oauthFlow.d.ts +23 -0
  4. package/dist/auth/oauthFlow.d.ts.map +1 -0
  5. package/dist/auth/oauthFlow.js +174 -0
  6. package/dist/auth/pkce.d.ts +11 -0
  7. package/dist/auth/pkce.d.ts.map +1 -0
  8. package/dist/auth/pkce.js +17 -0
  9. package/dist/auth/tokenValidator.d.ts +40 -0
  10. package/dist/auth/tokenValidator.d.ts.map +1 -0
  11. package/dist/auth/tokenValidator.js +117 -0
  12. package/dist/cli.d.ts +3 -0
  13. package/dist/cli.d.ts.map +1 -0
  14. package/dist/cli.js +387 -0
  15. package/dist/client/apiClient.d.ts +27 -0
  16. package/dist/client/apiClient.d.ts.map +1 -0
  17. package/dist/client/apiClient.js +81 -0
  18. package/dist/client/authManager.d.ts +42 -0
  19. package/dist/client/authManager.d.ts.map +1 -0
  20. package/dist/client/authManager.js +136 -0
  21. package/dist/client/errors.d.ts +10 -0
  22. package/dist/client/errors.d.ts.map +1 -0
  23. package/dist/client/errors.js +29 -0
  24. package/dist/client/types.d.ts +54 -0
  25. package/dist/client/types.d.ts.map +1 -0
  26. package/dist/client/types.js +1 -0
  27. package/dist/config.d.ts +23 -0
  28. package/dist/config.d.ts.map +1 -0
  29. package/dist/config.js +50 -0
  30. package/dist/env.d.ts +2 -0
  31. package/dist/env.d.ts.map +1 -0
  32. package/dist/env.js +8 -0
  33. package/dist/log-guard.d.ts +2 -0
  34. package/dist/log-guard.d.ts.map +1 -0
  35. package/dist/log-guard.js +17 -0
  36. package/dist/server.d.ts +4 -0
  37. package/dist/server.d.ts.map +1 -0
  38. package/dist/server.js +370 -0
  39. package/dist/tools/index.d.ts +352 -0
  40. package/dist/tools/index.d.ts.map +1 -0
  41. package/dist/tools/index.js +39 -0
  42. package/dist/tools/protected/autoFix.d.ts +22 -0
  43. package/dist/tools/protected/autoFix.d.ts.map +1 -0
  44. package/dist/tools/protected/autoFix.js +64 -0
  45. package/dist/tools/protected/autoFixAll.d.ts +26 -0
  46. package/dist/tools/protected/autoFixAll.d.ts.map +1 -0
  47. package/dist/tools/protected/autoFixAll.js +79 -0
  48. package/dist/tools/protected/checkAppStatus.d.ts +21 -0
  49. package/dist/tools/protected/checkAppStatus.d.ts.map +1 -0
  50. package/dist/tools/protected/checkAppStatus.js +57 -0
  51. package/dist/tools/protected/checkTaskStatus.d.ts +21 -0
  52. package/dist/tools/protected/checkTaskStatus.d.ts.map +1 -0
  53. package/dist/tools/protected/checkTaskStatus.js +53 -0
  54. package/dist/tools/protected/getFixSummary.d.ts +17 -0
  55. package/dist/tools/protected/getFixSummary.d.ts.map +1 -0
  56. package/dist/tools/protected/getFixSummary.js +90 -0
  57. package/dist/tools/protected/getVulnerabilities.d.ts +29 -0
  58. package/dist/tools/protected/getVulnerabilities.d.ts.map +1 -0
  59. package/dist/tools/protected/getVulnerabilities.js +41 -0
  60. package/dist/tools/protected/listApps.d.ts +25 -0
  61. package/dist/tools/protected/listApps.d.ts.map +1 -0
  62. package/dist/tools/protected/listApps.js +32 -0
  63. package/dist/tools/protected/logout.d.ts +12 -0
  64. package/dist/tools/protected/logout.d.ts.map +1 -0
  65. package/dist/tools/protected/logout.js +9 -0
  66. package/dist/tools/protected/registerApp.d.ts +33 -0
  67. package/dist/tools/protected/registerApp.d.ts.map +1 -0
  68. package/dist/tools/protected/registerApp.js +96 -0
  69. package/dist/tools/protected/runSecurityTest.d.ts +17 -0
  70. package/dist/tools/protected/runSecurityTest.d.ts.map +1 -0
  71. package/dist/tools/protected/runSecurityTest.js +48 -0
  72. package/dist/tools/protected/selectApp.d.ts +18 -0
  73. package/dist/tools/protected/selectApp.d.ts.map +1 -0
  74. package/dist/tools/protected/selectApp.js +29 -0
  75. package/dist/tools/protected/submitAppCredentials.d.ts +22 -0
  76. package/dist/tools/protected/submitAppCredentials.d.ts.map +1 -0
  77. package/dist/tools/protected/submitAppCredentials.js +43 -0
  78. package/dist/tools/protected/suggestFix.d.ts +22 -0
  79. package/dist/tools/protected/suggestFix.d.ts.map +1 -0
  80. package/dist/tools/protected/suggestFix.js +37 -0
  81. package/dist/tools/protected/vulnerabilityActions.d.ts +62 -0
  82. package/dist/tools/protected/vulnerabilityActions.d.ts.map +1 -0
  83. package/dist/tools/protected/vulnerabilityActions.js +69 -0
  84. package/dist/tools/public/authStatus.d.ts +12 -0
  85. package/dist/tools/public/authStatus.d.ts.map +1 -0
  86. package/dist/tools/public/authStatus.js +13 -0
  87. package/dist/tools/public/login.d.ts +21 -0
  88. package/dist/tools/public/login.d.ts.map +1 -0
  89. package/dist/tools/public/login.js +305 -0
  90. package/dist/utils/formatters.d.ts +7 -0
  91. package/dist/utils/formatters.d.ts.map +1 -0
  92. package/dist/utils/formatters.js +47 -0
  93. package/dist/utils/poll.d.ts +19 -0
  94. package/dist/utils/poll.d.ts.map +1 -0
  95. package/dist/utils/poll.js +32 -0
  96. package/dist/utils/promptBuilder.d.ts +20 -0
  97. package/dist/utils/promptBuilder.d.ts.map +1 -0
  98. package/dist/utils/promptBuilder.js +131 -0
  99. package/package.json +55 -0
@@ -0,0 +1,7 @@
1
+ import type { AppRecord, TaskRecord, VulnerabilityRecord } from "../client/types.js";
2
+ export declare function formatApp(app: AppRecord): string;
3
+ export declare function formatAppList(apps: AppRecord[], total: number, page: number, pageSize: number): string;
4
+ export declare function formatTask(task: TaskRecord): string;
5
+ export declare function formatVulnerability(v: VulnerabilityRecord, sequence: number): string;
6
+ export declare function formatVulnerabilityList(vulnerabilities: VulnerabilityRecord[], total: number, page: number, pageSize: number): string;
7
+ //# sourceMappingURL=formatters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/utils/formatters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AASrF,wBAAgB,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM,CAQhD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAUtG;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAEnD;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAapF;AAED,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,mBAAmB,EAAE,EACtC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR"}
@@ -0,0 +1,47 @@
1
+ const SEVERITY_ICON = {
2
+ critical: "🔴",
3
+ high: "🟠",
4
+ medium: "🟡",
5
+ low: "🟢",
6
+ };
7
+ export function formatApp(app) {
8
+ const name = app.label ?? app.name ?? app.appUrl ?? app.appId;
9
+ return (`📱 **${name}**\n` +
10
+ ` App ID: ${app.appId}\n` +
11
+ (app.appUrl ? ` URL: ${app.appUrl}\n` : "") +
12
+ ` Registration status: ${app.registrationStatus ?? "UNKNOWN"}`);
13
+ }
14
+ export function formatAppList(apps, total, page, pageSize) {
15
+ if (apps.length === 0)
16
+ return "No apps found.";
17
+ const rows = apps
18
+ .map((app, i) => {
19
+ const seq = (page - 1) * pageSize + i + 1;
20
+ const name = app.label ?? app.name ?? app.appUrl ?? app.appId;
21
+ return `${seq}. **${name}** (appId: ${app.appId}) — ${app.registrationStatus ?? "UNKNOWN"}`;
22
+ })
23
+ .join("\n");
24
+ return `${rows}\n\nPage ${page} — ${apps.length} of ${total} total.`;
25
+ }
26
+ export function formatTask(task) {
27
+ return `🧪 Task ${task.taskId}\n State: ${task.state ?? "UNKNOWN"}`;
28
+ }
29
+ export function formatVulnerability(v, sequence) {
30
+ const severity = (v.severity ?? "unknown").toString();
31
+ const icon = SEVERITY_ICON[severity.toLowerCase()] ?? "⚪";
32
+ const title = v.title ?? v.label ?? v.category ?? "Untitled finding";
33
+ const endpoint = v.method && v.path ? `${String(v.method).toUpperCase()} ${v.path}` : v.path ?? "";
34
+ const flags = [v.isFixed ? "fixed" : null, v.isDismissed ? "dismissed" : null].filter(Boolean).join(", ");
35
+ return (`${sequence}. ${icon} **${title}** (${severity})` +
36
+ (endpoint ? ` — ${endpoint}` : "") +
37
+ (flags ? ` [${flags}]` : "") +
38
+ `\n id: ${v.id ?? v._id}`);
39
+ }
40
+ export function formatVulnerabilityList(vulnerabilities, total, page, pageSize) {
41
+ if (vulnerabilities.length === 0)
42
+ return "No vulnerabilities found.";
43
+ const rows = vulnerabilities
44
+ .map((v, i) => formatVulnerability(v, (page - 1) * pageSize + i + 1))
45
+ .join("\n");
46
+ return `${rows}\n\nPage ${page} — ${vulnerabilities.length} of ${total} total. Use suggest_fix with a listed # or id.`;
47
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Polls `fetch` until `isTerminal` is true or `budgetMs` elapses, using the
3
+ * exponential-backoff schedule the API docs recommend (start small, cap the
4
+ * interval). A single MCP tool call can only block so long before a calling
5
+ * client's own timeout fires, so this bounds itself to `budgetMs` and returns
6
+ * whatever the latest value was — callers re-invoke the tool to keep polling.
7
+ */
8
+ export declare function pollWithBudget<T>(options: {
9
+ fetch: () => Promise<T>;
10
+ isTerminal: (value: T) => boolean;
11
+ budgetMs: number;
12
+ startIntervalMs: number;
13
+ maxIntervalMs: number;
14
+ }): Promise<{
15
+ value: T;
16
+ terminal: boolean;
17
+ elapsedMs: number;
18
+ }>;
19
+ //# sourceMappingURL=poll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/utils/poll.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE;IAC/C,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACxB,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAwB9D"}
@@ -0,0 +1,32 @@
1
+ function sleep(ms) {
2
+ return new Promise((resolve) => setTimeout(resolve, ms));
3
+ }
4
+ /**
5
+ * Polls `fetch` until `isTerminal` is true or `budgetMs` elapses, using the
6
+ * exponential-backoff schedule the API docs recommend (start small, cap the
7
+ * interval). A single MCP tool call can only block so long before a calling
8
+ * client's own timeout fires, so this bounds itself to `budgetMs` and returns
9
+ * whatever the latest value was — callers re-invoke the tool to keep polling.
10
+ */
11
+ export async function pollWithBudget(options) {
12
+ const { fetch, isTerminal, budgetMs, startIntervalMs, maxIntervalMs } = options;
13
+ const start = Date.now();
14
+ let interval = startIntervalMs;
15
+ let value = await fetch();
16
+ if (isTerminal(value)) {
17
+ return { value, terminal: true, elapsedMs: Date.now() - start };
18
+ }
19
+ while (Date.now() - start < budgetMs) {
20
+ const remaining = budgetMs - (Date.now() - start);
21
+ const wait = Math.min(interval, maxIntervalMs, remaining);
22
+ if (wait <= 0)
23
+ break;
24
+ await sleep(wait);
25
+ value = await fetch();
26
+ if (isTerminal(value)) {
27
+ return { value, terminal: true, elapsedMs: Date.now() - start };
28
+ }
29
+ interval = Math.min(interval * 2, maxIntervalMs);
30
+ }
31
+ return { value, terminal: false, elapsedMs: Date.now() - start };
32
+ }
@@ -0,0 +1,20 @@
1
+ import type { VulnerabilityRecord } from "../client/types.js";
2
+ /**
3
+ * Builds a self-contained fix prompt for a coding assistant from a
4
+ * vulnerability record. The public vulnerabilities API only guarantees
5
+ * `severity` / `isFixed` / `isDismissed`; everything else is surfaced
6
+ * defensively so the prompt stays useful even if the API adds/renames
7
+ * fields the client doesn't know about yet.
8
+ */
9
+ export declare function buildFixPrompt(appLabel: string, vuln: VulnerabilityRecord): string;
10
+ /**
11
+ * Builds a structured, actionable fix instruction that an AI client can
12
+ * execute directly. Unlike buildFixPrompt (conversational), this returns
13
+ * a step-by-step action plan the AI should follow without asking questions.
14
+ */
15
+ export declare function buildAutoFixInstruction(appLabel: string, vuln: VulnerabilityRecord, sequence: number): string;
16
+ /**
17
+ * Builds a batch auto-fix plan for multiple vulnerabilities.
18
+ */
19
+ export declare function buildBatchFixPlan(appLabel: string, vulnerabilities: VulnerabilityRecord[]): string;
20
+ //# sourceMappingURL=promptBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promptBuilder.d.ts","sourceRoot":"","sources":["../../src/utils/promptBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAqC9D;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAsBlF;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,mBAAmB,EACzB,QAAQ,EAAE,MAAM,GACf,MAAM,CAmCR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,mBAAmB,EAAE,GACrC,MAAM,CAsCR"}
@@ -0,0 +1,131 @@
1
+ const KNOWN_FIELDS = new Set([
2
+ "id",
3
+ "_id",
4
+ "severity",
5
+ "isFixed",
6
+ "isDismissed",
7
+ "title",
8
+ "label",
9
+ "category",
10
+ "description",
11
+ "remediation",
12
+ "recommendation",
13
+ "method",
14
+ "path",
15
+ ]);
16
+ function getExtraFields(vuln) {
17
+ return Object.entries(vuln)
18
+ .filter(([key, value]) => !KNOWN_FIELDS.has(key) && value !== undefined && value !== null)
19
+ .map(([key, value]) => `${key}: ${typeof value === "string" ? value : JSON.stringify(value)}`)
20
+ .join("\n");
21
+ }
22
+ function getTitle(vuln) {
23
+ return vuln.title ?? vuln.label ?? vuln.category ?? "Untitled finding";
24
+ }
25
+ function getEndpointBlock(vuln) {
26
+ if (vuln.method && vuln.path)
27
+ return `HTTP Method: ${String(vuln.method).toUpperCase()}\nPath: ${vuln.path}\n\n`;
28
+ if (vuln.path)
29
+ return `Endpoint: ${vuln.path}\n\n`;
30
+ return "";
31
+ }
32
+ /**
33
+ * Builds a self-contained fix prompt for a coding assistant from a
34
+ * vulnerability record. The public vulnerabilities API only guarantees
35
+ * `severity` / `isFixed` / `isDismissed`; everything else is surfaced
36
+ * defensively so the prompt stays useful even if the API adds/renames
37
+ * fields the client doesn't know about yet.
38
+ */
39
+ export function buildFixPrompt(appLabel, vuln) {
40
+ const title = getTitle(vuln);
41
+ const endpoint = getEndpointBlock(vuln);
42
+ const extraFields = getExtraFields(vuln);
43
+ return `I need help fixing the following security issue found by PerfAI in "${appLabel}":
44
+
45
+ ${endpoint}Title: ${title}
46
+ Severity: ${vuln.severity ?? "Unknown"}
47
+
48
+ Description:
49
+ ${vuln.description ?? "No description provided by the API."}
50
+
51
+ Recommended remediation:
52
+ ${vuln.remediation ?? vuln.recommendation ?? "No specific remediation provided by the API — use the description and endpoint above to determine the fix."}
53
+ ${extraFields ? `\nAdditional details from PerfAI:\n${extraFields}\n` : ""}
54
+ Please:
55
+ 1. Study the existing codebase structure and locate the affected code (endpoint/handler above).
56
+ 2. Implement the recommended remediation, following the project's existing patterns.
57
+ 3. Ensure the fix does not break existing functionality.
58
+
59
+ Vulnerability ID (for reference / marking fixed via the PerfAI dashboard or the mark_vulnerability_fixed tool): ${vuln.id ?? vuln._id}`;
60
+ }
61
+ /**
62
+ * Builds a structured, actionable fix instruction that an AI client can
63
+ * execute directly. Unlike buildFixPrompt (conversational), this returns
64
+ * a step-by-step action plan the AI should follow without asking questions.
65
+ */
66
+ export function buildAutoFixInstruction(appLabel, vuln, sequence) {
67
+ const title = getTitle(vuln);
68
+ const vulnId = String(vuln.id ?? vuln._id);
69
+ const severity = vuln.severity ?? "unknown";
70
+ const method = vuln.method ? String(vuln.method).toUpperCase() : null;
71
+ const remediation = vuln.remediation ?? vuln.recommendation ?? null;
72
+ const extraFields = getExtraFields(vuln);
73
+ let instruction = `## Fix #${sequence}: ${title} [${severity.toUpperCase()}]\n\n`;
74
+ if (method && vuln.path) {
75
+ instruction += `**Affected endpoint:** \`${method} ${vuln.path}\`\n\n`;
76
+ }
77
+ else if (vuln.path) {
78
+ instruction += `**Affected path:** \`${vuln.path}\`\n\n`;
79
+ }
80
+ instruction += `**Problem:** ${vuln.description ?? "See title above."}\n\n`;
81
+ if (remediation) {
82
+ instruction += `**Required fix:** ${remediation}\n\n`;
83
+ }
84
+ if (extraFields) {
85
+ instruction += `**Additional context:**\n${extraFields}\n\n`;
86
+ }
87
+ instruction += `**Action steps:**
88
+ 1. Search the codebase for the handler/route that serves \`${vuln.path ?? title}\`.
89
+ 2. Apply the fix described above, following the project's existing code style and patterns.
90
+ 3. Verify the fix does not break any existing tests or functionality.
91
+ 4. After applying the fix, call the \`mark_vulnerability_fixed\` tool with \`vulnerability_id: "${vulnId}"\` to mark it resolved in PerfAI.
92
+
93
+ **Vulnerability ID:** ${vulnId}\n`;
94
+ return instruction;
95
+ }
96
+ /**
97
+ * Builds a batch auto-fix plan for multiple vulnerabilities.
98
+ */
99
+ export function buildBatchFixPlan(appLabel, vulnerabilities) {
100
+ const unfixed = vulnerabilities.filter(v => !v.isFixed && !v.isDismissed);
101
+ if (unfixed.length === 0) {
102
+ return "✅ No unfixed vulnerabilities found. All issues are either fixed or dismissed.";
103
+ }
104
+ const bySeverity = {};
105
+ for (const v of unfixed) {
106
+ const s = (v.severity ?? "unknown").toLowerCase();
107
+ bySeverity[s] = (bySeverity[s] ?? 0) + 1;
108
+ }
109
+ const summaryParts = Object.entries(bySeverity)
110
+ .sort(([a], [b]) => {
111
+ const order = { critical: 0, high: 1, medium: 2, low: 3 };
112
+ return (order[a] ?? 4) - (order[b] ?? 4);
113
+ })
114
+ .map(([s, c]) => `${c} ${s}`)
115
+ .join(", ");
116
+ let plan = `# Auto-Fix Plan for "${appLabel}"\n\n`;
117
+ plan += `**${unfixed.length} unfixed vulnerabilities** (${summaryParts})\n\n`;
118
+ plan += `Apply each fix below in order (critical → low). After each fix, call \`mark_vulnerability_fixed\` with the given vulnerability ID.\n\n---\n\n`;
119
+ const sorted = [...unfixed].sort((a, b) => {
120
+ const order = { critical: 0, high: 1, medium: 2, low: 3 };
121
+ const sa = (a.severity ?? "unknown").toLowerCase();
122
+ const sb = (b.severity ?? "unknown").toLowerCase();
123
+ return (order[sa] ?? 4) - (order[sb] ?? 4);
124
+ });
125
+ sorted.forEach((vuln, i) => {
126
+ plan += buildAutoFixInstruction(appLabel, vuln, i + 1);
127
+ if (i < sorted.length - 1)
128
+ plan += "\n---\n\n";
129
+ });
130
+ return plan;
131
+ }
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "perfai-cloud-mcp",
3
+ "version": "0.1.0",
4
+ "description": "Standalone MCP client for the hosted PerfAI cloud API — register an app by URL, run a security test, pull findings, and get fix prompts from Claude Code, Cursor, or any MCP client.",
5
+ "main": "dist/server.js",
6
+ "bin": {
7
+ "perfai-cloud-mcp": "dist/server.js",
8
+ "perfai": "dist/cli.js"
9
+ },
10
+ "type": "module",
11
+ "files": [
12
+ "dist/**/*",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "dev": "tsc --watch",
19
+ "start": "node dist/server.js",
20
+ "start:http": "MCP_TRANSPORT=http node dist/server.js",
21
+ "scan": "node dist/cli.js",
22
+ "prepublishOnly": "npm run build",
23
+ "mcp:inspect": "npx @modelcontextprotocol/inspector -- node dist/server.js"
24
+ },
25
+ "keywords": [
26
+ "mcp",
27
+ "model-context-protocol",
28
+ "perfai",
29
+ "security",
30
+ "vulnerability-scanning"
31
+ ],
32
+ "author": "PerfAI Team",
33
+ "license": "MIT",
34
+ "engines": {
35
+ "node": ">=18.0.0"
36
+ },
37
+ "dependencies": {
38
+ "@modelcontextprotocol/sdk": "^1.0.0",
39
+ "axios": "^1.6.0",
40
+ "dotenv": "^17.4.2",
41
+ "express": "^4.21.0"
42
+ },
43
+ "devDependencies": {
44
+ "@modelcontextprotocol/inspector": "^0.16.6",
45
+ "@types/express": "^5.0.0",
46
+ "@types/node": "^20.0.0",
47
+ "typescript": "^5.0.0"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public"
51
+ },
52
+ "overrides": {
53
+ "qs": "6.16.0"
54
+ }
55
+ }