From 5dd294adcf70f386d3bfb722fa675abf52de7af4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Jul 2026 08:03:47 +0000 Subject: [PATCH 1/2] Initial plan From bc24bce2ad430e8f1b39c28a27549eddc7807f43 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Jul 2026 08:35:31 +0000 Subject: [PATCH 2/2] test: add regression test verifying audit tool is exposed in mcp-server help Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/mcp_server_command_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/cli/mcp_server_command_test.go b/pkg/cli/mcp_server_command_test.go index b580097489c..00b92825770 100644 --- a/pkg/cli/mcp_server_command_test.go +++ b/pkg/cli/mcp_server_command_test.go @@ -15,3 +15,14 @@ func TestNewMCPServerCommand_PortExampleMentionsSSE(t *testing.T) { assert.Contains(t, cmd.Example, "Run HTTP server on port 8080 with SSE transport", "Port example should match SSE transport behavior") } + +// TestNewMCPServerCommand_AuditToolListedInHelp verifies that the audit tool +// is documented in the mcp-server command's Long description. +// This is a regression test for https://github.com/github/gh-aw/issues/47209 +// where audit was absent from the MCP server tool list. +func TestNewMCPServerCommand_AuditToolListedInHelp(t *testing.T) { + cmd := NewMCPServerCommand() + require.NotNil(t, cmd) + + assert.Contains(t, cmd.Long, "audit", "mcp-server long description should list the audit tool") +}