mcp-perforce-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| P4PORT | No | Perforce server port. | |
| P4USER | No | Perforce username. | |
| P4_PATH | No | Custom path to the Perforce CLI. | p4 |
| P4CLIENT | No | Perforce client workspace name. | |
| P4CONFIG | No | Config file name used during upward discovery. | .p4config |
| P4PASSWD | No | Perforce password or ticket. | |
| LOG_LEVEL | No | Server log level. | warn |
| P4CHARSET | No | Perforce character set. | |
| P4LANGUAGE | No | Perforce language. | |
| MCP_SSE_HOST | No | Server bind address. | 0.0.0.0 |
| MCP_SSE_PATH | No | SSE endpoint path. | /mcp |
| MCP_SSE_PORT | No | HTTP server port. | 3000 |
| P4COMMANDCHARSET | No | Perforce command character set. | |
| P4_READONLY_MODE | No | Keep the server read-only by default. | true |
| P4_DISABLE_DELETE | No | Prevent delete operations unless explicitly enabled. | true |
| P4_RESPONSE_CACHE | No | Enable read-response caching. | true |
| MCP_SSE_AUTH_TOKEN | No | Bearer token for auth. | |
| MCP_SSE_CORS_ORIGIN | No | CORS allowed origins. | * |
| MCP_SSE_ENABLE_AUTH | No | Enable token authentication. | false |
| P4_PERFORMANCE_MODE | No | Preset: fast, balanced, secure. | fast |
| P4_WORKFLOW_CONCURRENCY | No | Max concurrent subcalls for composite tools. | 6 |
| P4_RESPONSE_CACHE_TTL_MAP | No | Per-tool cache TTL overrides. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| p4_infoB | Get Perforce server and client information |
| p4_statusB | Get status of opened files and pending changes |
| p4_addC | Add files to Perforce |
| p4_editB | Open files for edit in Perforce |
| p4_deleteB | Mark files for delete in Perforce |
| p4_revertC | Revert files or all files in changelist |
| p4_syncC | Sync files from Perforce depot |
| p4_openedC | List opened files |
| p4_diffA | Show differences for workspace files (opened or local vs depot) |
| p4_diff2A | Compare two depot paths server-side (depot-to-depot diff, no client mapping required) |
| p4_changelist_createC | Create a new changelist |
| p4_changelist_updateC | Update an existing changelist |
| p4_changelist_submitC | Submit a numbered changelist |
| p4_submitC | Submit default changelist or create and submit new changelist |
| p4_describeA | Describe a changelist with metadata, affected files, and optional diff content |
| p4_filelogC | Show file history |
| p4_clientsB | List Perforce clients/workspaces |
| p4_config_detectC | Detect and show Perforce configuration |
| p4_resolveC | Resolve merge conflicts |
| p4_shelveC | Shelve files for code review |
| p4_unshelveB | Unshelve files from a shelved changelist |
| p4_changesB | List submitted changelists with advanced filtering |
| p4_reviewB | List changelists pending review |
| p4_reviewsA | List reviewers for files or a changelist |
| p4_interchangesC | List changelists not yet integrated between two paths |
| p4_integratedB | Show integration history for source/target paths |
| p4_review_bundleC | Composite review workflow: pending changes with optional details/reviewers |
| p4_change_inspectA | Composite changelist inspection: describe + fixes + reviewers (+ optional file history) |
| p4_path_synccheckC | Composite path sync analysis using interchanges/integrated in one call |
| p4_file_inspectA | Composite file inspection: fstat + filelog + optional print/blame in one call |
| p4_workspace_snapshotB | Composite workspace snapshot: info + status + optional config/opened/recent changes |
| p4_search_inspectC | Composite search helper: grep + optional fstat + optional content previews |
| p4_review_prepareC | Composite review preparation: discover or accept changelists, then build review-ready inspection bundles |
| p4_blameB | Show file annotations with change history (like git blame) |
| p4_annotateC | Alias of p4.blame (line-by-line annotation) |
| p4_copyC | Copy files between locations |
| p4_moveC | Move/rename files |
| p4_integrateC | Integrate files from source to target |
| p4_mergeC | Merge files from source to target |
| p4_printA | Print file content from the depot |
| p4_fstatC | Get file metadata from depot/workspace |
| p4_streamsC | List streams |
| p4_streamC | Get stream spec details |
| p4_grepC | Search for text patterns across depot files |
| p4_filesB | List files in depot with metadata |
| p4_dirsB | List directories in depot |
| p4_usersC | List Perforce users |
| p4_userB | Get user information |
| p4_clientC | Get detailed client/workspace information |
| p4_jobsC | List jobs (if job tracking is enabled) |
| p4_jobC | Get job details |
| p4_fixesB | Show which changelists fix which jobs |
| p4_labelsD | List labels |
| p4_labelB | Get label details |
| p4_sizesC | Get file sizes and disk usage statistics |
| p4_haveA | List files currently synced in workspace |
| p4_whereA | Show depot/local/workspace mappings for files |
| p4_auditB | Get audit log entries for compliance reporting (requires audit logging enabled) |
| p4_complianceB | Get compliance configuration and current status |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iPraBhu/mcp-perforce-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server