Narad GitHub Agent ๐๐ค
A Premium CLI & MCP Server Powered by Gemini 2.0 Flash
The Narad GitHub Agent is a next-generation, dual-mode intelligent agent engineered for seamless high-level interactions with GitHub. It operates as an interactive CLI chat agent you can talk to directly, or as a Model Context Protocol (MCP) server that integrates with AI-powered IDEs and tools.
Powered by Gemini 2.0 Flash, it transforms complex repository tasks into simple conversational interactions โ with conversation memory, AI code reviews, and a daily digest of your GitHub activity.
Fully Dynamic: The agent uses whoever's
GITHUB_TOKENis in.env. Clone it, put your own token in, and it works 100% for your account โ no code changes needed.
โจ Key Features
๐ ๏ธ Tech Stack
๐ Project Structure
Narad-GitHub-Agent/
โโโ src/
โ โโโ main.py # Dual entry point: CLI or MCP Server
โ โโโ narad_mcp/
โ โโโ config.py # Pydantic Settings & Config
โ โโโ server.py # FastMCP Server with all tools
โ โโโ cli.py # Rich Interactive CLI Agent
โ โโโ database.py # SQLite layer (memory, PR reviews, digests)
โ โโโ tools/
โ โ โโโ github_tools.py # All GitHub API interactions
โ โโโ agents/
โ โโโ gemini_agent.py # Gemini 2.0 Flash Reasoning Engine
โโโ tests/ # Quality assurance suite
โโโ narad_agent.db # ๐ Local SQLite DB (auto-created, git-ignored)
โโโ .env # ๐ Secrets (git-ignored, never pushed)
โโโ .env.example # Credential Template for setup
โโโ .gitignore # Strict security rules
โโโ requirements.txt # Modern dependencies
๐ Quick Start
1. Prerequisites
Ensure you have Python 3.10+ installed and your API keys ready.
2. Clone & Setup Environment
# Clone the repo
git clone https://github.com/Edge-Explorer/Narad-GitHub-Agent.git
cd Narad-GitHub-Agent
# Create and activate virtual environment
python -m venv venv
.\venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
3. Configure Credentials
Create a .env file by copying the example:
copy .env.example .env
Then fill in your keys:
GITHUB_TOKEN="your_github_personal_access_token"
GEMINI_API_KEY="your_gemini_api_key"
Getting a GitHub Token: Go to GitHub Settings โ Developer Settings โ Personal Access Tokens and create a token with
reposcope.Getting a Gemini API Key: Visit Google AI Studio to generate your free Gemini API key.
4. Run the Agent
๐ฌ Interactive CLI Mode (Chat with the Agent)
python src/main.py --cli
๐ MCP Server Mode (Connect to AI IDE)
python src/main.py
๐งฐ CLI Commands
You can type natural language or use the keywords below:
Natural Language Examples
show me my repos
give me commits from Edge-Explorer/Narad-GitHub-Agent
analyze my Narad project
what are the open PRs in Edge-Explorer/Narad-MCP-Server
review pr Edge-Explorer/my-project 3
give me today's digest
what is a pull request?
๐๏ธ Local SQLite Database
The agent automatically creates narad_agent.db to persist data locally:
The database file is git-ignored and stays only on your machine.
๐ Security & Best Practices
- Your token is 100% dynamic: The agent reads
GITHUB_TOKENfrom.envat startup. If you change the token, it uses the new one automatically. No code changes needed. - Token never leaks:
.envand*.dbare strictly in.gitignoreโ they will never be pushed to GitHub. - Anyone can clone this: A new user clones the repo, adds their own
.envwith their credentials, and the agent will work for their GitHub account โ not yours. - Least Privilege: Only the GitHub token scopes you need (
repois enough for all features). - Validated Config: Pydantic Settings validates all environment variables on startup โ it fails fast with a clear error if a key is missing.
๐งฐ MCP Tools (Server Mode)
When running as an MCP Server, these tools are exposed to your AI IDE:
๐ค About
Narad GitHub Agent โ Re-engineered from the ground up with a focus on security, modularity, AI-first design, and genuine day-to-day developer utility.
Built as part of the Narad AI Ecosystem โ a family of modular, premium AI agents.
๐ License
This project is licensed under the MIT License. See the LICENSE file for details.
ยฉ 2026 Edge-Explorer ยท Narad AI Ecosystem