Skip to main content
Glama
iPraBhu

mcp-perforce-server

by iPraBhu

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
P4PORTNoPerforce server port.
P4USERNoPerforce username.
P4_PATHNoCustom path to the Perforce CLI.p4
P4CLIENTNoPerforce client workspace name.
P4CONFIGNoConfig file name used during upward discovery..p4config
P4PASSWDNoPerforce password or ticket.
LOG_LEVELNoServer log level.warn
P4CHARSETNoPerforce character set.
P4LANGUAGENoPerforce language.
MCP_SSE_HOSTNoServer bind address.0.0.0.0
MCP_SSE_PATHNoSSE endpoint path./mcp
MCP_SSE_PORTNoHTTP server port.3000
P4COMMANDCHARSETNoPerforce command character set.
P4_READONLY_MODENoKeep the server read-only by default.true
P4_DISABLE_DELETENoPrevent delete operations unless explicitly enabled.true
P4_RESPONSE_CACHENoEnable read-response caching.true
MCP_SSE_AUTH_TOKENNoBearer token for auth.
MCP_SSE_CORS_ORIGINNoCORS allowed origins.*
MCP_SSE_ENABLE_AUTHNoEnable token authentication.false
P4_PERFORMANCE_MODENoPreset: fast, balanced, secure.fast
P4_WORKFLOW_CONCURRENCYNoMax concurrent subcalls for composite tools.6
P4_RESPONSE_CACHE_TTL_MAPNoPer-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

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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