GitHub MCP Server Connection Issue
Problem Description
Unable to establish connection with GitHub MCP server despite:
- Valid GitHub token
- Server process running
- Multiple troubleshooting attempts
Error Messages
Error executing MCP tool: {"name":"Error","message":"Not connected"}
Configuration
{
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_...redacted..."
},
"disabled": false,
"autoApprove": ["*"]
}
Troubleshooting Steps Taken
- Verified GitHub token works via direct API call
- Tried running server with --verbose flag
- Checked for running node processes
- Modified auto-approve settings
- Attempted multiple MCP tool calls
System Information
- OS: Windows 10
- Node: v20.11.1
- Shell: PowerShell 7
Suggested Next Steps
- Check server's MCP protocol implementation
- Verify stdio transport compatibility
- Review connection handshake process
GitHub MCP Server Connection Issue
Problem Description
Unable to establish connection with GitHub MCP server despite:
Error Messages
Configuration
{ "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_...redacted..." }, "disabled": false, "autoApprove": ["*"] }Troubleshooting Steps Taken
System Information
Suggested Next Steps