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

Commit145a874

Browse files
Add client_name parameter to GitHub Docs search URL
1 parent51acc59 commit145a874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎pkg/github/docs.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ func SearchGitHubDocs(t translations.TranslationHelperFunc) (tool mcp.Tool, hand
9595
maxResults=10
9696
}
9797

98-
// Build the search URL
99-
searchURL:=fmt.Sprintf("https://docs.github.com/api/search/v1?version=%s&language=%s&query=%s&limit=%d",
98+
// Build the search URL with client_name parameter
99+
searchURL:=fmt.Sprintf("https://docs.github.com/api/search/v1?version=%s&language=%s&query=%s&limit=%d&client_name=github-mcp-server",
100100
url.QueryEscape(version),
101101
url.QueryEscape(language),
102102
url.QueryEscape(query),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp