Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pkg/cli/mcp_server_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}