boj_github_get_file
Retrieve file contents from GitHub repositories by specifying owner, repository, and file path. This tool enables access to code, documentation, or configuration files stored in GitHub for integration or analysis purposes.
Instructions
Get file contents from a repo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | ||
| repo | Yes | ||
| path | Yes | ||
| ref | No |
Implementation Reference
- mcp-bridge/main.js:261-262 (handler)The handler logic for "boj_github_get_file" within the handleGitHubTool function, which calls the GitHub API directly.
case "boj_github_get_file": return githubApiCall("GET", `/repos/${args.owner}/${args.repo}/contents/${args.path}?ref=${args.ref || "main"}`); - mcp-bridge/main.js:542-542 (schema)The schema definition (name, description, input properties, and requirements) for the "boj_github_get_file" tool.
{ name: "boj_github_get_file", desc: "Get file contents from a repo", props: { owner: { type: "string" }, repo: { type: "string" }, path: { type: "string" }, ref: { type: "string" } }, req: ["owner", "repo", "path"] },