MCP setupAuthorization Bearer
Connect GitHub Copilot CLI to LeadMagic
For GitHub Copilot CLI.
GitHub doesn't document OAuth for remote MCP servers in Copilot CLI, so send a LeadMagic OAuth access token in the Authorization header.
Sign-in: GitHub doesn't document OAuth for remote MCP servers in Copilot CLI, so send a LeadMagic OAuth access token in the Authorization header.
Copilot CLI config
Recommendedjson · global · Token · mcp-config.json
Needs a LeadMagic OAuth access token (issued by https://clerk.leadmagic.io, scope mcp_all, valid for one day). LeadMagic API keys are rejected.
{
"mcpServers": {
"leadmagic": {
"type": "http",
"url": "https://mcp.leadmagic.io/mcp",
"tools": [
"*"
],
"headers": {
"Authorization": "Bearer YOUR_LEADMAGIC_OAUTH_TOKEN"
}
}
}
}Add from the command line
cli · global · Token
Or run /mcp add inside Copilot CLI. Then add the Authorization header to ~/.copilot/mcp-config.json.
copilot mcp add --transport http leadmagic https://mcp.leadmagic.io/mcp