Skip to main content
Glama

assign_issue

Assign users to issues in AtomGit repositories to delegate tasks and track responsibility.

Instructions

Assign users to an issue in a AtomGit repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner
repoYesRepository name
issue_numberYesIssue number
assigneeYesList of assignees to be assigned

Implementation Reference

  • Handler for the 'assign_issue' tool: parses arguments using AssignIssueSchema, calls issues.setAssignee, and returns the JSON result.
    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) }],
      };
    }
  • Zod schema defining the input parameters for the assign_issue tool.
    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)
    Tool registration in the ListTools response, specifying name, description, and input schema.
    {
      name: "assign_issue",
      description: "Assign users to an issue in a AtomGit repository",
      inputSchema: zodToJsonSchema(issues.AssignIssueSchema),
    },
  • Helper function that makes the POST request to the AtomGit API 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,
          },
        }
      );
    }

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