Skip to main content
Glama

get_org_repositories

Retrieve and search repositories within a specified AtomGit organization using orgPath, pagination, and search queries.

Instructions

Search for AtomGit org repositories

Input Schema

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

Implementation Reference

  • The core handler function that performs the HTTP request to fetch repositories from an organization on AtomGit API.
    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 used for validating the tool's arguments and registered with MCP.
    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:115-119 (registration)
    MCP tool registration including name, description, and input schema reference.
    }, { name: "get_org_repositories", description: "Search for AtomGit org repositories", inputSchema: zodToJsonSchema(repository.getOrgRepositoriesSchema),
  • MCP CallToolRequest handler case that parses input, calls the repository function, and formats the response.
    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) }], }; }
  • Zod schema defining the expected structure of the response (array of repository objects). Imported but not actively used in parsing.
    export const AtomGitGetOrgRepositoriesSchema = z.array(z.object({ allowAutoMerge: z.boolean(), allowForking: z.boolean(), allowMergeCommit: z.boolean(), allowRebaseMerge: z.boolean(), allowSquashMerge: z.boolean(), allowUpdateBranch: z.boolean(), anonymousAccessEnabled: z.boolean(), archived: z.boolean(), default_branch: z.string(), deleteBranchOnMerge: z.boolean(), description: z.union([z.string(), z.null()]).optional(), fork: z.boolean(), full_name: z.union([z.string(), z.null()]), git_url: z.union([z.string(), z.null()]), hasDiscussions: z.boolean(), hasDownloads: z.boolean(), hasIssues: z.boolean(), hasPages: z.boolean(), hasProjects: z.boolean(), hasWiki: z.boolean(), html_url: z.union([z.string(), z.null()]), id: z.number(), isTemplate: z.boolean(), name: z.union([z.string(), z.null()]), private: z.boolean(), topics: z.array(z.any()), useSquashPrTitleAsDefault: z.boolean(), webCommitSignoffRequired: z.boolean(), }));

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