Skip to content

Commit 98dcf72

Browse files
committed
Merge branch 'main' of https://github.com/githubnext/gh-aw
2 parents e791422 + 3552f76 commit 98dcf72

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

pkg/cli/update_check.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,7 @@ func shouldCheckForUpdate(noCheckUpdate bool) bool {
9292
// This is a heuristic - we can't reliably detect this, so we're conservative
9393
func isRunningAsMCPServer() bool {
9494
// 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
95+
return os.Getenv("GH_AW_MCP_SERVER") != ""
10196
}
10297

10398
var (

0 commit comments

Comments
 (0)