Octocode
未认领Code research platform for AI agents; find, understand, and prove context across your code and all of GitHub, in a fraction of the tokens. One toolset, MCP or CLI
01 / 选择客户端
03 / 添加配置
claude mcp add --transport stdio 'bgauryy-octocode' -- 'npx' '-y' 'octocode' '--help'04 / 在客户端中确认
打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。
更多Search & Web服务器
浏览完整目录安全概况
已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、shell 命令、代理配置目录)以及带有已知公告的依赖。认领此列表即可获得。 安全概况的工作原理
17 个工具中显示 17 个
文档中列出的工具 (17)
内容来自项目文档。服务器握手不会验证每个工具的说明或行为。
ghCloneRepo
Clone a repo or sparse subtree into the local cache for local/LSP analysis. Opt-in on MCP (ENABLECLONE=true; CLI on by default).
ghGetFileContent
Read a GitHub file or region: full file, line range, match slice, or paginated chars.
ghListReleases
List releases + latest, with opt-in assets. Opt-in (ENABLERELEASES=true).
ghSearchCode
Code and path search across GitHub by owner, repo, path, filename, extension, and match filters. Accepts 1 to 5 parallel queries.
ghSearchCommits
Walk a repo's commit history, or compare two refs (base+head).
ghSearchDiscussions
Search a repo's Discussions (Q&A, RFCs, announcements) via GraphQL. Opt-in (ENABLEDISCUSSIONS=true).
ghSearchIssues
Search issues, or read one issue's body and comments.
ghSearchPullRequests
Search pull requests, or deep-read one PR: files, patches, comments, reviews, commits.
ghSearchRepos
Discover repositories by keywords, owner, topic, language, stars, updated, license, visibility.
ghViewRepoStructure
Browse a repository's directory tree, plus opt-in repo enrichments.
localFindDeadCode
Find likely-unreferenced exports and dead-code clusters using whole-repository reachability analysis.
localFindFiles
Find local files and directories by name, path, regex, extension, size, time, permissions, type.
localGetFileContent
Read a local file or region: exact slice, match string, line range, or paginated chars.
localSearchCode
Local code/text search returning file and line anchors. mode:"structural" runs Octocode AST shape queries (pattern or rule).
localViewStructure
Browse a local directory tree: depth, filters, pagination, metadata.
lspGetSemantics
Typed semantic navigation: definition, references, callers, callees, callHierarchy, hover, documentSymbols, typeDefinition, implementation, workspaceSymbol, supertypes, subtypes, and diagnostic. From the CLI, invoke it directly: npx octocode tools lspGetSemantics --queries '<json>'. Navigation runs
npmSearch
npm package lookup and keyword search; returns metadata and the source repository for GitHub handoff.