LearnNewsExamplesServices
Frontmatter
id7803
titleSupport --debug flag via commander in GitHub Workflow MCP Server
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtNov 19, 2025, 12:02 PM
updatedAtNov 19, 2025, 12:08 PM
githubUrlhttps://github.com/neomjs/neo/issues/7803
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 19, 2025, 12:08 PM

Support --debug flag via commander in GitHub Workflow MCP Server

Closed v11.6.0 enhancementairefactoring
tobiu
tobiu commented on Nov 19, 2025, 12:02 PM

The current debugging implementation relies on manually parsing process.argv inside ai/mcp/server/github-workflow/logger.mjs. Since we are now using commander, we should standardize this behavior.

Tasks:

  1. Update ai/mcp/server/github-workflow/mcp-stdio.mjs to support a --debug (and -d) option using commander.
  2. If the debug flag is present, update aiConfig.debug to true.
  3. Refactor ai/mcp/server/github-workflow/logger.mjs to rely solely on aiConfig.debug (via aiConfig.data.debug or the proxy access), removing the manual process.argv check.

This consolidation ensures a single source of truth for the debug state and leverages the CLI parsing library correctly.

tobiu added the enhancement label on Nov 19, 2025, 12:02 PM
tobiu added the ai label on Nov 19, 2025, 12:02 PM
tobiu added the refactoring label on Nov 19, 2025, 12:02 PM
tobiu referenced in commit 9448679 - "Support --debug flag via commander in GitHub Workflow MCP Server #7803" on Nov 19, 2025, 12:08 PM
tobiu assigned to @tobiu on Nov 19, 2025, 12:08 PM
tobiu closed this issue on Nov 19, 2025, 12:08 PM