You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE/epic-architect-github-workflow-as-mcp.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ We will employ a rapid and agile development approach. The scope and API specifi
24
24
-**Goal:** Establish the server's foundation and define the initial API for PR interactions.
25
25
-**Sub-Tasks:**
26
26
-`ticket-define-initial-openapi-spec.md`: Create and refine an `openapi.yaml` specification, focusing first on health checks and core PR operations (list, checkout, diff).
27
+
-`ticket-scaffold-github-workflow-server.md`: Scaffold the server structure, including directories, core files, and middleware, mirroring the memory server.
28
+
-`ticket-refine-healthcheck-for-github-workflow-server.md`: Implement a robust health check to verify `gh` installation, authentication, and version.
title: Refine Health Check for GitHub Workflow Server
3
+
labels: enhancement, AI
4
+
---
5
+
6
+
GH ticket id: #7380
7
+
8
+
**Epic:**#7477
9
+
**Phase:** 1
10
+
**Assignee:** tobiu
11
+
**Status:** Done
12
+
13
+
## Description
14
+
15
+
The initial health check for the GitHub Workflow MCP server was a simple placeholder. This ticket covers the work to make it more robust and meaningful by incorporating the more detailed verification logic from the existing `buildScripts/ai/verifyGhSetup.mjs` script.
16
+
17
+
The new health check now verifies three critical conditions:
18
+
1. That the `gh` CLI is installed.
19
+
2. That the CLI is authenticated.
20
+
3. That the CLI version meets a minimum requirement.
21
+
22
+
This ensures that the server only reports as "healthy" if it is fully capable of performing its duties.
23
+
24
+
## Acceptance Criteria
25
+
26
+
1. The `ai/mcp/server/github-workflow/services/healthService.mjs` file is updated.
27
+
2. The `buildHealthResponse` function now performs separate checks for `gh` installation, authentication, and version.
28
+
3. The JSON response from the `/healthcheck` endpoint now includes a more detailed `githubCli` object with separate booleans for `installed`, `authenticated`, and `versionOk`.
29
+
4. The overall health status is set to `unhealthy` if any of the checks fail, with a descriptive error message included in the response.
0 commit comments