MCP Catalogs
首页octocode-mcp screenshot

octocode-mcp

by bgauryy·832·综合分 52

MCP 服务器用于在 GitHub/GitLab 和本地仓库中进行语义代码研究,具有高级 LSP 集成。

developer-toolsai-llmgithub
69
Forks
3
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Octocode MCP 服务器通过 GitHub、GitLab 和本地工具将 AI 助手连接到代码库。它提供语义代码研究、上下文生成和 AI 优化的知识转换。服务器支持 LSP 智能功能,实现编译器级别的理解,包括跳转到定义、查找引用和调用层次结构。它提供多种专业技能,用于代码探索、工程、规划、文档审查和工作流。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:跨公共和私有仓库进行代码探索和模式匹配
:使用 AST 和依赖图进行高级代码分析和文档生成
:使用 LSP 流跟踪在多个领域进行拉取请求审查
:需要什么认证?
:支持哪些 IDE?

什么时候选它

如果您已经在使用GitHub/GitLab,并且需要AI驱动的代码搜索和分析以及上下文感知的开发辅助,请选择此工具。

什么时候不要选它

如果您需要在GitHub/GitLab之外工作,或者需要独立于云的代码分析解决方案,请不要选择此工具。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • search_repositories

    Search repositories across GitHub & GitLab

  • find_usage_patterns

    Find usage patterns of code across repositories

  • read_implementations

    Read implementations of specific code patterns

  • explore_pull_requests

    Explore pull requests in repositories

  • search_local_code

    Search code in local codebase

  • browse_directories

    Browse directories in local codebase

  • find_files

    Find files in local codebase

  • go_to_definition

    Navigate to definition of code using LSP

  • find_references

    Find references to code using LSP

  • call_hierarchy

    Explore call hierarchy using LSP

  • code_research

    Perform multi-phase research with sessions and checkpoints

  • code_analysis

    Analyze code using AST and dependency graph

说明:Tool names inferred from skill descriptions and MCP server functionality documented in the README. The exact MCP tool names and signatures are not explicitly listed in the provided documentation.

可对比工具

github-mcpsourcegraph-mcpdevins-mcp

安装

安装

推荐方式:Octocode CLI

npx octocode-cli install

手动 MCP 配置

添加到您的 MCP 配置文件中:

{
  "mcpServers": {
    "octocode": {
      "command": "npx",
      "args": ["octocode-mcp@latest"]
    }
  }
}

FAQ

需要什么认证?
需要 GitHub 认证。请查看身份验证设置文档了解 OAuth 配置。
支持哪些 IDE?
CLI 支持 Cursor 等 IDE 的非交互式安装。手动配置适用于任何兼容 MCP 的客户端。

Hacker News 讨论

开发者社区最近的相关讨论。

octocode-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。