perforce/p4mcp-server/p4-workspace-setup
Claude Code and agent skill by perforce/p4mcp-server
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
P4 workspace setup and management — create, configure, sync, and switch workspaces via P4 MCP tools. Use when: creating workspaces, configuring client specs, syncing files, switching workspaces, or checking workspace status in P4.
Install
npx vskill@latest install perforce/p4mcp-server/p4-workspace-setupSKILL.md
The same SKILL.md was published earlier as perforce/p4mcp-server/p4-workspace-setup.
Workspace Setup & Management
Use the query_workspaces and modify_workspaces tools to manage P4 client workspaces.
Querying Workspaces
| Action | Purpose | Key Parameters | |
|---|---|---|---|
list | List workspaces with filters | user, max_results | |
get | Get full workspace spec | workspace_name | |
type | Check if workspace is stream or classic | workspace_name | |
status | Get workspace sync status | workspace_name |
Modifying Workspaces
| Action | Purpose | Key Parameters | |
|---|---|---|---|
create | Create a new workspace | name, specs | |
update | Update workspace spec fields | name, specs | |
delete | Delete a workspace (requires approval) | name | |
switch | Switch active workspace | name |
Common Workflows
Create a stream workspace
query_streams→listto find available streamsmodify_workspaces→createwithspecscontaining the stream depot pathmodify_files→syncto populate the workspace
Create a classic workspace
modify_workspaces→createwithspecscontaining view mappings (depot-to-local paths)modify_files→syncto populate the workspace
Check workspace state
query_workspaces→getto see the current specquery_workspaces→typeto check if it's stream-bound or classicquery_workspaces→statusto see sync state (have vs head revisions)
Switch between workspaces
query_workspaces→listto see available workspacesmodify_workspaces→switchto set the active workspace
Best Practices
- Use stream workspaces when working with P4 streams — they auto-configure the view mapping from the stream spec.
- Set the workspace
rootto a directory that exists and is writable. - Use
query_workspaces→statusto check for out-of-date files before starting work. - Delete workspaces only when you're sure no pending changelists reference them.
- Each workspace must have a unique name on the P4 server.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/p4-workspace-setup/SKILL.md
Popularity
- Repository stars
- 115
- Repository forks
- 25
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/perforce/p4mcp-server/p4-workspace-setup)