Git 本地仓库 MCP
在本地仓库执行 diff、log、blame 与提交查询,辅助代码追溯。
ModelContextProtocol·↓ 880 次安装·1 个月前
安装命令
终端
npx -y @modelcontextprotocol/server-git在 Cursor 中配置(mcp.json)
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git"
]
}
}
}