Metadata-Version: 2.4
Name: mcp-perforce
Version: 0.2.5
Summary: MCP of perforce
Requires-Python: >=3.12
Requires-Dist: beautifulsoup4>=4.12.2
Requires-Dist: mcp>=1.3.0
Requires-Dist: pydantic>=2.5.0
Requires-Dist: requests>=2.31.0
Description-Content-Type: text/markdown

# MCP Perforce 服务器

Perforce的模型上下文协议(MCP)服务器实现

## 功能概述

MCP Perforce服务器提供了一个简单的获取reviews目录，以及目录中每个变更文件详细内容

## 配置说明

cursor MCP 配置说明
```json
{
    "mcpServers": {
      "code review": {
          "command": "uvx",
          "args": [
              "mcp-perforce",
              "--p4config",
              "./path/to/your/p4config.json"
          ]
      }
  }      
}  
```

p4config.json说明

```json
{
  "swarm_username": "your_swarm_username",
  "swarm_password": "your_swarm_password",
  "swarm_base_url": "https://your_swarm_server",
  "swarm_api_url": "https://your_swarm_server/api/v10"
}
```

## 使用说明

cursor agent 模式中输入
```
帮我review一下3280706
```
cursor将自动使用mcp-perforce拉取reviews中的文件列表进行review。

## 更新记录

0.2.4 - 修复代码提交后，无法获取reviews中的差异信息的BUG