PP

perforce/p4mcp-server

分析与监控

本页由 AI 翻译,技术细节请以原文为准。 查看原文

123 stars 28 forks 质量 84 趋势 24MIT

perforce/p4mcp-server 是从 https://github.com/perforce/p4mcp-server. 导入的 MCP 服务器候选

概览

perforce/p4mcp-server 是从 https://github.com/perforce/p4mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

Perforce P4 MCP 服务器

Perforce P4 MCP 服务器是一款模型上下文协议(MCP)服务器,与 Perforce P4 版本控制系统集成。它基于 FastMCP 构建,直接通过 P4 Python 绑定,以展示安全、结构化的读写工具,用于更改列表、文件、书架、工作区、作业、审查和服务器元数据。它还通过 REST API 与 P4 DAM 集成,管理资源。

特点 · 先决条件· 系统需求 · 安装· 部署 · 客户端配置 · P4配置 · 工具

伐木 · 故障排除 · 支持 · 贡献 · 许可

特色

  • 全面的P4集成:跨文件、变更列表、书架、工作区、作业、审查、流和服务器信息的读写工具。
  • 代码审查工作流程:P4代码审查支持审查发现、投票、状态切换、评论和参与者管理。
  • P4 DAM 集成:通过兼容 MCP 的 AI 助手访问 P4 DAM 资产和元数据。搜索资源、检索元数据、管理评价、创建资产捆绑包、更新资产标签和浏览项目。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Features

  • Comprehensive P4 integration: Read/write tools across files, changelists, shelves, workspaces, jobs, reviews, streams, and server information.
  • Code review workflows: P4 Code Review support for review discovery, voting, state transitions, commenting, and participant management.
  • P4 DAM integration: Access P4 DAM assets and metadata through MCP-compatible AI assistants. Search for assets, retrieve metadata, manage reviews, create asset bundles, update asset tags, and browse projects. To learn more, see Configure P4 DAM access for P4 MCP Server in the P4 DAM documentation.
  • Safety first: Read-only mode by default, ownership checks, interactive MCP elicitation (PROCEED/CANCEL) for destructive delete and obliterate operations.
  • Flexible toolsets: Configure which tool categories to enable: server, files, changelists, shelves, workspaces, jobs, reviews, streams, and p4dam.
  • Robust logging: Application and session logging to the logs/ directory.
  • Optional telemetry: Consent-gated usage statistics. Disabled by default.
  • Cross platform: Supported on macOS, Linux and Windows with pre-built binaries.

Prerequisites

  • P4 Server access: Connection to a P4 Server with proper credentials
  • Authentication: Valid P4 login (ticket-based or password)

System Requirements

在 GitHub 查看完整 README

安装

docker run -i --rm --hostname your-hostname -e P4PORT=ssl:perforce.example.com:1666 -e P4USER=your_username -e P4CLIENT=your_workspace -e P4DAM_API_KEY=your_api_key -v /Users/your_username/.p4tickets:/home/mcpuser/.p4tickets:ro ghcr.io/perforce/p4mcp-server:latest
新手?先看 mcpskill.org 教程 →

配置

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