From 77b1022b804e4027e255a1f76e7675b599bd87b9 Mon Sep 17 00:00:00 2001 From: Ariel Deitcher Date: Tue, 1 Apr 2025 07:35:10 -0700 Subject: [PATCH] set user agent for client requests --- cmd/github-mcp-server/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/github-mcp-server/main.go b/cmd/github-mcp-server/main.go index f523c1fda..3f7e61952 100644 --- a/cmd/github-mcp-server/main.go +++ b/cmd/github-mcp-server/main.go @@ -101,6 +101,7 @@ func runStdioServer(readOnly bool, logger *log.Logger, logCommands bool, exportT logger.Fatal("GITHUB_PERSONAL_ACCESS_TOKEN not set") } ghClient := gogithub.NewClient(nil).WithAuthToken(token) + ghClient.UserAgent = "github-mcp-server/1.0" // Check GH_HOST env var first, then fall back to viper config host := os.Getenv("GH_HOST") pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy