diff --git a/pkg/github/search.go b/pkg/github/search.go index f9a20be14..a98c26434 100644 --- a/pkg/github/search.go +++ b/pkg/github/search.go @@ -36,7 +36,7 @@ func searchRepositories(client *github.Client, t translations.TranslationHelperF if err != nil { return mcp.NewToolResultError(err.Error()), nil } - perPage, err := optionalIntParamWithDefault(request, "per_page", 30) + perPage, err := optionalIntParamWithDefault(request, "perPage", 30) if err != nil { return mcp.NewToolResultError(err.Error()), nil } diff --git a/pkg/github/search_test.go b/pkg/github/search_test.go index 2485c4c26..9d02b3a27 100644 --- a/pkg/github/search_test.go +++ b/pkg/github/search_test.go @@ -72,9 +72,9 @@ func Test_SearchRepositories(t *testing.T) { ), ), requestArgs: map[string]interface{}{ - "query": "golang test", - "page": float64(2), - "per_page": float64(10), + "query": "golang test", + "page": float64(2), + "perPage": float64(10), }, expectError: false, expectedResult: mockSearchResult,
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: