MCP setupAuthorization Bearer
Connect GitHub Copilot cloud agent to LeadMagic
For GitHub Copilot cloud agent.
There is no interactive sign-in: the cloud agent doesn't support OAuth, so it sends the token stored in the COPILOT_MCP_LEADMAGIC_TOKEN secret. Access tokens last one day; update the secret when it expires.
Sign-in: There is no interactive sign-in: the cloud agent doesn't support OAuth, so it sends the token stored in the COPILOT_MCP_LEADMAGIC_TOKEN secret. Access tokens last one day; update the secret when it expires.
Repository MCP configuration
Recommendedjson · project · Token
Needs a LeadMagic OAuth access token (issued by https://clerk.leadmagic.io, scope mcp_all, valid for one day). LeadMagic API keys are rejected.
- 1In the repository, open Settings → Copilot → MCP servers.
- 2Paste the JSON below. `tools` is required.
- 3Add a secret named COPILOT_MCP_LEADMAGIC_TOKEN holding a LeadMagic OAuth access token to the repository's copilot environment.
{
"mcpServers": {
"leadmagic": {
"type": "http",
"url": "https://mcp.leadmagic.io/mcp",
"tools": [
"*"
],
"headers": {
"Authorization": "Bearer $COPILOT_MCP_LEADMAGIC_TOKEN"
}
}
}
}