list_repository_issues
Retrieve and list issues from a specific AtomGit repository by specifying the repository owner and name for efficient issue tracking and management.
Instructions
List issues in a AtomGit repository
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name |
Implementation Reference
- index.ts:91-95 (registration)Registration of the 'list_repository_issues' tool in the MCP server's listTools handler, including name, description, and reference to the input schema.{ name: "list_repository_issues", description: "List issues in a AtomGit repository", inputSchema: zodToJsonSchema(issues.ListIssuesSchema), },
- operations/issues.ts:70-73 (schema)Zod input schema for the list_repository_issues tool, defining required owner and repo parameters.export const ListIssuesSchema = z.object({ owner: z.string().describe("Repository owner"), repo: z.string().describe("Repository name"), });
- operations/issues.ts:153-160 (handler)Main handler function implementing the tool logic: fetches the list of issues from the AtomGit API endpoint for the given repository.export async function listIssues(owner: string, repo: string) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues`, { method: "GET", } ); }
- index.ts:341-349 (handler)Dispatch handler in the MCP server's callToolRequestHandler that parses input, calls the listIssues function, and formats the response.case "list_repository_issues": { const args = issues.ListIssuesSchema.parse(request.params.arguments); const { owner, repo } = args; const result = await issues.listIssues(owner, repo); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }