% export CR_PAT=<PAT with packages:read for the github org>
% echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
> Login Succeeded
% export GITHUB_PERSONAL_ACCESS_TOKEN=<Your PAT>
% docker run -i -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
GitHub MCP Server running on stdio
Send these commands one-by-one to the docker container and inspect the responses
{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2025-03-26"},"id":1}
{"jsonrpc":"2.0","method":"tools/list","id":2}
{"jsonrpc":"2.0","method":"tools/call","params":{"name":"get_me"},"id":3}