# Function analyzeGitHubRepo

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- analyzeGitHubRepo(
  input: { repo: string; depth: "deep" | "shallow" },
  ): Promise<RepoAnalysis>

  Fetch repo data from GitHub and produce analysis.

  #### Parameters

  - input: { repo: string; depth: "deep" | "shallow" }

    - ##### repo: string

      GitHub repository in "owner/name" format or full URL.

    - ##### depth: "deep" | "shallow"

      Analysis depth: shallow (tree + README) or deep (full analysis).

  #### Returns Promise<RepoAnalysis>

  - Defined in packages/nexus-agents/src/mcp/tools/repo-analyze.ts:500