From b708687a6c8de4dce206d186b82bfe1d8e97a416 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 22:54:25 +0000 Subject: [PATCH 1/2] Initial plan From 48b41963e84ea6bc93e1842fe3a5a677cff5a028 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 23:03:27 +0000 Subject: [PATCH 2/2] Add comprehensive examples to mcp-server command help text - Added contextual descriptions to existing examples (stdio transport, HTTP server, custom binary) - Added new example showing DEBUG environment variable for verbose logging - Aligned with example patterns used in other commands (logs, audit, trial) - Examples now clearly explain when to use stdio vs HTTP mode Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com> --- pkg/cli/mcp_server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/cli/mcp_server.go b/pkg/cli/mcp_server.go index 80aa4b6210..7525a692a7 100644 --- a/pkg/cli/mcp_server.go +++ b/pkg/cli/mcp_server.go @@ -46,9 +46,10 @@ By default, the server uses stdio transport. Use the --port flag to run an HTTP server with SSE (Server-Sent Events) transport instead. Examples: - gh aw mcp-server # Run with stdio transport - gh aw mcp-server --port 8080 # Run HTTP server on port 8080 - gh aw mcp-server --cmd ./gh-aw # Use custom gh-aw binary`, + gh aw mcp-server # Run with stdio transport (default for MCP clients) + gh aw mcp-server --port 8080 # Run HTTP server on port 8080 (for web-based clients) + gh aw mcp-server --cmd ./gh-aw # Use custom gh-aw binary path + DEBUG=mcp:* gh aw mcp-server # Run with verbose logging for debugging`, RunE: func(cmd *cobra.Command, args []string) error { return runMCPServer(port, cmdPath) },