Skip to content

test: add regression guard for audit tool exposure in gh aw mcp-server - #47241

Merged
pelikhan merged 2 commits into
mainfrom
copilot/cli-tools-test-expose-audit-tool
Jul 22, 2026
Merged

test: add regression guard for audit tool exposure in gh aw mcp-server#47241
pelikhan merged 2 commits into
mainfrom
copilot/cli-tools-test-expose-audit-tool

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The daily CLI tools tester reported audit missing from gh aw mcp-server --help — the tool was not accessible via the MCP interface. Investigation confirmed the implementation was already correct: registerAuditTool is called in createMCPServer, audit appears in the command's Long description, and TestMCPServerUnit_ListTools verifies all 10 tools are registered. The issue was filed against an older binary.

Changes

  • pkg/cli/mcp_server_command_test.go — Adds TestNewMCPServerCommand_AuditToolListedInHelp as a regression guard ensuring audit is always documented in the mcp-server command's long description, preventing silent removal from the help text.

…er help

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Expose audit tool via MCP server test: add regression guard for audit tool exposure in gh aw mcp-server Jul 22, 2026
Copilot AI requested a review from pelikhan July 22, 2026 08:36
@pelikhan
pelikhan marked this pull request as ready for review July 22, 2026 08:42
Copilot AI review requested due to automatic review settings July 22, 2026 08:42
@pelikhan
pelikhan merged commit 4b6fd49 into main Jul 22, 2026
@pelikhan
pelikhan deleted the copilot/cli-tools-test-expose-audit-tool branch July 22, 2026 08:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a regression test ensuring the MCP server help documents the audit tool.

Changes:

  • Adds an audit help-listing regression test linked to issue #47209.
Show a summary per file
File Description
pkg/cli/mcp_server_command_test.go Tests audit documentation in MCP server help.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Medium

cmd := NewMCPServerCommand()
require.NotNil(t, cmd)

assert.Contains(t, cmd.Long, "audit", "mcp-server long description should list the audit tool")
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cli-tools-test] audit tool not exposed via MCP server (gh aw mcp-server)

3 participants