Skip to main content
Glama

Octocode:AI 研究驱动型开发


安装

前提条件:需要 GitHub 身份验证。请参阅 身份验证设置。

推荐:Octocode CLI

npx octocode-cli install

包含 GitHub 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-research

Related MCP server: MCP Indexer

MCP 服务器

Octocode MCP 服务器 将您的 AI 助手与代码连接起来:

  • GitHub & GitLab:搜索存储库、查找使用模式、阅读实现代码、探索 PR

  • 本地工具:搜索代码、浏览目录、在本地代码库中查找文件

  • LSP 智能:转到定义、查找引用、调用层级 —— 编译器级别的理解

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


技能

代理技能 (Agent Skills) 是一种用于扩展 AI 代理能力的轻量级开放格式。 技能索引:skills/README.md

技能

功能

Researcher

代码搜索与探索 — 本地 LSP + 外部(GitHub, npm/PyPI)

Research

包含会话、检查点和状态持久化的多阶段研究

Engineer

理解、编写、分析、审计代码 — AST + LSP + 依赖图

Plan

基于证据的规划:理解 > 研究 > 规划 > 实现

RFC Generator

包含替代方案、权衡和建议的正式技术决策

PR Reviewer

跨 7 个领域并带有 LSP 流程追踪的 PR 及本地代码审查

Roast

带有文件:行号引用和严重性级别的严厉代码批评

Prompt Optimizer

将薄弱的提示词转化为可执行的代理协议

Doc Writer

生成 16+ 份已验证文档的 6 阶段流水线

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


文档

如需完整文档索引,请从这里开始: docs/README.md

推荐快速链接:

宣言

“代码即真理,但上下文是地图。” -- 阅读 研究驱动型开发宣言 以了解 Octocode 背后的哲学。


贡献

请参阅 开发指南 以获取单体仓库设置、测试和贡献准则。


Available Tools

13 tools
githubGetFileContentA
Idempotent

Read GitHub file or download directory [EXTERNAL: GitHub API]

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

githubSearchCodeA
Read-onlyIdempotent

Search GitHub code [EXTERNAL: GitHub API]

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

githubSearchPullRequestsA
Read-onlyIdempotent

Search GitHub Pull Requests [EXTERNAL: GitHub API]

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

githubSearchRepositoriesA
Read-onlyIdempotent

Search GitHub repositories [EXTERNAL: GitHub API]

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

githubViewRepoStructureA
Read-onlyIdempotent

Display GitHub repo structure [EXTERNAL: GitHub API]

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

localFindFilesA
Read-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

localGetFileContentA
Read-onlyIdempotent

Read file content [LOCAL: filesystem]

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

localSearchCodeA
Read-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

localViewStructureA
Read-onlyIdempotent

View directory structure [LOCAL: filesystem]

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

lspCallHierarchyA
Read-onlyIdempotent

Trace function call relationships [LOCAL: LSP]

REQUIRES lineHint - call localSearchCode FIRST to get line number

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

lspFindReferencesA
Read-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

lspGotoDefinitionA
Read-onlyIdempotent

Navigate to symbol definition [LOCAL: LSP]

REQUIRES lineHint - call localSearchCode FIRST to get line number

Inputs: queries (required), responseCharOffset, responseCharLength. Returns: results, responsePagination

packageSearchA
Read-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

    A4.7/5.0

    Scored across 13 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      A free, open-source service that transforms GitHub projects into MCP endpoints, enabling AI assistants to access and understand project documentation without any setup.
      32
      8,537
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      A
      quality
      A
      maintenance
      A 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.
      2
      2,894 PyPI
      1,466
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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