get_issue
Retrieve detailed information about a specific issue in a GitHub repository by specifying the owner, repository name, and issue number for efficient issue tracking and management.
Instructions
Get details of a specific issue in a GitHub repository.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_number | Yes | ||
| owner | Yes | ||
| repo | Yes |
Implementation Reference
- operations/issues.ts:63-65 (handler)The core handler function that executes the tool logic by fetching the issue details from the GitHub REST API.export async function getIssue(owner: string, repo: string, issue_number: number) { return githubRequest(`https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}`); }
- operations/issues.ts:5-9 (schema)Zod schema defining the input parameters for the get_issue tool: owner, repo, and issue_number.export const GetIssueSchema = z.object({ owner: z.string(), repo: z.string(), issue_number: z.number(), });
- index.ts:151-154 (registration)Registration of the 'get_issue' tool in the MCP server's list of tools, including name, description, and input schema.name: "get_issue", description: "Get details of a specific issue in a GitHub repository.", inputSchema: zodToJsonSchema(issues.GetIssueSchema) },
- index.ts:482-488 (handler)The MCP CallToolRequest handler case that parses arguments, calls getIssue, and formats the response.case "get_issue": { const args = issues.GetIssueSchema.parse(request.params.arguments); const issue = await issues.getIssue(args.owner, args.repo, args.issue_number); return { content: [{ type: "text", text: JSON.stringify(issue, null, 2) }], }; }