Skip to main content
Glama

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
NameRequiredDescriptionDefault
assigneeYesList of assignees to be assigned
issue_numberYesIssue number
ownerYesRepository owner
repoYesRepository name

Implementation Reference

  • 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, }, } ); }
  • 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), },
  • 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) }], }; }

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/kaiyuanxiaobing/atomgit-mcp-server'

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