Developer Tools TypeScript ★ 857

bgauryy/octocode-mcp

AI-powered developer assistant that enables advanced research, analysis and discovery across GitHub and NPM realms in realtime.

Claude Desktop config.json'a ekle

{
  "mcpServers": {
    "bgauryy-octocode-mcp": {
      "command": "node",
      "args": [
        "~/.mcp/octocode-mcp/index.js"
      ]
    }
  }
}

Octocode: Research Driven Development for AI

Research like a Senior Staff Engineer.
In every codebase, in seconds.

Stop guessing. Octocode researches code locally and externally: your own workspace (ripgrep + LSP-level go-to-definition, references, call hierarchy) and the world's (GitHub repos, PRs, npm/PyPI packages), turning it into verifiable evidence your AI can search, read, and trace.

Use it as an MCP server inside your AI assistant, or as a terminal CLI.

octocode.ai  ·  MCP Server  ·  CLI  ·  Skills


Two ways to run Octocode

🔌 As an MCP Server💻 As a CLI
ForYour AI assistant (Claude Code, Cursor, Claude Desktop, +13 more)Your terminal & scripts
Installnpx octocode-cli installbrew install bgauryy/octocode/octocode
You get14 research tools wired into your agentThe same 14 tools, runnable from the shell
Best forDeep agent research, planning, PR reviewQuick scripted lookups, CI, piping to other tools

Same engine, same tools, two surfaces. Pick one or use both.

Prerequisites: GitHub authentication for the GitHub-backed tools. Run octocode login, or see Authentication Setup.


🔌 As an MCP Server

Wire Octocode’s tools into your AI assistant. The interactive installer handles GitHub OAuth, MCP server config, and the skills marketplace:

npx octocode-cli install

Pass --ide <client> for a non-interactive install (e.g. octocode install --ide cursor), and -m direct only to point a client at a locally installed MCP binary.

One-Click Install (Cursor)

Manual MCP Configuration

Add to your MCP configuration file:

{
  "mcpServers": {
    "octocode": {
      "command": "npx",
      "args": ["octocode-mcp@latest"]
    }
  }
}
Research Skill (Direct Install)
npx add-skill https://github.com/bgauryy/octocode-mcp/tree/main/skills/octocode-research

The Octocode MCP Server connects your AI assistant to code:

The Octocode MCP Server connects your AI assistant to code:

  • GitHub: Search repositories, find usage patterns, read implementations, explore PRs
  • Local Tools: Search code (ripgrep), browse directories, find files in your local codebase
  • LSP Intelligence: Go to Definition, Find References, Call Hierarchy (compiler-level understanding)
  • Package Discovery: Resolve npm/PyPI packages to their source repos

Benchmark Snapshot

Hermetic evals: 212/212 passing. For agent research, Octocode MCP is the best default: it wins the combined benchmark with 99/105 quality and 17,274 output tokens on the full 60-query remote sweep (89% less than raw gh).

Token benchmark (lower is better)

MethodToken loadTokensResult
raw gh████████████████████153,042baseline
Octocode CLI████░░░░░░░░░░░░░░░░29,36581% less than gh
Octocode MCP██░░░░░░░░░░░░░░░░░░17,27489% less than gh

Quality benchmark (higher is better)

MethodQuality barScoreBest use
Octocode MCP███████████████████░99/105 · 94%Deep agent research + local/LSP flow
Octocode CLI███████████████░░░░░79/105 · 75%Short scripted research
raw ghnot scoredbaselineWrites and direct GitHub API access

Token × Quality visual axis

X-axis = token savings vs raw gh (right is better). Y-axis = research quality score (up is better). Best overall is the upper-right quadrant.

Quality ↑
100 |                                                  ● Octocode MCP
 90 |                                                    99/105 quality
 80 |                                      ● Octocode CLI 89% token savings
 70 |                                        79/105 quality
 60 |
 50 |
 40 |
 30 |
 20 |
 10 |
  0 | ● raw gh
    +--------------------------------------------------------------→ Token savings
      0%               40%               80%              90%+
      baseline                          CLI 81%        MCP 89%
PointX: token benchmarkY: quality benchmarkInterpretation
Octocode MCP89% less than gh99/105Best combined token + quality result
Octocode CLI81% less than gh79/105Best short/scripted structured runner
raw ghbaselinenot scoredDirect API/writes; verbose reads

Best-by-scenario matrix

ScenarioBest tokensBest qualityRecommendation
Full remote research sweepOctocode MCPOctocode MCPDefault for agent research
Short one-off scripted runOctocode CLIOctocode CLI / MCPUse CLI when MCP init is not amortized
Shallow PR listingOctocode MCPOctocode MCPMCP for triage
PR triage with diff statsOctocode MCPOctocode MCPMCP avoids 1 + N follow-up calls
Remote directory browsingOctocode MCPOctocode MCPRaw gh api /contents is very verbose
Local shallow grep/findOctocode local toolsOctocode local toolsOctocode for evidence
Local targeted code readOctocode local toolsOctocode local toolsUse matchString / line ranges
Local semantic flowOctocode MCP LSPOctocode MCP LSPDefinitions, references, call hierarchy
GitHub writesraw ghraw ghOctocode is read-only

Local note: Octocode local tools win for structured evidence, metadata, targeted reads, PCRE2, and LSP (definition, references, call hierarchy). Octocode verbosity:"concise" is available for lossy broad probes; use compact/default for evidence. Details: Benchmark Suite.

https://github.com/user-attachments/assets/de8d14c0-2ead-46ed-895e-09144c9b5071


💻 As a CLI

