get_repository_info
Retrieve GitHub repository details including owner and repository information through the Multi-MCPs server's unified API integration.
Instructions
Get GitHub repository details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | ||
| repo | Yes |
Implementation Reference
- src/apis/github/github.ts:99-105 (handler)The handler function for get_repository_info tool. Validates GitHub token and inputs, then calls client.getRepository.async get_repository_info(args: Record<string, unknown>) { if (!cfg.githubToken) throw new Error("GITHUB_TOKEN is not configured"); const owner = String(args.owner || ""); const repo = String(args.repo || ""); if (!owner || !repo) throw new Error("owner and repo are required"); return client.getRepository(owner, repo); },
- src/apis/github/github.ts:55-62 (schema)Input schema for the get_repository_info tool defining required 'owner' and 'repo' string parameters.inputSchema: { type: "object", properties: { owner: { type: "string" }, repo: { type: "string" }, }, required: ["owner", "repo"], },
- src/apis/github/github.ts:52-63 (registration)Registration of the get_repository_info tool in the registerGitHub function, including name, description, and schema.{ name: "get_repository_info", description: "Get GitHub repository details", inputSchema: { type: "object", properties: { owner: { type: "string" }, repo: { type: "string" }, }, required: ["owner", "repo"], }, },
- src/apis/github/github.ts:18-20 (helper)Helper method in GitHubClient class that performs the actual API request to fetch repository information.getRepository(owner: string, repo: string) { return this.request(`/repos/${owner}/${repo}`); }