perfai-cloud-mcp 0.5.2 → 0.7.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/README.md +289 -285
- package/dist/auth/bearerAuth.js +103 -19
- package/dist/auth/oauthFlow.js +10 -10
- package/dist/auth/tokenValidator.js +3 -2
- package/dist/cli.js +46 -46
- package/dist/client/apiClient.js +33 -9
- package/dist/client/authManager.js +28 -0
- package/dist/client/errors.js +11 -0
- package/dist/client/relay.js +61 -0
- package/dist/config.js +19 -1
- package/dist/http.js +125 -0
- package/dist/mcpServer.js +129 -0
- package/dist/server.js +18 -207
- package/dist/tools/protected/autoFix.js +4 -3
- package/dist/tools/protected/autoFixAll.js +15 -7
- package/dist/tools/protected/getFixSummary.js +2 -2
- package/dist/tools/protected/getVulnerabilities.js +51 -11
- package/dist/tools/protected/registerApp.js +3 -1
- package/dist/tools/protected/runSecurityTest.js +51 -6
- package/dist/tools/public/login.js +87 -87
- package/dist/utils/clientInfo.js +8 -0
- package/dist/utils/promptBuilder.js +29 -23
- package/dist/utils/testInfo.js +63 -0
- package/package.json +58 -54
package/package.json
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "perfai-cloud-mcp",
|
|
3
|
-
"version": "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
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
"dist
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"mcp",
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "perfai-cloud-mcp",
|
|
3
|
+
"version": "0.7.2",
|
|
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
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/PerfAI-Inc/mcp-server.git"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/server.js",
|
|
10
|
+
"bin": {
|
|
11
|
+
"perfai-cloud-mcp": "dist/server.js",
|
|
12
|
+
"perfai": "dist/cli.js"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/**/*",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc",
|
|
22
|
+
"dev": "tsc --watch",
|
|
23
|
+
"start": "node dist/server.js",
|
|
24
|
+
"start:http": "MCP_TRANSPORT=http node dist/server.js",
|
|
25
|
+
"scan": "node dist/cli.js",
|
|
26
|
+
"prepublishOnly": "npm run build",
|
|
27
|
+
"mcp:inspect": "npx @modelcontextprotocol/inspector -- node dist/server.js",
|
|
28
|
+
"test": "vitest run"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"mcp",
|
|
32
|
+
"model-context-protocol",
|
|
33
|
+
"perfai",
|
|
34
|
+
"security",
|
|
35
|
+
"vulnerability-scanning"
|
|
36
|
+
],
|
|
37
|
+
"author": "Perfai Team",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18.0.0"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.32.0",
|
|
44
|
+
"axios": "^1.20.0",
|
|
45
|
+
"dotenv": "^17.4.2",
|
|
46
|
+
"express": "^4.21.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@modelcontextprotocol/inspector": "^0.16.6",
|
|
50
|
+
"@types/express": "^5.0.0",
|
|
51
|
+
"@types/node": "^20.0.0",
|
|
52
|
+
"typescript": "^5.0.0",
|
|
53
|
+
"vitest": "^1.6.1"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
}
|
|
58
|
+
}
|