Files
github--github-mcp-server/pkg/github/__toolsnaps__/search_code.snap
copilot-swe-agent[bot] ad64c47110 feat: wire up all search tools to use typed inputs
- 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>
2025-12-04 16:26:51 +00:00

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"
}