github_connect
Establishes authenticated connection to GitHub API using a personal access token, with automatic credential caching for reuse. Supports custom API URLs and protocol selection.
Instructions
Connect to GitHub API with a Personal Access Token.
Credentials are automatically cached for future reconnection.
Args: token: GitHub Personal Access Token (generate at https://github.com/settings/tokens) api_url: GitHub API URL (default: https://api.github.com, change for GitHub Enterprise) protocol: Preferred clone/push protocol — 'ssh' or 'https' (default: ssh) timeout: Request timeout in seconds (default: 30) session_name: Name for this session (default: 'default')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| api_url | No | https://api.github.com | |
| timeout | No | ||
| protocol | No | ssh | |
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |