Skip to main content
Glama
hinatamendes97

Perforce P4 MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
P4PORTNoP4 Server address. Examples: `ssl:perforce.example.com:1666`, `localhost:1666`
P4USERNoYour P4 username
P4CLIENTNoYour current P4 workspace. Optional, but recommended
P4CONFIGNoName of a P4CONFIG file. If set, you do not need to set any environment variables in the `env` block; the server will use the configuration from the specified P4CONFIG file instead.
P4PASSWDNoP4 password or ticket content used for authentication (e.g. `-e P4PASSWD="your_password"` or your ticket content).
P4DAM_API_KEYNoAPI key for P4 DAM integration, used to access P4 DAM assets and metadata through the REST API.
P4MCP_LOG_DIRNoDirectory for log files. Default: `logs/` in the server executable's directory. Can be overridden by the `--log-dir` CLI argument.logs/
P4MCP_CA_BUNDLENoCustom CA bundle path. Only honored when `P4MCP_TLS_CA_MODE=certifi`; ignored in `system` mode. Can also be set via the `--ca-bundle` CLI argument.
P4MCP_MAX_RESULTSNoCap on the number of rows the P4 server returns per command (`p4.maxresults`). Default: `10000`. Set to `0` to disable the limit (server default in effect). When a command would exceed this limit the server aborts it with an error rather than truncating results. Can be overridden by the `--max-results` CLI argument. Must be a non-negative integer; an invalid value fails fast at startup.10000
P4MCP_TLS_CA_MODENoTLS certificate source mode. `system` (default): use OS trust store via `truststore`. Note: In this mode, `truststore` overrides the `verify=` parameter — custom CA bundles set via `P4MCP_CA_BUNDLE` or `--ca-bundle` are ignored. To use a custom CA bundle, set `P4MCP_TLS_CA_MODE=certifi`. `certifi`: disable `truststore`.system
P4MCP_MAX_SCAN_ROWSNoCap on the number of rows the P4 server scans per command (`p4.maxscanrows`). Unset by default, so admin/group policy governs scan limits. Can be overridden by the `--max-scan-rows` CLI argument. Must be a non-negative integer when supplied.

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources