Connect GitHub
github_connectConnect or replace a GitHub credential without pasting a token: start a device flow, show the code, then poll for authorization; tokens go to the encrypted vault and are never returned.
Instructions
Connect GitHub with Device Flow. action=start returns verification_uri and user_code: show them to the user, then action=poll with pending_id after they authorize. Tokens go to the encrypted vault and are never returned. Use when: the user wants to connect or replace the GitHub credential without pasting a token. Avoid when: you only need public read access, or a token is already configured. Output: start: verification_uri, user_code, pending_id, expiry. poll: pending | denied | expired | connected.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "github_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | start: begin the device flow (returns verification_uri + user_code). poll: check with pending_id whether the user authorized. | |
| pending_id | No | action=poll: opaque id returned by action=start; it does not contain the device code or token. | |
| replace_existing | No | action=start: 1 explicitly authorizes replacing an existing GitHub credential; 0 does not. |