# rupakkumar-76319/github-intelligence-mcp-server architecture

> Architecture diagram of the GitHub repository rupakkumar-76319/github-intelligence-mcp-server, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rupakkumar-76319/github-intelligence-mcp-server
- Repository: https://github.com/rupakkumar-76319/github-intelligence-mcp-server

## Overview

This repository is a GitHub intelligence MCP server: an MCP client requests repository or issue insights, the server exposes registered tools, and those tools query GitHub and return structured results. Its documented capabilities include repository search and metadata, README retrieval, commits, contributors, issue search/creation/stale-issue detection, and pull-request summaries. A separate Gemini helper exists, but the sampled code does not connect it to the MCP workflow. The GitHub tool module was only partially excerpted, so some capability edges rely on README statements rather than inspected implementations.

Main entry points: [`main.py`](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/main.py) (MCP Server), [`tools/github_tools.py`](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py) (Repository Tools), [`ai_Repo_Understanding/aiIntegrationRepoWork.py`](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/ai_Repo_Understanding/aiIntegrationRepoWork.py) (Gemini Prompt Helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_server["MCP Server"]
  node_mcp_server["MCP Server<br/>[main.py]"]
end

subgraph group_repo["Repository Intelligence"]
  node_repo_tools["Repository Tools<br/>[github_tools.py]"]
  node_repo_search["Repository Search<br/>[github_tools.py]"]
  node_readme_reader["README Reader<br/>[github_tools.py]"]
  node_commit_history["Commit History<br/>[github_tools.py]"]
  node_contributors["Contributor Lookup<br/>[github_tools.py]"]
end

subgraph group_issues["Issue Intelligence"]
  node_issue_search["Issue Search<br/>[github_tools.py]"]
  node_issue_creation["Issue Creation<br/>[github_tools.py]"]
  node_stale_issues["Stale Issue Finder<br/>[github_tools.py]"]
  node_pull_request_summary["PR Summaries<br/>[github_tools.py]"]
end

subgraph group_ai["AI Analysis"]
  node_gemini_helper["Gemini Prompt Helper"]
end

node_client(("MCP Client"))
node_github_api{{"GitHub REST API"}}
node_gemini_api{{"Gemini API"}}

node_client -->|"requests tools"| node_mcp_server
node_mcp_server -->|"imports and registers"| node_repo_tools
node_repo_tools -->|"fetches repository data"| node_github_api
node_repo_search -->|"searches repositories"| node_github_api
node_readme_reader -->|"reads README"| node_github_api
node_commit_history -->|"retrieves commits"| node_github_api
node_contributors -->|"retrieves contributors"| node_github_api
node_issue_search -->|"searches issues"| node_github_api
node_issue_creation -->|"creates issues"| node_github_api
node_stale_issues -->|"pages open issues"| node_github_api
node_pull_request_summary -->|"summarizes pull requests"| node_github_api
node_gemini_helper -->|"generates content"| node_gemini_api

click node_mcp_server "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/main.py"
click node_repo_tools "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_repo_search "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_readme_reader "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_commit_history "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_contributors "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_issue_search "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_issue_creation "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_stale_issues "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_pull_request_summary "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py"
click node_gemini_helper "https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/ai_Repo_Understanding/aiIntegrationRepoWork.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mcp_server,node_client toneBlue
class node_repo_tools,node_repo_search,node_readme_reader,node_commit_history,node_contributors toneAmber
class node_issue_search,node_issue_creation,node_stale_issues,node_pull_request_summary,node_github_api,node_gemini_api toneMint
class node_gemini_helper toneRose
```

## Components

### MCP Server

- [MCP Server](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/main.py): `main.py`

### Repository Intelligence

- [Repository Tools](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`
- [Repository Search](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`
- [README Reader](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`
- [Commit History](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`
- [Contributor Lookup](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`

### Issue Intelligence

- [Issue Search](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`
- [Issue Creation](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`
- [Stale Issue Finder](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`
- [PR Summaries](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/tools/github_tools.py): `tools/github_tools.py`

### AI Analysis

- [Gemini Prompt Helper](https://github.com/rupakkumar-76319/github-intelligence-mcp-server/blob/main/ai_Repo_Understanding/aiIntegrationRepoWork.py): `ai_Repo_Understanding/aiIntegrationRepoWork.py`

### Other components

- **MCP Client**
- **GitHub REST API**
- **Gemini API**

## Connections

- MCP Client → MCP Server: requests tools (evidence: `README.md`)
- MCP Server → Repository Tools: imports and registers (evidence: `main.py`)
- Repository Tools → GitHub REST API: fetches repository data (evidence: `tools/github_tools.py`)
- Repository Search → GitHub REST API: searches repositories (evidence: `README.md`)
- README Reader → GitHub REST API: reads README (evidence: `README.md`)
- Commit History → GitHub REST API: retrieves commits (evidence: `README.md`)
- Contributor Lookup → GitHub REST API: retrieves contributors (evidence: `README.md`)
- Issue Search → GitHub REST API: searches issues (evidence: `tools/github_tools.py`)
- Issue Creation → GitHub REST API: creates issues (evidence: `tools/github_tools.py`)
- Stale Issue Finder → GitHub REST API: pages open issues (evidence: `tools/github_tools.py`)
- PR Summaries → GitHub REST API: summarizes pull requests (evidence: `tools/github_tools.py`)
- Gemini Prompt Helper → Gemini API: generates content (evidence: `ai_Repo_Understanding/aiIntegrationRepoWork.py`)
