Skip to content

Commit 84ec566

Browse files
authored
set user agent for client requests (#61)
1 parent 51ccba0 commit 84ec566

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/github-mcp-server/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func runStdioServer(readOnly bool, logger *log.Logger, logCommands bool, exportT
101101
logger.Fatal("GITHUB_PERSONAL_ACCESS_TOKEN not set")
102102
}
103103
ghClient := gogithub.NewClient(nil).WithAuthToken(token)
104+
ghClient.UserAgent = "github-mcp-server/1.0"
104105

105106
// Check GH_HOST env var first, then fall back to viper config
106107
host := os.Getenv("GH_HOST")

0 commit comments

Comments
 (0)