Skip to main content
Glama

search_issues

Locate issues and pull requests across multiple GitHub repositories using customizable search parameters, including sorting by comments, reactions, or activity, and paginated results for precise navigation.

Instructions

Search for issues and pull requests across GitHub repositories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderNo
pageNo
per_pageNo
qYes
sortNo

Implementation Reference

  • The core handler function that performs the GitHub API request to search for issues and pull requests.
    export async function searchIssues(params: z.infer<typeof SearchIssuesSchema>) { return githubRequest(buildUrl("https://api.github.com/search/issues", params)); }
  • Zod schema definition for the input parameters of the search_issues tool, extending base SearchOptions with sort options.
    export const SearchIssuesOptions = SearchOptions.extend({ sort: z.enum([ "comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated", ]).optional(), }); export const SearchCodeSchema = SearchOptions; export const SearchUsersSchema = SearchUsersOptions; export const SearchIssuesSchema = SearchIssuesOptions;
  • index.ts:144-147 (registration)
    Registration of the search_issues tool in the ListTools response, including name, description, and input schema.
    name: "search_issues", description: "Search for issues and pull requests across GitHub repositories", inputSchema: zodToJsonSchema(search.SearchIssuesSchema), },
  • index.ts:292-298 (registration)
    Dispatch logic in the CallToolRequest handler that parses arguments and invokes the searchIssues handler.
    case "search_issues": { const args = search.SearchIssuesSchema.parse(request.params.arguments); const results = await search.searchIssues(args); return { content: [{ type: "text", text: JSON.stringify(results, null, 2) }], }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PhialsBasement/mcp-github-server-plus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server