mcp_perforce_version
Show MCP Perforce server version
Run Perforce from the client — add, edit, delete, revert, sync and diff files, create and submit changelists, and manage streams and client workspaces — with every tool taking the path it applies to.
LABSCO SUMMARY
Perforce operations are ambiguous without a workspace context, and here that context is a required argument rather than state the server carries between calls. One session can therefore touch two workspaces without switching, and no call silently inherits a directory something else set. The stream and client coverage goes further than a wrapper around the common commands — create, edit by specification, switch — which is what makes branch work possible from here rather than just file work. p4_raw_command labels itself as being for debugging, and treating it that way rather than as a general route is the right instinct.
A Perforce server covering file operations, changelists, streams and client workspaces, where the workspace context is an argument rather than hidden state.
A Perforce workspace and its configuration, with P4CONFIG naming the config file. Every tool takes a path, so the working directory each call applies to is explicit.
One command — npx -y @cocoon-ai/mcp-perforce
USE CASES
See what is pending in the workspace, read the diffs, open a changelist with a description, move only the files that belong in it, and submit that changelist rather than everything currently open.
List the streams in the depot or filter them by pattern, read the one you are heading for, switch the workspace across, and sync the files it brings with it.
Create the client with its root, view and stream, switch to it, confirm the connection the directory resolves to, and pull the files down.
Check what is currently open, read the diff to be sure of what would be lost, then revert either the named files or the whole changelist.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
mcp_perforce_versionShow MCP Perforce server version
p4_addAdd files to Perforce
p4_changelist_createCreate a new changelist with a description
p4_changelist_submitSubmit a changelist
p4_client_createCreate a new client/workspace
p4_client_deleteDelete a client/workspace
p4_client_editEdit an existing client/workspace specification
p4_client_infoGet detailed information about a specific client/workspace
p4_client_listList all clients/workspaces for the current user
p4_client_switchSwitch to a different client/workspace
p4_deleteMark files for deletion in Perforce
p4_diffShow differences for files
p4_editOpen files for edit in Perforce
p4_infoShow Perforce configuration info for current directory
p4_move_to_changelistMove files to a specific changelist
p4_raw_commandFOR DEBUGGING: Executes a raw p4 command and returns stdout/stderr
p4_revertRevert files or changelist
p4_statusGet current P4 workspace status and pending changes
p4_stream_createCreate a new stream
p4_stream_editEdit stream specification
p4_stream_graphShow stream hierarchy graph
p4_stream_infoGet detailed information about a specific stream
p4_stream_listList all streams or streams matching a pattern
p4_stream_switchSwitch workspace to a different stream
p4_syncSync files from the depot
BEFORE YOU INSTALL
25 tools when we connected.
CONTEXT COST
Rated by the size of the 25 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"perforce": {
"command": "npx",
"args": [
"-y",
"@cocoon-ai/mcp-perforce"
],
"env": {
"P4CONFIG": ".p4config"
}
}
}
}npx -y @cocoon-ai/mcp-perforce