---
id: 7480
title: Refine Health Check for GitHub Workflow Server
state: CLOSED
labels:
  - enhancement
  - ai
assignees:
  - tobiu
createdAt: '2025-10-14T09:12:33Z'
updatedAt: '2025-10-14T09:13:34Z'
githubUrl: 'https://github.com/neomjs/neo/issues/7480'
author: tobiu
commentsCount: 0
parentIssue: 7477
subIssues: []
subIssuesCompleted: 0
subIssuesTotal: 0
blockedBy: []
blocking: []
closedAt: '2025-10-14T09:13:34Z'
---
# Refine Health Check for GitHub Workflow Server

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.

The new health check now verifies three critical conditions:
1.  That the `gh` CLI is installed.
2.  That the CLI is authenticated.
3.  That the CLI version meets a minimum requirement.

This ensures that the server only reports as "healthy" if it is fully capable of performing its duties.

## Acceptance Criteria

1.  The `ai/mcp/server/github-workflow/services/healthService.mjs` file is updated.
2.  The `buildHealthResponse` function now performs separate checks for `gh` installation, authentication, and version.
3.  The JSON response from the `/healthcheck` endpoint now includes a more detailed `githubCli` object with separate booleans for `installed`, `authenticated`, and `versionOk`.
4.  The overall health status is set to `unhealthy` if any of the checks fail, with a descriptive error message included in the response.

## Timeline

- 2025-10-14T09:12:34Z @tobiu assigned to @tobiu
- 2025-10-14T09:12:35Z @tobiu added the `enhancement` label
- 2025-10-14T09:12:35Z @tobiu added the `ai` label
- 2025-10-14T09:12:35Z @tobiu added parent issue #7477
- 2025-10-14T09:13:13Z @tobiu referenced in commit `f02b361` - "Refine Health Check for GitHub Workflow Server #7480"
- 2025-10-14T09:13:35Z @tobiu closed this issue

