assign_issue
Assign users to specific issues in AtomGit repositories by specifying the repository owner, repository name, issue number, and assignee list for efficient task management.
Instructions
Assign users to an issue in a AtomGit repository
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assignee | Yes | List of assignees to be assigned | |
| issue_number | Yes | Issue number | |
| owner | Yes | Repository owner | |
| repo | Yes | Repository name |
Implementation Reference
- operations/issues.ts:189-204 (handler)Core handler function that executes the AtomGit API POST request to assign a user to an issue.export async function setAssignee( owner: string, repo: string, issue_number: number, assignee: string ) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues/${encodeURIComponent(issue_number)}/assignees`, { method: "POST", body: { assignee, }, } ); }
- operations/issues.ts:19-24 (schema)Zod schema for input validation of the assign_issue tool parameters.export const AssignIssueSchema = z.object({ owner: z.string().describe("Repository owner"), repo: z.string().describe("Repository name"), issue_number: z.number().describe("Issue number"), assignee: z.string().describe("List of assignees to be assigned"), });
- index.ts:86-90 (registration)Registration of the assign_issue tool in the MCP server's tools list.{ name: "assign_issue", description: "Assign users to an issue in a AtomGit repository", inputSchema: zodToJsonSchema(issues.AssignIssueSchema), },
- index.ts:331-339 (handler)Dispatch handler in the main CallToolRequestSchema switch that parses arguments and calls the core setAssignee function.case "assign_issue": { const args = issues.AssignIssueSchema.parse(request.params.arguments); const { owner, repo, issue_number, assignee } = args; const result = await issues.setAssignee(owner, repo, issue_number, assignee); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }