Skip to main content
Glama

get_org_repositories

Search and retrieve repositories from an AtomGit organization using organization path and optional search filters.

Instructions

Search for AtomGit org repositories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgPathYesSearch query org name
per_pageNoPage number for pagination (default: 1)
pageNoNumber of results per page (default: 10)
searchNoSearch query content

Implementation Reference

  • The primary handler function that constructs the AtomGit API URL for organization repositories, appends query parameters, fetches data using atomGitRequest, and returns the response.
    export async function getOrgRepositories( orgPath: string, per_page: number = 10, page: number = 1, search?: string ) { let url = `https://api.atomgit.com/orgs/${encodeURIComponent(orgPath)}/repos`; const params = new URLSearchParams(); if (per_page) params.append('per_page', per_page.toString()); if (page) params.append('page', page.toString()); if (search) params.append('search', search); const queryString = params.toString(); if (queryString) { url += `?${queryString}`; } const response = await atomGitRequest(url.toString()); return response; }
  • Zod input schema defining parameters for the get_org_repositories tool: orgPath (required), per_page, page, and search (all optional).
    export const getOrgRepositoriesSchema = z.object({ orgPath: z.string().describe("Search query org name"), per_page: z.number().optional().describe("Page number for pagination (default: 1)"), page: z.number().optional().describe("Number of results per page (default: 10)"), search: z.string().optional().describe("Search query content"), });
  • index.ts:116-120 (registration)
    MCP tool registration entry in the ListTools response, specifying the tool name, description, and input schema converted to JSON schema.
    { name: "get_org_repositories", description: "Search for AtomGit org repositories", inputSchema: zodToJsonSchema(repository.getOrgRepositoriesSchema), },
  • MCP CallTool dispatch handler that validates input arguments using the schema, invokes the core getOrgRepositories function, and returns the results formatted as MCP content.
    case "get_org_repositories": { const args = repository.getOrgRepositoriesSchema.parse(request.params.arguments); const results = await repository.getOrgRepositories( args.orgPath, args.per_page, args.page, args.search, ); return { content: [{ type: "text", text: JSON.stringify(results, 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