Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84ec566

Browse files
authored
set user agent for client requests (#61)
1 parent51ccba0 commit84ec566

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)

[8]ページ先頭

©2009-2025 Movatter.jp