argusqa-os 9.2.5 → 9.2.7
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 +25 -2
- package/package.json +1 -1
- package/src/mcp-server.js +10 -10
package/README.md
CHANGED
|
@@ -10,11 +10,15 @@ Automated browser testing pipeline that catches bugs, compares environments, and
|
|
|
10
10
|
|
|
11
11
|
## MCP Quick Start
|
|
12
12
|
|
|
13
|
-
Add to your `.mcp.json
|
|
13
|
+
Add both servers to your `.mcp.json`:
|
|
14
14
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"mcpServers": {
|
|
18
|
+
"chrome-devtools": {
|
|
19
|
+
"command": "npx",
|
|
20
|
+
"args": ["-y", "chrome-devtools-mcp@latest"]
|
|
21
|
+
},
|
|
18
22
|
"argus": {
|
|
19
23
|
"command": "npx",
|
|
20
24
|
"args": ["-y", "argusqa-os"]
|
|
@@ -23,6 +27,25 @@ Add to your `.mcp.json` (or ask Claude Code: `claude mcp add argus -- npx -y arg
|
|
|
23
27
|
}
|
|
24
28
|
```
|
|
25
29
|
|
|
30
|
+
Or register via the Claude Code CLI:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
claude mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest
|
|
34
|
+
claude mcp add argus -- npx -y argusqa-os
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Set your target URL and start Chrome with remote debugging:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# .env
|
|
41
|
+
TARGET_DEV_URL=http://localhost:3000
|
|
42
|
+
|
|
43
|
+
# Start Chrome (required — Argus drives this instance via CDP)
|
|
44
|
+
# macOS: open -a "Google Chrome" --args --remote-debugging-port=9222 --headless=new
|
|
45
|
+
# Windows: "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --headless=new
|
|
46
|
+
# Linux: google-chrome --remote-debugging-port=9222 --headless=new --no-sandbox
|
|
47
|
+
```
|
|
48
|
+
|
|
26
49
|
Then ask Claude (or any MCP client):
|
|
27
50
|
|
|
28
51
|
```
|
|
@@ -38,7 +61,7 @@ Run argus_audit on http://localhost:3000
|
|
|
38
61
|
| `argus_compare` | Diff dev vs staging side-by-side — screenshots, findings delta, environment regressions |
|
|
39
62
|
| `argus_last_report` | Return the last saved report JSON from the most recent audit |
|
|
40
63
|
|
|
41
|
-
> **Requires**: Node.js ≥ 20.19, Chrome
|
|
64
|
+
> **Requires**: Node.js ≥ 20.19, Chrome (desktop or headless), and the `chrome-devtools-mcp` server registered alongside Argus (shown above).
|
|
42
65
|
|
|
43
66
|
---
|
|
44
67
|
|
package/package.json
CHANGED
package/src/mcp-server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* Argus MCP Server (v9.2.
|
|
3
|
+
* Argus MCP Server (v9.2.7)
|
|
4
4
|
*
|
|
5
5
|
* Exposes Argus as an MCP server so Claude (or any MCP client) can call
|
|
6
6
|
* argus_audit, argus_audit_full, argus_compare, and argus_last_report
|
|
@@ -36,36 +36,36 @@ const REPORTS_DIR = path.resolve(process.cwd(), 'reports');
|
|
|
36
36
|
const TOOLS = [
|
|
37
37
|
{
|
|
38
38
|
name: 'argus_audit',
|
|
39
|
-
description: '
|
|
39
|
+
description: 'Fast QA audit on a URL via Chrome DevTools Protocol. Runs 8 analyzers in one pass: JS errors, unhandled rejections, network failures (4xx/5xx), API frequency loops, CSS cascade issues, SEO violations, security header checks, and accessibility. Returns { findings: [{severity, type, message, url}], summary: {critical, warning, info} }. Use for CI smoke tests and pre-deploy gates. For Lighthouse scoring and memory leak detection, use argus_audit_full. Requires Chrome running with --remote-debugging-port=9222.',
|
|
40
40
|
inputSchema: {
|
|
41
41
|
type: 'object',
|
|
42
42
|
properties: {
|
|
43
|
-
url: { type: 'string', description: 'Full URL to audit (e.g. http://localhost:3000/checkout)' },
|
|
44
|
-
critical: { type: 'boolean', description: '
|
|
43
|
+
url: { type: 'string', description: 'Full URL to audit, including protocol and path (e.g. http://localhost:3000/checkout). Must be reachable by the running Chrome instance.' },
|
|
44
|
+
critical: { type: 'boolean', description: 'When true, console.error calls are escalated to critical severity. Set true for business-critical routes (login, checkout, dashboard) where any error is a blocker.', default: false },
|
|
45
45
|
},
|
|
46
46
|
required: ['url'],
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
name: 'argus_audit_full',
|
|
51
|
-
description: '
|
|
51
|
+
description: 'Deep QA audit — extends argus_audit with Lighthouse performance/accessibility scoring, responsive layout checks across 4 viewports (320/768/1280/1920px), memory leak detection via heap snapshot, hover-state regression detection, and accessibility tree snapshot. Returns full JSON report with findings by severity, Lighthouse scores, and layout overflow details. Use when argus_audit passes clean but visual or performance regressions are suspected. Requires Chrome running with --remote-debugging-port=9222.',
|
|
52
52
|
inputSchema: {
|
|
53
53
|
type: 'object',
|
|
54
54
|
properties: {
|
|
55
|
-
url: { type: 'string', description: 'Full URL to audit (e.g. https://example.com/dashboard)' },
|
|
56
|
-
critical: { type: 'boolean', description: '
|
|
55
|
+
url: { type: 'string', description: 'Full URL to audit, including protocol and path (e.g. https://example.com/dashboard). Must be reachable by the running Chrome instance.' },
|
|
56
|
+
critical: { type: 'boolean', description: 'When true, console.error calls are escalated to critical severity. Set true for business-critical routes (login, checkout, dashboard) where any error is a blocker.', default: false },
|
|
57
57
|
},
|
|
58
58
|
required: ['url'],
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
name: 'argus_compare',
|
|
63
|
-
description: '
|
|
63
|
+
description: 'Diffs dev vs staging environments side-by-side. Navigates both URLs, captures screenshots, and runs the full analyzer suite on each, then surfaces regressions — findings present in staging but not dev, or with changed severity. Returns { regressions: [{type, devSeverity, stagingSeverity}], screenshots, summary }. Run before promoting a build to staging to catch environment-specific bugs. Set TARGET_DEV_URL and TARGET_STAGING_URL env vars before starting the server; omit TARGET_STAGING_URL to run CSS-analysis-only mode.',
|
|
64
64
|
inputSchema: { type: 'object', properties: {} },
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
name: 'argus_last_report',
|
|
68
|
-
description: '
|
|
68
|
+
description: 'Returns the most recent Argus JSON report from the reports/ directory. Report includes a findings array and severity summary (critical/warning/info counts). Returns { "error": "No reports found in reports/" } when no audits have been run yet. Use to retrieve prior results without re-running a scan, or to pipe findings into another analysis tool.',
|
|
69
69
|
inputSchema: { type: 'object', properties: {} },
|
|
70
70
|
},
|
|
71
71
|
];
|
|
@@ -129,7 +129,7 @@ async function handleLastReport() {
|
|
|
129
129
|
// ── Server bootstrap ──────────────────────────────────────────────────────────
|
|
130
130
|
|
|
131
131
|
const server = new Server(
|
|
132
|
-
{ name: 'argus', version: '9.2.
|
|
132
|
+
{ name: 'argus', version: '9.2.7' },
|
|
133
133
|
{ capabilities: { tools: {} } },
|
|
134
134
|
);
|
|
135
135
|
|