Octocode MCP
Octocode: AIのためのリサーチ駆動開発
インストール
前提条件: GitHub認証が必要です。認証設定を参照してください。
推奨: Octocode CLI
npx octocode-cli installGitHub OAuth、MCPサーバーのインストール、スキルマーケットプレイスを備えた対話型セットアップウィザードです。非対話型インストールを行う場合は --ide <ide> を渡してください(例: npx octocode-cli install --ide cursor)。
その他の方法
MCP設定ファイルに以下を追加してください:
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": ["octocode-mcp@latest"]
}
}
}npx add-skill https://github.com/bgauryy/octocode-mcp/tree/main/skills/octocode-researchRelated MCP server: MCP Indexer
MCPサーバー
Octocode MCPサーバーは、AIアシスタントをコードに接続します:
GitHub & GitLab: リポジトリの検索、使用パターンの発見、実装の読み取り、PRの調査
ローカルツール: コード検索、ディレクトリの閲覧、ローカルコードベース内のファイル検索
LSPインテリジェンス: 定義への移動、参照の検索、コール階層の表示 — コンパイラレベルの理解
https://github.com/user-attachments/assets/de8d14c0-2ead-46ed-895e-09144c9b5071
スキル
エージェントスキルは、AIエージェントの機能を拡張するための軽量でオープンなフォーマットです。 スキル一覧: skills/README.md
スキル | 機能 |
コード検索と探索 — ローカルLSP + 外部 (GitHub, npm/PyPI) | |
セッション、チェックポイント、状態保持を備えた多段階リサーチ | |
コードの理解、記述、分析、監査 — AST + LSP + 依存関係グラフ | |
エビデンスに基づく計画: 理解 > リサーチ > 計画 > 実装 | |
代替案、トレードオフ、推奨事項を含む正式な技術決定 | |
LSPフロー追跡を用いた7つのドメインにわたるPRおよびローカルコードレビュー | |
ファイル:行の引用と重大度レベルを伴う辛辣なコード批評 | |
弱いプロンプトを強制力のあるエージェントプロトコルに変換 | |
16以上の検証済みドキュメントを生成する6段階のパイプライン |
https://github.com/user-attachments/assets/5b630763-2dee-4c2d-b5c1-6335396723ec
ドキュメント
ドキュメントの全インデックスについては、こちらから始めてください: docs/README.md
推奨クイックリンク:
マニフェスト
「コードは真実だが、コンテキストは地図である。」 -- Octocodeの背後にある哲学を理解するために、リサーチ駆動開発のためのマニフェストを読んでください。
貢献
モノレポのセットアップ、テスト、貢献ガイドラインについては、開発ガイドを参照してください。
Available Tools
13 toolsgithubGetFileContentAIdempotent
Read GitHub file or download directory [EXTERNAL: GitHub API]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
githubSearchCodeARead-onlyIdempotent
Search GitHub code [EXTERNAL: GitHub API]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
githubSearchPullRequestsARead-onlyIdempotent
Search GitHub Pull Requests [EXTERNAL: GitHub API]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
githubSearchRepositoriesARead-onlyIdempotent
Search GitHub repositories [EXTERNAL: GitHub API]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
githubViewRepoStructureARead-onlyIdempotent
Display GitHub repo structure [EXTERNAL: GitHub API]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
localFindFilesARead-onlyIdempotent
Find files by metadata [LOCAL: filesystem]
Config/docs: localGetFileContent directly
Faster than content search (metadata indexing)
excludeDir for noise (node_modules, dist, .git)
Time: '7d', '2h', '30m'
path="/workspace/src", name="*.ts", modifiedWithin="7d"
path="/workspace", iname="readme", type="f"
path="/workspace", sizeGreater="10M", excludeDir=["node_modules"]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
localGetFileContentARead-onlyIdempotent
Read file content [LOCAL: filesystem]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
localSearchCodeARead-onlyIdempotent
Search code patterns [LOCAL: ripgrep] - START HERE for code questions
Without LSP:
localGetFileContent(matchString) for context
lineHint is 1-indexed (first line = 1)
filesOnly=true for fast discovery
type filter (ts, js, py) faster than globs
path="/workspace/src", pattern="function handleAuth", type="ts"
path="/workspace", pattern="export.*UserService", perlRegex=true
path="/workspace", pattern="TODO", filesOnly=true
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
localViewStructureARead-onlyIdempotent
View directory structure [LOCAL: filesystem]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
lspCallHierarchyARead-onlyIdempotent
Trace function call relationships [LOCAL: LSP]
REQUIRES lineHint - call localSearchCode FIRST to get line number
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
lspFindReferencesARead-onlyIdempotent
Find all usages of a symbol [LOCAL: LSP]
REQUIRES lineHint - call localSearchCode FIRST to get line number
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
lspGotoDefinitionARead-onlyIdempotent
Navigate to symbol definition [LOCAL: LSP]
REQUIRES lineHint - call localSearchCode FIRST to get line number
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
packageSearchARead-onlyIdempotent
Find NPM/Python packages [EXTERNAL: npm/PyPI]
Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a distinct operation: GitHub tools for remote repo actions (get file, search code, search PRs, search repos, view structure), local tools for filesystem actions (find files, get file content, search code, view structure), LSP tools for semantic analysis (goto definition, find references, call hierarchy), and a separate package search tool. There is no overlap in purpose.
All tool names follow a consistent camelCase pattern with a prefix indicating domain (github, local, lsp) followed by a verb-noun combination (e.g., githubGetFileContent, localSearchCode, lspGotoDefinition). The naming is predictable and intuitive.
13 tools is well-scoped for a server that combines GitHub API exploration (5 tools), local filesystem analysis (4 tools), LSP-based code navigation (3 tools), and package search (1 tool). Each tool serves a clear purpose and contributes to the overall functionality without bloat.
The tool set covers the complete lifecycle for code exploration and analysis: discovery (search repos, view structure, find files), content access (get file content, search code), semantic navigation (goto definition, find references, call hierarchy), and package lookup. There are no obvious gaps for the server's stated purpose.
Maintenance
Related MCP Connectors
Search, read and explain your GitHub repositories: code, symbols, imports, history and ownership.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Provide AI-powered real-time analysis and intelligence on NPM packages, including security, depend…
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Related MCP Servers
- AlicenseCqualityDmaintenanceA free, open-source service that transforms GitHub projects into MCP endpoints, enabling AI assistants to access and understand project documentation without any setup.328,537Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseAqualityAmaintenanceA local-first codebase intelligence tool that enables AI assistants to research codebases using semantic search, multi-hop relationship discovery, and structural parsing. It allows users to extract architectural patterns and institutional knowledge across 30+ programming languages through an MCP-compatible interface.22,894 PyPI1,466MIT
- AlicenseNot gradedqualityDmaintenanceProvides semantic code search and code insights via a knowledge graph, enabling AI to understand, navigate, and modify complex projects with deep dependency and architecture analysis.MIT