Skip to content

Commit 4615a35

Browse files
authored
set user agent for client requests (github#61)
1 parent fcc2a2c commit 4615a35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/github-mcp-server/main.go

Lines changed: 1 addition & 0 deletions
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)