Repo Explorer 是一款强大的工具,能助力开发者高效管理和探索代码仓库。它提供了仓库状态检查、代码搜索、仓库克隆等功能,可有效提升开发效率,简化仓库操作流程。
Repo Explorer 能帮助开发者轻松管理和探索代码仓库,按以下步骤操作即可快速上手。
git clone https://github.com/yourusername/repo-explorer.git
cd repo-explorer
npm install
npm run build
Repo Explorer 提供了以下核心工具,可按示例进行操作。
<use_mcp_tool>
<server_name>repo-explorerserver_name>
<tool_name>repo_statustool_name>
<arguments>{}arguments>
use_mcp_tool>
<use_mcp_tool>
<server_name>repo-explorerserver_name>
<tool_name>create_reference_repostool_name>
<arguments>
{
"cloneAll": false
}
arguments>
use_mcp_tool>
<use_mcp_tool>
<server_name>repo-explorerserver_name>
<tool_name>clone_repotool_name>
<arguments>
{
"category": "databases",
"repo": "watermelondb"
}
arguments>
use_mcp_tool>
<use_mcp_tool>
<server_name>repo-explorerserver_name>
<tool_name>search_codetool_name>
<arguments>
{
"pattern": "function\\s+\\w+\\s*\\(",
"filePattern": "*.js",
"category": "databases",
"repo": "watermelondb",
"maxResults": 30,
"contextLines": 2
}
arguments>
use_mcp_tool>
在 ~/Library/Application Support/Claude/claude_desktop_config.json 文件中添加如下配置:
{
"mcpServers": {
"repo-explorer": {
"command": "node",
"args": ["/path/to/repo-explorer/build/index.js"],
"env": {},
"disabled": false
}
}
}
在 ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json 文件中添加如下配置:
{
"mcpServers": {
"repo-explorer": {
"command": "node",
"args": ["/path/to/repo-explorer/build/index.js"],
"env": {},
"disabled": false
}
}
}
欢迎贡献!请按照以下步骤操作:
本项目采用 MIT 许可证,详细信息见 LICENSE 文件。