低空航拍路面裂缝检测数据集解析:3391张图、VOC与YOLO标注与训练避坑指南
2026/10/19 4:55:00
一句话简介:AI驱动的代码搜索和查询MCP服务器,通过Greptile API提供自然语言代码理解能力
列出该MCP服务提供的主要功能点:
描述该服务适合在什么情况下使用:
该MCP服务器通过NPX运行,支持以下方式启动:
npx greptile-mcp-server --api-key=xxx --github-token=yyy使用该服务需要以下认证信息:
服务支持以下数据格式:
在MCP客户端配置中添加服务:
{ "mcpServers": { "greptile": { "command": "npx", "args": ["greptile-mcp-server"], "env": { "GREPTILE_API_KEY": "your_api_key", "GITHUB_TOKEN": "your_github_token" } } } }该MCP服务器提供以下工具:
获取全面的文档和使用示例。
{ "name": "greptile_help" }索引仓库使其可搜索。
{ "name": "index_repository", "arguments": { "remote": "github", "repository": "microsoft/vscode", "branch": "main", "reload": true } }使用自然语言查询仓库。
{ "name": "query_repository", "arguments": { "query": "How is authentication implemented in this codebase?", "repositories": [ { "remote": "github", "repository": "microsoft/vscode", "branch": "main" } ], "stream": false, "session_id": "optional-session-id" } }获取已索引仓库的信息。
{ "name": "get_repository_info", "arguments": { "remote": "github", "repository": "microsoft/vscode", "branch": "main" } }环境变量设置(Linux/macOS):
export GREPTILE_API_KEY="your_api_key_here" export GITHUB_TOKEN="your_github_token_here"环境变量设置:
$env:GREPTILE_API_KEY="your_api_key_here" $env:GITHUB_TOKEN="your_github_token_here"基本使用流程:
npx greptile-mcp-server // 在MCP客户端中索引仓库 { "tool": "index_repository", "arguments": { "remote": "github", "repository": "microsoft/vscode", "branch": "main" } } // 查询代码库 { "tool": "query_repository", "arguments": { "query": "How does VS Code handle file watching?", "repositories": [{"remote": "github", "repository": "microsoft/vscode", "branch": "main"}] } }