Skip to main content
Glama

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
NameRequiredDescriptionDefault
ownerYes
repoYes

Implementation Reference

  • 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); },
  • 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"], },
  • 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"], }, },
  • 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}`); }

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/TaylorChen/muti-mcps'

If you have feedback or need assistance with the MCP directory API, please join our Discord server