edgegate-mcp 0.2.1 → 0.2.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 +3 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/plugin.json +5 -3
- package/skills/edgegate-compare.md +31 -0
- package/skills/edgegate-export.md +34 -0
package/README.md
CHANGED
|
@@ -77,7 +77,9 @@ Slash commands you can invoke directly:
|
|
|
77
77
|
- `/edgegate-init` — full onboarding flow (zero → CI gate)
|
|
78
78
|
- `/edgegate-gate` — trigger a run on an existing pipeline
|
|
79
79
|
- `/edgegate-status` — check a run's status + metrics
|
|
80
|
-
- `/edgegate-audit` — fetch the
|
|
80
|
+
- `/edgegate-audit` — fetch the evidence bundle for a run
|
|
81
|
+
- `/edgegate-compare` — diff two runs (auto-baseline) with REGRESSION/IMPROVEMENT/NEUTRAL verdict
|
|
82
|
+
- `/edgegate-export` — save a run report as a markdown file (for PR comments, Slack, compliance)
|
|
81
83
|
|
|
82
84
|
## License
|
|
83
85
|
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.
|
|
2
|
-
export declare const USER_AGENT = "edgegate-mcp/0.2.
|
|
1
|
+
export declare const VERSION = "0.2.2";
|
|
2
|
+
export declare const USER_AGENT = "edgegate-mcp/0.2.2";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edgegate",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Edge-AI regression gates from Claude Code — set up CI, run benchmarks, and fetch audit
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Edge-AI regression gates from Claude Code — set up CI, run benchmarks, compare runs, export reports, and fetch audit bundles from any prompt.",
|
|
5
5
|
"author": "Frozo / EdgeGate",
|
|
6
6
|
"homepage": "https://edgegate.frozo.ai",
|
|
7
7
|
"repository": "https://github.com/frozo-ai/edgegate-mcp",
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"skills/edgegate-init.md",
|
|
22
22
|
"skills/edgegate-gate.md",
|
|
23
23
|
"skills/edgegate-status.md",
|
|
24
|
-
"skills/edgegate-audit.md"
|
|
24
|
+
"skills/edgegate-audit.md",
|
|
25
|
+
"skills/edgegate-compare.md",
|
|
26
|
+
"skills/edgegate-export.md"
|
|
25
27
|
]
|
|
26
28
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: edgegate-compare
|
|
3
|
+
description: Diff two EdgeGate runs in the same pipeline. Use when the user wants to know "what changed" between runs, "is this a regression", "compare these runs", or "show the delta vs main".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /edgegate-compare
|
|
7
|
+
|
|
8
|
+
The user wants to compare two EdgeGate runs and understand the verdict.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. **Identify the candidate run.** If the user gave you a `run_id`, use it. If they said "the latest run" or didn't specify, call `edgegate_get_report` to list recent runs and ask which one they mean.
|
|
13
|
+
|
|
14
|
+
2. **Identify the baseline.**
|
|
15
|
+
- If the user provided a `baseline_run_id`, use it.
|
|
16
|
+
- Otherwise, omit the field — `edgegate_compare_runs` auto-selects the most recent PASSED run from the same pipeline (excluding the candidate). This is almost always what users want.
|
|
17
|
+
|
|
18
|
+
3. **Call `edgegate_compare_runs`** with `workspace_id`, `run_id`, and optionally `baseline_run_id`.
|
|
19
|
+
|
|
20
|
+
4. **Lead with the verdict.** The tool returns one of:
|
|
21
|
+
- **REGRESSION** — at least one gate flipped ✓→✗ OR a lower-is-better metric increased by ≥ 25%. Call this out at the top. List which gates flipped and what metric jumped.
|
|
22
|
+
- **IMPROVEMENT** — at least one ✗→✓ gate recovery with no regressions. Briefly highlight what got better.
|
|
23
|
+
- **NEUTRAL** — no significant changes. Reassure the user the run is safe to merge.
|
|
24
|
+
- **NO BASELINE** — this is the first run in the pipeline (nothing to compare against).
|
|
25
|
+
|
|
26
|
+
5. **For PR comments:** suggest the user attach the metric deltas table + verdict line. The audit trail (signed diff SHA-256) is in the response and worth including for compliance.
|
|
27
|
+
|
|
28
|
+
## Failure modes
|
|
29
|
+
|
|
30
|
+
- **404 on the candidate** — wrong `run_id`. Ask the user to double-check or call `edgegate_get_report`.
|
|
31
|
+
- **NO BASELINE on a pipeline that should have runs** — only one run exists in that pipeline OR the prior runs never completed. Check via `edgegate_get_report` and explain.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: edgegate-export
|
|
3
|
+
description: Save an EdgeGate run report as a markdown file on disk. Use when the user wants to "export", "download", "save", or "share" a run report — e.g. for a PR comment, Slack message, or compliance record.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /edgegate-export
|
|
7
|
+
|
|
8
|
+
The user wants the run report saved as a file they can share or attach.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. **Identify the run.** If they gave a `run_id`, use it. If not, call `edgegate_get_report` and ask which run.
|
|
13
|
+
|
|
14
|
+
2. **Pick the output path.**
|
|
15
|
+
- If the user said "save to Downloads" or similar, use `~/Downloads`.
|
|
16
|
+
- If they said "save next to my code" or didn't specify, default to the current working directory (the tool defaults to `./edgegate-run-{id-short}.md`).
|
|
17
|
+
- If they said "save as <name>", use that exact filename.
|
|
18
|
+
- The tool accepts directory paths (auto-appends a filename), file paths (used as-is), `~/` (expanded to home), and relative paths.
|
|
19
|
+
|
|
20
|
+
3. **Decide whether to include the diff.**
|
|
21
|
+
- If the user mentioned "for the PR" or "vs main" or "with the comparison", pass `include_diff: true` — adds the run-vs-baseline diff section to the report.
|
|
22
|
+
- Otherwise default `include_diff: false` — keeps the report focused on this run.
|
|
23
|
+
|
|
24
|
+
4. **Call `edgegate_export_run_report`** with the args.
|
|
25
|
+
|
|
26
|
+
5. **Confirm the file path** the tool returns and show the preview. Tell the user:
|
|
27
|
+
- The file is ready to attach to a PR comment, paste into Slack, or store with compliance records.
|
|
28
|
+
- If they want to also get a programmatic JSON version, point them at `edgegate_get_audit_report` for the bundle metadata.
|
|
29
|
+
|
|
30
|
+
## Failure modes
|
|
31
|
+
|
|
32
|
+
- **404 on the run** — wrong `run_id`. Check `edgegate_get_report`.
|
|
33
|
+
- **In-flight run** — the report omits gate results and bundle sections (they don't exist yet) but still writes a partial file noting the status. Tell the user to retry after the run completes.
|
|
34
|
+
- **Permission errors writing the file** — fall back to `/tmp/edgegate-run-{id}.md` and tell the user.
|