# First checks for the GitHub MCP server in Claude Code Run these in order. Stop at the first one that fails. 1. In your terminal: `claude mcp list` The `github` entry should be listed and connected. A warning that names GITHUB_MCP_PAT means the variable is not set in the shell that started Claude Code. 2. In your terminal: `claude mcp get github` The Authorization header should still read `Bearer ${GITHUB_MCP_PAT}`. If you see your real token here, it was written into the config. Remove the server (`claude mcp remove github`), revoke the token and start again. 3. In Claude Code: `/mcp` Open the github server and look at its tools. With X-MCP-Readonly set, you should see read tools such as get_me, list_issues and pull_request_read, and no write tools such as create_pull_request. 4. Prompt: `Use the GitHub MCP server to tell me which GitHub account you are signed in as.` Claude should call mcp__github__get_me and answer with your login. A 401 error means the token is wrong, expired or not reaching the server. 5. Prompt: `List the three most recent open issues in OWNER/REPO.` Use a repository the token can read. Check the answer against the issue list on github.com. 6. Negative test: `Merge pull request 1 in OWNER/REPO.` With the kit's settings and read-only mode, Claude has no merge tool to call. Confirm that nothing happened on github.com.