MCPcopy Create free account
hub / github.com/idosal/git-mcp / fetchFileFromGitHub

Function fetchFileFromGitHub

src/api/utils/github.ts:18–27  ·  view source on GitHub ↗
(
  owner: string,
  repo: string,
  branch: string,
  path: string,
  env: Env,
  useAuth = false,
)

Source from the content-addressed store, hash-verified

16 * @returns File content or null if not found
17 */
18export async function fetchFileFromGitHub(
19 owner: string,
20 repo: string,
21 branch: string,
22 path: string,
23 env: Env,
24 useAuth = false,
25): Promise<string | null> {
26 return await fetchRawFile(owner, repo, branch, path, env, useAuth);
27}
28
29export interface GitHubFile {
30 path: string;

Callers 2

fetchDocumentationFunction · 0.85
searchGitHubRepoFunction · 0.85

Calls 1

fetchRawFileFunction · 0.85

Tested by

no test coverage detected