Install the octocode command globally with Homebrew and run all 14 tools straight from your terminal, no MCP wiring required:

brew install bgauryy/octocode/octocode    # → octocode v1.5.0

Or brew tap bgauryy/octocode && brew install octocode (short form), or run on demand with npx octocode-cli. Node is pulled in automatically. Run octocode login first for the GitHub-backed tools.

The CLI is both a setup wizard (install the MCP server + skills, manage GitHub auth, sync configs across editors) and a standalone tool runner (call any Octocode tool, pipe the JSON anywhere).

Commands

CommandWhat it does
octocode installConfigure octocode-mcp for an IDE/agent (--ide <client>, -m npx|direct, --force, --json)
octocode authManage GitHub authentication (interactive menu)
octocode login / logoutSign in / out of GitHub via OAuth device flow (--hostname for Enterprise)
octocode statusOctocode health: auth + installed MCPs + cache (--sync, --json)
octocode tokenPrint the GitHub token using the MCP server’s resolution order (--source, --validate)
octocode skillsSearch / install / remove / sync Agent Skills (--targets, --mode copy|symlink)
octocode mcpMCP marketplace: list / install / remove / status (--id, --client, --env)
octocode syncSync MCP configs across all installed IDE clients (--dry-run, --status)
octocode cacheInspect / clean cloned repos, skills, logs, and tool caches
octocode toolsList tools, show a tool’s schema, or run one with --queries '<json>'
octocode instructionsPrint MCP instructions + every tool schema

Top-level flags: --version/-v, --help/-h, --json/-j.

The 14 tools. Run any directly with octocode tools <name> --queries '<json>':

GroupTools
GitHubgithubSearchCode · githubSearchRepositories · githubSearchPullRequests · githubGetFileContent · githubViewRepoStructure · githubCloneRepo
LocallocalSearchCode (ripgrep) · localFindFiles · localGetFileContent · localViewStructure
LSPlspGotoDefinition · lspFindReferences · lspCallHierarchy
PackagepackageSearch (npm / PyPI → source repo)

Quick start

octocode login                                   # GitHub OAuth
octocode install --ide cursor                    # wire MCP into an editor
octocode skills install --targets claude-code    # add Agent Skills
octocode tools                                    # list every tool
octocode tools localSearchCode --queries '{"path":".","pattern":"fn"}'

Install targets include Cursor, Claude Code, Claude Desktop, Windsurf, Zed, Trae, Antigravity, Kiro, Codex, Opencode, Gemini CLI, Goose, and the VS Code extensions Cline / Roo / Continue. Full details: CLI Reference.


Packages

This is a yarn-workspaces monorepo. Each package has its own README.md; all setup/reference docs live in docs/, and all AI agent guidance lives in the root AGENTS.md.

PackagePurpose
octocode-mcpMCP server: 14 tools across GitHub, local FS, LSP
octocode-cliCLI: installer, tool runner, skills marketplace
octocode-vscodeVS Code extension: GitHub OAuth + multi-editor MCP install
octocode-sharedShared utilities: credentials, session, platform
octocode-security-utilsStandalone security utilities

Skills

Agent Skills are a lightweight, open format for extending AI agent capabilities. Skills index: skills/README.md

Research & Code Analysis

SkillWhat it does
ResearcherCode search & exploration: local LSP + external (GitHub, npm/PyPI)
ResearchMulti-phase research with sessions, checkpoints, state persistence
EngineerUnderstand, write, analyze, audit code: AST + LSP + dependency graph
BrainstormingIdea validation grounded in evidence: GitHub, npm/PyPI, web in parallel
NewsWhat’s new in AI, dev tools, web platform, security, notable repos

Planning & Writing

SkillWhat it does
PlanEvidence-based planning: Understand > Research > Plan > Implement
RFC GeneratorFormal technical decisions with alternatives, trade-offs, and recommendations
Doc Writer6-phase pipeline producing 16+ validated docs
Prompt OptimizerTurn weak prompts into enforceable agent protocols
Agentic FlowThinking framework for designing/reviewing MCP & multi-agent workflows

Review & Critique

SkillWhat it does
PR ReviewerPR & local code review across 7 domains with LSP flow tracing
RoastBrutal code critique with file:line citations and severity levels

Build & Output

SkillWhat it does
SlidesPolished multi-file HTML presentations via 6-phase design flow
DesignDynamic DESIGN.md generator covering visual language, components, a11y
Chrome DevToolsCDP-level browser debugging: network, console, perf, DOM, screenshots

Tooling & Setup

SkillWhat it does
InstallInteractive step-by-step Octocode installer for macOS and Windows
CLIRun Octocode MCP tools from the terminal without wiring MCP
Search SkillFind, evaluate, install, refactor Agent Skills (SKILL.md format)
StatsLocal HTML dashboard from Octocode MCP usage stats

https://github.com/user-attachments/assets/5b630763-2dee-4c2d-b5c1-6335396723ec


Documentation

Full index: docs/README.md. All monorepo documentation lives in docs/ (no per-package docs/).

Docs map

  • docs/configuration/: install, auth providers, MCP clients, env/config, troubleshooting
  • docs/dev/: tool/API references, workflows, architecture, contributing, skills
  • docs/specs/: design specs and RFCs

Setup

Tool References

CLI & Skills

Shared Internals

Operations

The Manifest

“Code is Truth, but Context is the Map.” Read the Manifest for Research Driven Development to understand the philosophy behind Octocode.


Contributing

See the Development Guide for monorepo setup, testing, and contribution guidelines.


Built with care for the AI Engineering Community

Benzer MCP sunucuları

Daha fazla: Developer Tools →