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") +}