Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
MCP server for P4 Plan — tasks, sprints, bugs, comments, custom fields via GraphQL API.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
P4PLAN_API_AUTH_TOKEN, P4PLAN_API_URL, P4PLAN_ALLOW_SELF_SIGNED_CERTS, P4PLAN_READONLY, P4PLAN_UPLOAD_DIRS标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"p4plan": {
"command": "npx",
"args": [
"-y",
"@perforce/p4plan-mcp"
],
"env": {
"P4PLAN_API_AUTH_TOKEN": "your-value",
"P4PLAN_API_URL": "your-value",
"P4PLAN_ALLOW_SELF_SIGNED_CERTS": "your-value",
"P4PLAN_READONLY": "your-value",
"P4PLAN_UPLOAD_DIRS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add p4plan --env P4PLAN_API_AUTH_TOKEN=your-value --env P4PLAN_API_URL=your-value --env P4PLAN_ALLOW_SELF_SIGNED_CERTS=your-value --env P4PLAN_READONLY=your-value --env P4PLAN_UPLOAD_DIRS=your-value -- npx -y @perforce/p4plan-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"p4plan": {
"command": "npx",
"args": [
"-y",
"@perforce/p4plan-mcp"
],
"env": {
"P4PLAN_API_AUTH_TOKEN": "your-value",
"P4PLAN_API_URL": "your-value",
"P4PLAN_ALLOW_SELF_SIGNED_CERTS": "your-value",
"P4PLAN_READONLY": "your-value",
"P4PLAN_UPLOAD_DIRS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"p4plan": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@perforce/p4plan-mcp"
],
"env": {
"P4PLAN_API_AUTH_TOKEN": "your-value",
"P4PLAN_API_URL": "your-value",
"P4PLAN_ALLOW_SELF_SIGNED_CERTS": "your-value",
"P4PLAN_READONLY": "your-value",
"P4PLAN_UPLOAD_DIRS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
P4PLAN_API_URL envP4PLAN_ALLOW_SELF_SIGNED_CERTS envP4PLAN_READONLY envP4PLAN_UPLOAD_DIRS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 perforce 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:P4PLAN_API_AUTH_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(2026.3.2)于15天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js, Docker。
同一分类中有:Spec Driven Development, Remote Desktop Commander, FactLot
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Cited CRE facts and deterministic calculators for agents: rent, CAM, debt sizing, IRR, parcel IDs.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
P4 Plan MCP Server
MCP (Model Context Protocol) server for P4 Plan, enabling AI assistants like Claude and VS Code Copilot to interact with P4 Plan project management data.
Architecture · Prerequisites · Quick Start · Install · Client Configurations · Tools
Skills · Logging · Troubleshoot · Development · License
This service acts as a stateless protocol adapter between MCP clients (AI assistants) and the P4 Plan GraphQL API, using stdio transport (stdin/stdout).
┌─────────────────┐ stdio (stdin/stdout) ┌─────────────────┐ GraphQL ┌─────────────────┐
│ AI Client │ ────────────────────────▶ │ P4 Plan MCP │ ──────────────▶ │ P4 Plan GraphQL │ │(Claude, Copilot)│ Spawns as child process │ Server │ Port 4000 │ API │ │ │ P4PLAN_API_AUTH_TOKEN │ (stateless) │ Bearer token │ │ └─────────────────┘ env var └─────────────────┘ forwarded └─────────────────┘
The client spawns the MCP server as a child process. Authentication is provided via the P4PLAN_API_AUTH_TOKEN environment variable, which the server validates at startup and forwards to the GraphQL API on every tool call.
| Requirement | Version | Notes |
|---|---|---|
| Node.js | \>= 20 (24+ recommended) | The server targets ES2023. Check with node -v. |
| npm | \>= 9 | Comes with Node.js. Check with npm -v. |
| P4 Plan API | \>= 2026.1.002 | Required for all tool operations. Earlier versions are not supported. |
Tip: Use nvm to manage Node.js versions, or skip the Node.js requirement entirely by using Docker.
The fastest way to get started — no installation required. Just configure your MCP client to use npx:
npx -y @perforce/p4plan-mcp
npx automatically downloads and runs the latest version of the server. Your MCP client (VS Code, Claude Desktop, etc.) handles this for you — just add the config below and start chatting.
VS Code — add to .vscode/mcp.json:
{
"servers": { "p4-plan": { "type": "stdio", "command": "npx", "args": ["-y", "@perforce/p4plan-mcp"], "env": { "P4PLAN_API_AUTH_TOKEN": "YOUR_JWT_TOKEN", "P4PLAN_API_URL": "http://localhost:4000" } } } }
Claude Desktop — add to your config:
{
"mcpServers": { "p4-plan": { "command": "npx", "args": ["-y", "@perforce/p4plan-mcp"], "env": { "P4PLAN_API_AUTH_TOKEN": "YOUR_JWT_TOKEN", "P4PLAN_API_URL": "http://localhost:4000" } } } }
Note: The
-yflag auto-confirms the npm install prompt so the server starts without user interaction.
See Client Configuration for more options including Docker, secure token prompts, and local builds.
This server is published to the official MCP Registry as `io.github.perforce/p4plan-mcp`. Discover it via the registry API:
curl 'https://registry.modelcontextprotocol.io/v0/servers?search=io.github.perforce/p4plan-mcp'
MCP clients that support registry discovery can install the server by name without needing to know the npm package identifier.
Build from source
For development or when you want to run from a local clone:
npm ci
npm run build
npm link
Run from Docker
Run the MCP server via Docker instead of installing Node.js locally. The MCP client (VS Code, Claude Desktop) spawns the container as a child process — same as npx, just using docker as the command.
The image is published to Docker Hub at perforce/p4plan-mcp, built multi-arch (linux/amd64 + linux/arm64) on every release, with SLSA provenance and SBOM attestations.
VS Code (.vscode/mcp.json):
{
"servers": { "p4-plan": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "P4PLAN_API_AUTH_TOKEN=YOUR_JWT_TOKEN", "-e", "P4PLAN_API_URL=http://host.docker.internal:4000", "perforce/p4plan-mcp:latest" ] } } }
Claude Desktop:
{
"mcpServers": { "p4-plan": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "P4PLAN_API_AUTH_TOKEN=YOUR_JWT_TOKEN", "-e", "P4PLAN_API_URL=http://host.docker.internal:4000", "perforce/p4plan-mcp:latest" ] } } }
Note: Use
host.docker.internal(macOS/Windows) or172.17.0.1(Linux) to reach the P4 Plan GraphQL API running on the host machine.
Pin a specific version by replacing
:latestwith:2026.3.2(or whichever tag) for reproducible deployments.
Build locally (for development against unreleased changes):
docker build -t p4plan-mcp:dev .
Copy the example config and configure:
cp config-example.env .env
Edit .env with your settings:
# JWT token for authenticating with P4 Plan GraphQL API
P4PLAN_API_AUTH_TOKEN=your-jwt-token
P4PLAN_API_URL=https://p4plan-api.example.com
LOG_LEVEL=info
The server communicates via stdin/stdout. It is not meant to be run interactively — MCP clients (VS Code, Claude Desktop) spawn it as a child process automatically.
Start the server with the --readonly argument, or set P4PLAN_READONLY=true, to make it read-only:
comment-html-format, mentions) are left out.This means content read from P4 Plan (a task description or a comment, for example) cannot steer the model into changing data through this server.
{
"servers": { "p4-plan": { "type": "stdio", "command": "npx", "args": ["-y", "@perforce/p4plan-mcp", "--readonly"], "env": { "P4PLAN_API_AUTH_TOKEN": "YOUR_JWT_TOKEN", "P4PLAN_API_URL": "http://localhost:4000" } } } }
With Docker, pass -e P4PLAN_READONLY=true or put --readonly after the image name. With Docker Compose, set P4PLAN_READONLY=true in your shell or .env; docker-compose.yml passes it to the container.
Read-only mode limits what the MCP server does; it does not change what the token may do. For the strongest guarantee, also authenticate as a P4 Plan user that only has read access.
upload_attachment attaches a local file, or text the model writes, to a task, bug, sprint or release. Reading local files would let a prompt injection ask for something like ~/.ssh/id_rsa, so the server only reads files inside allowed folders:
P4PLAN_UPLOAD_DIRS (separate several with :, or ; on Windows).Symlinks are resolved before the check, hidden files and folders (names starting with ., such as .env, .ssh or .git) are never uploaded, and only regular files are read. If the client shares no folders and P4PLAN_UPLOAD_DIRS is not set, only text uploads (content + fileName) work.
With Docker the container cannot see your files: mount a folder and point P4PLAN_UPLOAD_DIRS at the path inside the container, for example -v "$HOME/Screenshots:/uploads:ro" -e P4PLAN_UPLOAD_DIRS=/uploads, and pass paths such as /uploads/bug.png.
The file is streamed to the P4 Plan API (POST /attachment/ /upload), so its content never passes through the model. The P4 Plan server's own limits apply: its attachment size limit and blocked file types. If a file with the same name is already attached, the server stores the new one as name (1).ext. If an upload times out it may still have completed, so check get_attachments before retrying.
To show an image inside a comment or a multiline field (bug description, steps to reproduce, Multiline Text columns), upload it to the same item and put the returned imageHtml ( ) in the HTML. This is how the P4 Plan clients embed pasted images; the server turns images with any other src into plain links.
So that one client cannot flood the P4 Plan API (a model stuck in a loop, or a prompt injection asking for many files), each MCP server runs its uploads one at a time and starts at most 20 uploads per minute. Further calls get an error saying how long to wait.
Every tool publishes MCP tool annotations. readOnlyHint marks the tools that only read; tools that write also carry destructiveHint (the call deletes or overwrites data) and idempotentHint. Clients that support annotations can use them to ask for confirmation before a write.
The MCP server requires a JWT token provided via the P4PLAN_API_AUTH_TOKEN environment variable. The token is validated at startup and forwarded to the P4 Plan GraphQL API on every tool call. No sessions or state are maintained.
Get a JWT token from the P4 Plan GraphQL API using curl. You can authenticate with either your password or a Personal Access Token (PAT):
Usi
只显示了开头部分;其余内容请在仓库中阅读