Developer Troubleshooting EngineInstant OS Fixes
MCP Error Decoder
Search exact error strings and stack traces from Claude Desktop, Cursor, and OpenAI Codex CLI. Inspect root causes and copy verified terminal fixes.
Category:
AuthenticationMedium
GitHub MCP 403: Resource protected by organization SAML
Symptom
GitHub MCP server fails to read enterprise repositories with 403 Forbidden error.
Root Cause
Your Personal Access Token (PAT) has not been authorized for SAML Single Sign-On (SSO) by the target GitHub Organization.
Remediation & Quick Fix
Visit GitHub Settings → Personal Access Tokens → Click 'Configure SSO' next to your token and authorize it for your organization.
OS Diagnostic Commands:
mac
# Verify GitHub PAT authorization:
curl -H "Authorization: token ghp_..." https://api.github.com/user/orgswindows
# Verify GitHub PAT authorization:
curl.exe -H "Authorization: token ghp_..." https://api.github.com/user/orgslinux
# Verify GitHub PAT authorization:
curl -H "Authorization: token ghp_..." https://api.github.com/user/orgsVerified Configuration Example:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_SAML_AUTHORIZED_TOKEN}"
}
}
}
}