Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cartridges/domains/ci-cd/cicd-squabbler-mcp/README.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
= cicd-squabbler-mcp

CI/CD gate-fighter cartridge — makes
Expand Down
8 changes: 5 additions & 3 deletions cartridges/domains/ci-cd/cicd-squabbler-mcp/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ export async function handleTool(toolName, args) {
return post("/api/v1/fight", payload);
}
case "squabble_diagnose": {
const { checks } = args ?? {};
// Accept both the documented bare shape ({checks}) and the
// gate-wrapped shape ({gate:{checks}}) callers generalise from
// squabble_fight by analogy — the backend tolerates both too.
const checks = args?.checks ?? args?.gate?.checks;
if (!Array.isArray(checks)) {
return { status: 400, data: { error: "checks (array) is required" } };
return { status: 400, data: { error: "checks (array) is required — pass {checks:[...]} or {gate:{checks:[...]}}" } };
}
// The backend takes the Gate object directly.
return post("/api/v1/diagnose", { checks });
}
default:
Expand Down
Loading