🔍🐙 Octocode
Octocode.ai • GitHub Repository • Report Issues OverviewTransform GitHub into instant AI knowledge. Octocode is the leading AI-powered GitHub code intelligence platform. This extension configures the Octocode MCP Server as a local agent, enabling your AI assistant (Cursor, Windsurf, VS Code Copilot, Claude) to perform deep research, architectural analysis, and pattern discovery across millions of public and private repositories. Requirements
Prompts MenuStart with
|
| Tool | Purpose | Key Args |
|---|---|---|
githubSearchRepositories |
DISCOVER: Find repos | stars, topicsToSearch |
githubViewRepoStructure |
EXPLORE: Map layout | depth, path |
githubSearchCode |
SEARCH: Find patterns | keywordsToSearch, match="path"\|"file" |
githubGetFileContent |
ANALYZE: Read logic | matchString, startLine |
githubSearchPullRequests |
HISTORY: PR context | prNumber, state, diff |
packageSearch |
DEPS: Library meta | query |
Note: Octocode also supports NPM for smart research and dependency analysis.
Installation Example
You can configure Octocode manually in your MCP settings (Cursor, Claude, etc.) using the examples below.
Prerequisites
- GitHub CLI: https://cli.github.com/ (Recommended)
- Tokens (only
reporead permission is required!):- Classic Token: https://github.com/settings/tokens/new
- Fine-grained Token: https://github.com/settings/personal-access-tokens/new
Mac / Linux Default (GitHub CLI)
Use this if you have gh installed and authenticated (gh auth login).
{
"octocode": {
"command": "npx",
"args": [
"octocode-mcp@latest"
]
}
}
Windows Default / With PAT
Use this if you need to provide a Personal Access Token directly.
{
"octocode": {
"command": "npx",
"args": [
"octocode-mcp@latest"
],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
Troubleshooting
For any issues with installation or authentication, please visit: https://octocode.ai/?auth=cli#installation
For more details on features, prompts, and documentation, visit octocode.ai.
Supported IDEs & AI Assistants
This extension works with all major AI-powered editors and assistants:
Editors (Auto-Detection)
| IDE | Status | Config Location |
|---|---|---|
| Cursor | Native MCP | ~/.cursor/mcp.json |
| Windsurf | Native MCP | ~/.codeium/windsurf/mcp_config.json |
| Trae | Native MCP | Platform-specific* |
| Antigravity | Native MCP | ~/.gemini/antigravity/mcp_config.json |
| VS Code | Via Claude Desktop | Platform-specific* |
*Platform-specific paths
- Trae: macOS:
~/Library/Application Support/Trae/mcp.json· Windows:%APPDATA%/Trae/mcp.json· Linux:~/.config/Trae/mcp.json - VS Code: Falls back to Claude Desktop config · macOS:
~/Library/Application Support/Claude/claude_desktop_config.json· Windows:%APPDATA%/Claude/claude_desktop_config.json· Linux:~/.config/Claude/claude_desktop_config.json
AI Assistants & Other Clients (Manual Install)
| Assistant | Command | Config Location |
|---|---|---|
| Cline | Install for Cline |
VS Code globalStorage |
| Roo Code | Install for Roo Code |
VS Code globalStorage |
GitHub Token Configuration
Option 1: Via VS Code Extension (Recommended)
The easiest way to configure your GitHub token:
1. Open VS Code Settings (Cmd/Ctrl + ,)
2. Search for "Octocode"
3. Enter your GitHub token in "Octocode: Github Token"
4. Restart your editor
The extension automatically:
- Detects your editor type
- Writes the token to the correct MCP config file
- Passes
GITHUB_TOKENas an environment variable to the MCP server
Option 2: Via GitHub CLI (Zero Config)
If you have gh CLI installed and authenticated:
gh auth login
Octocode automatically uses your gh CLI credentials - no token configuration needed!
Option 3: Manual MCP Configuration
Add directly to your MCP config file:
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": ["octocode-mcp@latest"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
Token Permissions Required
Only read permissions are needed:
repo(for private repos) orpublic_repo(for public only)- Create tokens at: github.com/settings/tokens
What This Extension Does
This extension automatically configures the Octocode MCP server for your editor and AI assistants:
| Feature | Description |
|---|---|
| Auto-Detection | Detects your editor (Cursor, Windsurf, Antigravity, Trae) and configures the appropriate MCP settings |
| Multi-Client Support | Installs MCP config for Cline, Roo Code, and more |
| Token Management | Passes your GITHUB_TOKEN from VS Code settings to the MCP server |
| Status Bar | Shows server status with click-to-toggle controls |
| Cross-Platform | Works on macOS, Windows, and Linux |
Commands
| Command | Action |
|---|---|
Octocode MCP: Install MCP Server |
Configure MCP for current editor |
Octocode MCP: Install for All Clients |
Configure MCP for all supported AI assistants |
Octocode MCP: Install for Cline |
Configure MCP for Cline |
Octocode MCP: Install for Roo Code |
Configure MCP for Roo Code |
Octocode MCP: Install for Trae |
Configure MCP for Trae |
Octocode MCP: Start Server |
Start the MCP server process |
Octocode MCP: Stop Server |
Stop the MCP server process |
Octocode MCP: Show Status |
Show current server status and instructions |
Note: The extension auto-installs the MCP configuration on first activation. Restart your editor to enable it.
Powered by Octocode.ai