by bgauryy
Octocode is an AI-powered developer assistant that enables advanced code research, analysis, and discovery across GitHub and NPM.
Octocode is an AI-powered code assistant designed to help developers understand and navigate complex codebases across GitHub and NPM. It provides advanced search capabilities with heuristic discovery and smart fallbacks to uncover connections between repositories and packages, regardless of privilege level.
gh auth login
and to NPM using npm login
. Octocode leverages GitHub CLI's OAuth flow, eliminating the need for personal access tokens.octocode-mcp
in your MCP configuration with the command npx octocode-mcp
.For developers, Octocode is also available as a Desktop Extension (DXT) for easy installation in AI applications like Claude Desktop. You can build the DXT package locally by cloning the repository, installing dependencies, and running yarn dxt:pack
.
Octocode can be used for various code exploration and research tasks, including:
gh auth status
for organization membership.The Perfect AI Code Assistant - Advanced Search & Discovery Across GitHub & NPM
For more details, visit octocode.ai
The perfect code assistant that can help understand anything. Octocode provides AI-powered advanced search with heuristic discovery and smart fallbacks to understand connections between repositories and NPM packages across any privilege level you have.
Instead of manually browsing repositories, ask questions like:
The most advanced AI-powered code assistant for understanding connections across the entire GitHub & NPM ecosystem. While other GitHub MCPs focus on project management or basic operations, Octocode provides unparalleled depth for code discovery and technical research.
Key Differentiators:
# Install Node.js 18.12+
brew install node # macOS
# or download from https://nodejs.org/
# Install GitHub CLI
brew install gh # macOS
# or see: https://github.com/cli/cli#installation
# Login to GitHub (opens browser)
gh auth login
# Login to NPM (for package research)
npm login
π Authentication Benefits:
gh
CLI permissions{
"octocode-mcp": {
"command": "npx",
"args": ["octocode-mcp"]
}
}
That's it! Octocode automatically works with your organization's private repositories.
This project is available as a Desktop Extension (DXT) for easy installation in AI applications like Claude Desktop.
Building the DXT Package:
# Install dependencies
yarn install
# Build the DXT package
yarn dxt:pack
# Validate the manifest
yarn dxt:validate
# View package information
yarn dxt:info
# Sign the package (optional)
yarn dxt:sign
DXT Scripts:
yarn dxt:validate
- Validate the manifest.json fileyarn dxt:pack
- Build and package the extension as a .dxt fileyarn dxt:info
- Show information about the packaged extensionyarn dxt:sign
- Sign the package with a self-signed certificateyarn dxt:verify
- Verify the signature of a signed packageThe DXT package includes:
dist/index.js
)manifest.json
)package.json
)assets/logo.png
)README.md
)Building DXT from Source: To build the DXT package locally from this repository:
# Clone the repository
git clone https://github.com/bgauryy/octocode-mcp.git
cd octocode-mcp
# Install dependencies and build
yarn install
yarn build
yarn dxt:pack
The generated octocode-mcp.dxt
file can then be installed in Claude Desktop (just click on it and it will open claude desktop with the extension)
Smart Discovery Flow:
Query: "Show implementations of langgraph in node js. Make a tutorial for how to implement a simple agent using OpenAI API."
Query: "Show me how to add zustand to react application. Show examples and best practices"
Query: "How did React implement their concurrent rendering flows? How is it different from Vue.js rendering mechanism? Which is better?"
10 specialized tools working together intelligently:
Discovery: Repository Search, Package Search
Analysis: Code Search, Package Analysis, Repository Structure
Activity: Commit Search, Pull Request Search, Issue Search
Content: File Content Fetching, API Status Check
All tools feature automatic cross-referencing and intelligent fallbacks.
Effective Questions:
Pro Tips:
# Check GitHub CLI status
gh auth status
# Re-authenticate if needed
gh auth logout && gh auth login
# Check NPM access
npm whoami
# Clear NPX cache if needed
rm -rf ~/.npm/_npx
Common Solutions:
gh auth status
for organization membershipThis project started as a personal tool while working at Wix, born from the challenge of navigating large codebases and keeping up with rapidly evolving technology landscapes. What began as a side project evolved into the perfect code assistant that can help understand anything.
The goal: make code exploration as intelligent as having a senior developer guide you through any codebase.
MIT License - See LICENSE for details.
Please log in to share your review and rating for this MCP.