GitHub Integration
GitHub MCP
Manage repositories, issues, and pull requests directly from Ask Sage.
Table of Contents
Prerequisites
- Account type: Enterprise account with a minimum of 10M monthly tokens, or a dedicated Ask Sage tenant/instance.
- Activation: Contact your administrator to request hosted MCP access through Ask Sage support at support@asksage.ai.
After we work with you or your administrator to enable the integration, you'll receive confirmation and users can follow the setup steps below.
Connecting Your GitHub Account
The first step is to connect your GitHub account to your Ask Sage profile.
- Navigate to Account Settings: Click your user profile icon (typically in the bottom-left corner) and select Account.
- Initiate GitHub Sign-In: Scroll to the bottom of the Account settings panel to find the sign-in options. Click Sign in with GitHub.
- Authorize: A GitHub authorization window opens. Sign in with your GitHub credentials and click the green Authorize Ask Sage GitHub MCP button to grant the necessary permissions.
- Verify the connection: After authorizing, the Ask Sage page refreshes automatically. Return to Account settings — the button will now read Logout from GitHub, confirming you're connected.
Activating and Using the GitHub Tool
Once your account is connected, enable the tool in the chat interface to start using it.
- Access the Tools menu: In the main chat window, click the settings icon (often shown as sliders) above the text input field to open the configuration panel.
- Enable the GitHub tool: Under the Tools section, find GitHub and click its toggle. The switch turns blue when active.
Tool Configuration
- Select a compatible model: Use a model that supports tool integration (MCP). Filter for these by selecting the MCP tag on the model selection screen. Models like GPT-Auto are designed to use these tools automatically.
Model Selection with MCP Filter
Making a Request
You can now ask questions or give commands related to your GitHub data.
- Make a request: Type a natural-language command into the chat. For example:
- "List my repositories."
- "Create an issue in the 'frontend' repo titled 'Fix login button bug'."
- "Summarize the latest pull request in the 'backend' project."
- Approve tool usage: For security, Ask Sage prompts you before accessing your data. A Tool Call Approval card appears showing the specific action. Review and click Approve.
Tool Call Approval
Once approved, Ask Sage executes the task and returns the requested information or confirms the action completed.
Tool Execution Result
Available Functions
The following table shows a summary of some of the available functions in the GitHub tool:
| Function | Description |
|---|---|
list_repositories | Retrieve a list of repositories accessible to the authenticated user. |
create_issue | Create a new issue in a repository to track bugs, feature requests, or tasks. |
list_pull_requests | Retrieve a filtered and sorted list of pull requests from a repository. |
create_pull_request | Create a new pull request to propose changes from one branch to another. |
get_file_content | Retrieve the complete content and metadata of a specific file from a repository. |
create_branch | Create a new branch in a repository from an existing branch or specific commit. |
Support
Need help? If you encounter any issues connecting your account or using the tool, reach out to us at support@asksage.ai.