MCP Catalogs
首页

p4mcp-server

by perforce·92·综合分 47

Perforce P4 MCP Server 集成 P4 版本控制系统,提供变更列表、文件等的结构化读写工具。

developer-toolsops-infraother
19
Forks
7
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

Perforce P4 MCP Server 是一个全面的实现,将模型上下文协议与 Perforce Helix Core 版本控制系统连接起来。它基于 FastMCP 构建,使用直接的 P4 Python 绑定,提供了安全、结构化的工具来管理变更列表、文件、暂存区、工作区、作业、审查和服务器元数据。该服务器设计时考虑了安全性,具有只读默认模式、所有权检查和破坏性操作的交互式确认功能。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 助手访问 Perforce 仓库分析代码变更并提供反馈
:通过支持 MCP 的 AI 工具自动化代码审查工作流
:通过自然语言界面简化开发团队的版本控制操作
:支持哪些 Perforce 服务器版本?
:我可以将 MCP 服务器与 Docker 一起使用吗?

什么时候选它

如果您的团队已经在使用Perforce P4,并且希望AI助手能够安全地与版本控制操作交互,请选择此MCP服务器。

什么时候不要选它

如果您需要支持Perforce以外的版本控制系统,或者需要在没有额外确认步骤的情况下执行写入操作,请避免使用此选项。

此 server 暴露的工具

从 README 抽取出 8 个工具
  • query_changelists

    Read and write changelists in Perforce

  • query_files

    Read files and metadata from Perforce

  • query_shelves

    Manage shelves in Perforce

  • query_workspaces

    Query workspace information from Perforce

  • query_jobs

    Query and manage jobs in Perforce

  • query_reviews

    Interact with Perforce code reviews

  • query_streams

    Query Perforce stream information

  • query_server

    Query server information from Perforce

说明:Tool names inferred from the features section that mentions categories of tools (files, changelists, shelves, workspaces, jobs, reviews, streams, and server information). Exact tool names and signatures were not explicitly documented in the

可对比工具

github-mcpgit-mcpfile-system-mcp

安装

安装选项

**预编译二进制文件(推荐)**:

  • 下载 [macOS](https://github.com/perforce/p4mcp-server/releases/latest/download/p4-mcp-server-mac.zip)、[Windows](https://github.com/perforce/p4mcp-server/releases/latest/download/p4-mcp-server-win.zip) 或 [Linux](https://github.com/perforce/p4mcp-server/releases/latest/download/p4-mcp-server-linux.zip) 版本
  • 解压并直接使用可执行文件

**从源代码构建**:

  • 需要 Python 3.11+ 和 Tkinter
  • 运行 chmod +x build.sh && ./build.sh package(macOS/Linux)或 build.bat package(Windows)

**MCP 客户端配置**:

{
  "mcpServers": {
    "perforce-p4-mcp": {
      "command": "/absolute/path/to/p4-mcp-server",
      "env": {
        "P4PORT": "ssl:perforce.example.com:1666",
        "P4USER": "your_username",
        "P4CLIENT": "your_workspace"
      },
      "args": [
        "--readonly", "--allow-usage"
      ]
    }
  }
}

FAQ

支持哪些 Perforce 服务器版本?
P4 MCP Server 支持 Perforce P4 Server 2025.2 版本(更早的版本未经测试)。
我可以将 MCP 服务器与 Docker 一起使用吗?
是的,该服务器在 Docker 容器中支持 STDIO 和 HTTP 传输模式,并有针对不同用例的详细配置选项。

p4mcp-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。