We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70c585e commit 0401d3eCopy full SHA for 0401d3e
1 file changed
pkg/cli/update_check.go
@@ -92,12 +92,7 @@ func shouldCheckForUpdate(noCheckUpdate bool) bool {
92
// This is a heuristic - we can't reliably detect this, so we're conservative
93
func isRunningAsMCPServer() bool {
94
// Check for MCP_SERVER environment variable that could be set by the MCP server
95
- if os.Getenv("GH_AW_MCP_SERVER") != "" {
96
- return true
97
- }
98
- // Additional heuristic: check if we're likely being invoked by MCP server
99
- // MCP server tools typically run with minimal environment
100
- return false
+ return os.Getenv("GH_AW_MCP_SERVER") != ""
101
}
102
103
var (
0 commit comments