Skip to content

Commit 145a874

Browse files
Add client_name parameter to GitHub Docs search URL
1 parent 51acc59 commit 145a874

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)