ad64c47110
- SearchRepositories: SearchRepositoriesInput (already done) - SearchCode: SearchCodeInput - SearchUsers: SearchUsersInput (with generic userOrOrgHandlerTyped) - SearchOrgs: SearchOrgsInput (with generic userOrOrgHandlerTyped) Created userOrOrgSearchInput interface with generic handler for shared user/org search functionality. Updated all search tests to use typed inputs. Updated toolsnaps for all search tools. Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
{
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"title": "Search code"
|
|
},
|
|
"description": "Fast and precise code search across ALL GitHub repositories using GitHub's native search engine. Best for finding exact symbols, functions, classes, or specific code patterns.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"query"
|
|
],
|
|
"properties": {
|
|
"order": {
|
|
"type": "string",
|
|
"description": "Sort order for results (asc/desc)",
|
|
"enum": [
|
|
"asc",
|
|
"desc"
|
|
]
|
|
},
|
|
"page": {
|
|
"type": "integer",
|
|
"description": "Page number for pagination (min 1)"
|
|
},
|
|
"perPage": {
|
|
"type": "integer",
|
|
"description": "Results per page for pagination (min 1 and max 100)"
|
|
},
|
|
"query": {
|
|
"type": "string",
|
|
"description": "Search query using GitHub code search syntax"
|
|
},
|
|
"sort": {
|
|
"type": "string",
|
|
"description": "Sort field (indexed only)"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"name": "search_code"
|
|
} |