p4-changelist-manageme…
P4 changelist workflows — create, list, submit, shelve, unshelve, and manage changelists and shelved files via P4 MCP tools. Use…
P4 file operations — query content, history, annotations, diffs, and modify files (add, edit, delete, move, sync, resolve) via P4 MCP tools. Use when: reading file content, viewing history, comparing revisions, adding or editing files, syncing, resolving conflicts, or
$ npx -y skills add perforce/p4mcp-server --skill p4-file-operations --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/p4-file-operationsContext preview
The summary Claude sees to decide when to auto-load this skill.
P4 file operations — query content, history, annotations, diffs, and modify files (add, edit, delete, move, sync, resolve) via P4 MCP tools. Use when: reading file content, viewing history, comparing revisions, adding or editing files, syncing, resolving conflicts, or
name: p4-file-operations description: P4 file operations — query content, history, annotations, diffs, and modify files (add, edit, delete, move, sync, resolve) via P4 MCP tools. Use when: reading file content, viewing history, comparing revisions, adding or editing files, syncing, resolving conflicts, or reconciling workspace changes in P4.
Use the `query_files` and `modify_files` tools to work with files in P4 depots.
| Action | Purpose | Key Parameters | |--------|---------|----------------| | `content` | Get file content at a revision | `file_path` | | `history` | Get revision history (filelog) | `file_path`, `max_results` | | `info` | Get file metadata (type, size, head revision) | `file_path` | | `metadata` | Get extended file metadata | `file_path` | | `diff` | Compare file revisions or depot vs workspace | `file_path`, `file2`, `diff2` | | `annotations` | Get per-line blame/annotation | `file_path` | | `search` | Search for files by name pattern (wildcard) | `file_path`, `pattern`, `max_results` | | `grep` | Search for files by content pattern | `file_path`, `pattern`, `case_insensitive`, `max_results` |
| Action | Purpose | Key Parameters | |--------|---------|----------------| | `add` | Mark a new file for add | `file_paths`, `changelist` | | `edit` | Open an existing file for edit | `file_paths`, `changelist` | | `delete` | Mark a file for delete (requires approval) | `file_paths`, `changelist` | | `move` | Move/rename a file | `source_paths`, `target_paths`, `changelist` | | `revert` | Revert opened files to depot version | `file_paths` | | `reconcile` | Reconcile workspace with depot (detect offline edits) | `file_paths` | | `resolve` | Resolve file conflicts after integration | `file_paths`, `mode` | | `sync` | Sync files from depot to workspace | `file_paths`, `force` |
1. `modify_changelists` → `create` a pending changelist 2. `modify_files` → `edit` to open the file in the changelist 3. Make your changes locally 4. `modify_changelists` → `submit` to commit
1. `modify_changelists` → `create` a pending changelist 2. Create the file(s) locally in your workspace 3. `modify_files` → `add` to mark them for add 4. `modify_changelists` → `submit`
1. `query_files` → `history` to see revision log 2. `query_files` → `diff` to compare specific revisions 3. `query_files` → `annotations` to see per-line authorship 4. `query_files` → `content` to read a specific revision
1. `query_files` → `search` with a wildcard pattern (e.g., `*.py`) to find files by name 2. `query_files` → `grep` with a text pattern to find files containing specific content 3. Use `query_files` → `content` to read files found from search results
1. `modify_files` → `sync` to get latest from depot 2. If conflicts exist, `modify_files` → `resolve` to handle them 3. `modify_changelists` → `submit` when resolved
1. Make changes outside of P4 (e.g., IDE edits without opening files first) 2. `modify_files` → `reconcile` to detect and open changed files
[Community Supported] Perforce P4 MCP Server is a Model Context Protocol (MCP) server that integrates with the Perforce P4 version control system.
P4 changelist workflows — create, list, submit, shelve, unshelve, and manage changelists and shelved files via P4 MCP tools. Use…
P4 code review workflows — discover, create, vote, comment, transition, and manage reviews via P4 MCP tools. Use when: creating…
P4 DAM (Digital Asset Management) workflows — search, browse, tag, review, and manage digital assets via P4 MCP tools. Use when…
P4 stream workflows — creation, branching, merging, copying, integration, switching, and spec management via P4 MCP tools. Use…
P4 workspace setup and management — create, configure, sync, and switch workspaces via P4 MCP tools. Use when: creating…