
GitHits 的 CLI 和 MCP——AI 编码代理的代码上下文层
概览
AI编码代理的代码上下文层。 GitHits 将 AI 编码代理与整个软件开发生命周期中的公开开源证据连接起来:发现、规划、研究、实施、调试和维护。 CLI运行一个本地MCP服务器,您的编码工具按需启动。代理随后可以搜索索引包和仓库源代码,阅读精确文件和文档页面,检查包健康状况,比较依赖升级,并在模型知识和本地仓库上下文不足时,查找真实开源项目的源代码示例。 init 会让你登录,检测支持的编码工具,并为你选择的工具配置 GitHits。它使用本地的标准 MCP,除了 Cursor,Cursor 的直接设置使用托管的远程 MCP。
概述(AI 翻译)
GitHits CLI
AI编码代理的代码上下文层。
网站 · 文献资料· 议题
GitHits 将 AI 编码代理与公共开源证据连接起来 完整的软件开发生命周期:发现、规划、研究, 实现、调试和维护。
CLI运行一个本地MCP服务器,你 编码工具按需启动。代理随后可以搜索索引包和 仓库源代码,阅读精确文件和文档页面,检查软件包 健康,比较依赖升级,并查找真实引用的示例 开源项目,当模型知识和本地仓库上下文不存在时 够了。
想把GitHits作为代理工具或软件工厂的一部分使用吗?看看吧 我们的公开API文档。
快速启动
init 登录你,检测支持的编码工具,并配置 GitHits
你选择的工具。它使用本地的stdio MCP,除了Cursor,其Cursor除外
直接设置使用托管的远程MCP。
自动设置目前支持Claude代码、光标、风帆冲浪, VS Code / Copilot,Cline,Claude Desktop,Codex CLI,Pi,Gemini CLI,
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
GitHits CLI
The infrastructure layer connecting agents to the open-source ecosystem.
Website · Documentation · Issues
GitHits connects AI coding agents to public open-source evidence across the full software development lifecycle: discovery, planning, research, implementation, debugging, and maintenance.
The CLI runs a local MCP server that your coding tool starts on demand. Agents can then search indexed package and repository source, read exact files and documentation pages, inspect package health, compare dependency upgrades, and find source-cited examples from real open-source projects when model knowledge and local repository context are not enough.
Want to use GitHits as part of your agent harness or software factory? Check out our public API documentation.
Quick Start
npx githits@latest init
init signs you in, detects supported coding tools, and configures GitHits for
the tools you select. It uses the local stdio MCP except for Cursor, whose
安装
npx -y githits@latest mcp start配置
{
"mcpServers": {
"githits": {
"command": "npx",
"args": ["-y", "githits@latest", "mcp", "start"]
}
}
}