Content-Length: 257325 | pFad | http://github.com/github/github-mcp-server/commit/84ec566dd8d6e3e63df1d0f3f7abb86e1ea4540f

9C set user agent for client requests (#61) · github/github-mcp-server@84ec566 · GitHub
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

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/commit/84ec566dd8d6e3e63df1d0f3f7abb86e1ea4540f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy