Skip to main content
Glama

get_repository_labels

Retrieve all labels from an AtomGit repository to organize issues and pull requests. Specify the repository owner and name to access label data.

Instructions

Get all labels in a repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner, typically referred to as 'username'. Case-insensitive.
repoYesRepository name. Case-insensitive.

Implementation Reference

  • Core handler function that makes the AtomGit API request to fetch all labels for the specified repository.
    export async function getLabels( owner: string, repo: string ) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/labels`, { method: "GET", } ); }
  • Zod schema defining the input parameters for the get_repository_labels tool: owner and repo.
    export const GetLabelsSchema = z.object({ owner: z.string().describe("Repository owner, typically referred to as 'username'. Case-insensitive."), repo: z.string().describe("Repository name. Case-insensitive."), });
  • index.ts:177-181 (registration)
    Registration of the get_repository_labels tool in the MCP server's tool list, including schema reference.
    { name: "get_repository_labels", description: "Get all labels in a repository", inputSchema: zodToJsonSchema(label.GetLabelsSchema), },
  • Dispatcher case in the CallToolRequestHandler that parses arguments, calls the core getLabels function, and formats the response.
    case "get_repository_labels": { const args = label.GetLabelsSchema.parse(request.params.arguments); const { owner, repo } = args; const result = await label.getLabels(owner, repo); 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