# test **Repository Path**: xuyunwang/test ## Basic Information - **Project Name**: test - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-22 - **Last Updated**: 2026-08-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Git MCP V2 测试项目 #### 项目介绍 本项目用于测试大模型通过 MCP(Model Context Protocol)连接 Gitee 的能力。基于 [git-mcp-v2](https://github.com/Sheshiyer/git-mcp-v2) MCP Server,验证大模型是否能够借助 MCP 协议与 Gitee 代码托管平台进行交互。 MCP 服务地址:[ModelScope - @Sheshiyer/git-mcp-v2](https://www.modelscope.cn/mcp/servers/@Sheshiyer/git-mcp-v2) #### 功能特性 - **核心 Git 操作**:init、clone、status、add、commit、push、pull - **分支管理**:列出、创建、删除、切换分支 - **标签操作**:列出、创建、删除标签 - **远程管理**:列出、添加、移除远程仓库 - **暂存操作**:列出、保存、恢复暂存 - **批量操作**:按顺序执行多个 Git 操作 - **路径解析**:智能路径处理,支持 `GIT_DEFAULT_PATH` 默认路径配置 - **错误处理**:完善的错误处理与自定义错误类型 #### 环境准备 1. 安装 Node.js 并克隆项目: ```bash git clone https://github.com/Sheshiyer/git-mcp-v2.git cd git-mcp-v2 npm install npm run build ``` 2. 配置 MCP Server,在 MCP 配置文件中添加: ```json { "mcpServers": { "git-v2": { "command": "node", "args": ["path/to/git-mcp-v2/build/index.js"], "env": { "GIT_DEFAULT_PATH": "f:/servers/test", "GITHUB_PERSONAL_ACCESS_TOKEN": "your-github-pat" } } } } ``` 3. 获取 Gitee/GitHub 访问令牌(Personal Access Token) #### 可用工具 | 工具 | 说明 | |------|------| | `init` | 初始化新仓库 | | `clone` | 克隆仓库 | | `status` | 查看仓库状态 | | `add` | 暂存文件 | | `commit` | 创建提交 | | `push` | 推送到远程 | | `pull` | 拉取远程更新 | | `branch_list` | 列出分支 | | `branch_create` | 创建分支 | | `branch_delete` | 删除分支 | | `checkout` | 切换分支 | | `tag_list` / `tag_create` / `tag_delete` | 标签操作 | | `remote_list` / `remote_add` / `remote_remove` | 远程管理 | | `stash_list` / `stash_save` / `stash_pop` | 暂存操作 | | `bulk_action` | 批量执行 Git 操作 | #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request