MCPcopy Create free account
hub / github.com/github/github-mcp-server / getMaxResults

Function getMaxResults

pkg/tooldiscovery/search.go:219–225  ·  view source on GitHub ↗
(options []SearchOptions)

Source from the content-addressed store, hash-verified

217}
218
219func getMaxResults(options []SearchOptions) int {
220 maxResults := DefaultMaxSearchResults
221 if len(options) > 0 && options[0].MaxResults > 0 {
222 maxResults = options[0].MaxResults
223 }
224 return maxResults
225}
226
227func lowerInputPropertyNames(inputSchema any) []string {
228 if inputSchema == nil {

Callers 1

SearchToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected