IntegrationsMCP Services
GitHub MCP Integration
Learn how to integrate GitHub with Cokpit using MCP service
GitHub Credentials
Step 1: Create a Personal Access Token (PAT)
Example: Personal Access Token
-
Go to GitHub → Settings → Developer settings → Personal access tokens.
-
Click Generate new token (classic) or Generate new token (fine-grained) depending on needs.
-
Give your token a descriptive name.
-
Select scopes/permissions:
repo(orcontents:readfor read-only)workflow(if you need actions access)
-
Click Generate token.
-
Copy the token immediately.
💡 Tip: Store the token securely; you won't be able to view it again.
Step 2: Add GitHub Credentials to Cokpit (MCP)
- Open Cokpit and go to Integrations → Version Control → GitHub (MCP).
- Click Add secret.
- Fill in the required fields:
- Enter a unique Secret Name
- Paste your Personal Access Token
- Click Submit.
Security Best Practices
- Create tokens with minimal required permissions
- Use fine-grained tokens when possible
- Regularly rotate tokens
- Use separate tokens per service or environment
- Enable two-factor authentication on GitHub