Prerequisites
- Active PlayerZero account with project access
- Editor or Owner permissions in that project
- An MCP-compatible AI assistant (VS Code, Copilot, Cursor, Claude Code, etc.)
Step 1: Create a Personal Access Token
The MCP server authenticates with a Personal Access Token. When you create it, select the MCP permission and scope the token to the single project you want it to reach.-
Open Token Settings
- Log in at playerzero.ai
- Navigate to Settings → User Settings → Personal Access Tokens
-
Create a New Token
- Click New Token
- Choose how you will use it: Chrome Extension or MCP
- Give it a descriptive name
-
Set the Project Scope
- For a Chrome Extension token, choose all of your projects or select specific projects where the token is accepted
- For an MCP token, scope it to the single project it can reach
-
Copy the Token
- Click Create Token
- Copy and store the token immediately. It won’t be shown again.
- Personal Access Tokens start with
pz_pat
Step 2: Configure Your MCP Client
The PlayerZero MCP endpoint speaks the standard Streamable HTTP transport with server-sent events (SSE), so mainstream MCP clients such as Claude Code and Cursor connect directly. Point your client at the endpoint and pass your token in theAuthorization header, as shown below. This endpoint is called by your MCP client with the token header; it is not a page that will load if opened directly in a browser.
Step 3: Available Tools
playerzero_status
Description: Tests your connection to PlayerZero
Request: Use the playerzero_status tool to check if PlayerZero is working.
Response:
- “true” if connection is successful
- Error message if there are authentication or connection issues
ask_playerzero
Description: Query your codebase using PlayerZero’s AI.
Parameters:
query (required): Your question about the codebase
playerId (optional): Continue existing conversation
lastMessageId (optional): Resume from specific message
Usage Examples:
stop_player
Description: Stop a running or stuck Player session
Parameters:
playerId (required): The ID of the Player to stop
Usage Examples:
Step 4: Best Practices
Conversation Continuity
Conversation Continuity
- The ask_playerzero tool returns playerId and lastMessageId in responses
- Use these values in subsequent queries to maintain conversation context
- This enables more accurate and contextual responses
- For complex queries, the server may return a partial response with a message asking you to retry. Pass the returned
playerIdandlastMessageIdin your next call to pick up where it left off.
Query Optimization
Query Optimization
- Be specific in your questions for better results
- Ask about particular files, functions, or architectural patterns
- Use follow-up questions to dive deeper into specific areas
- Visit our Prompting Guides for more tips!
Token Management
Token Management
Token Management
- Rotate tokens regularly (every 60-90 days)
- Use descriptive names to track token usage
- Delete unused tokens to maintain security
- Each team member should have their own token
Security Considerations
- Token Security: Store your Personal Access Token securely and never commit it to version control
- Project Scope: An MCP token only provides access to the single project it was scoped to
- Audit Trail: All MCP interactions are logged in your PlayerZero project
- Expiration: Personal Access Tokens used for MCP access automatically expire when project or organization membership is lost for security