GitHub Extension
π₯Plug & Play
Watch the demo
This tutorial covers how to add the GitHub MCP Server as a Goose extension to enable file operations, repository management, search functionality, and more.
TLDR
- goose Desktop
- goose CLI
Add a Remote Extension (Streaming HTTP) extension type with:
Endpoint URL
https://api.githubcopilot.com/mcp/
Custom Request Header
Authorization: Bearer <YOUR_GITHUB_PERSONAL_ACCESS_TOKEN>
Configurationβ
These steps configure the Remote MCP Server. For other deployment options, see the official GitHub MCP Server documentation.
- goose Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Get your GitHub Personal Access Token and paste it in
- Click
Add Extension - Click the button in the top-left to open the sidebar
- Navigate to the chat
- Run the
configurecommand:
goose configure
- Choose to add a
Remote Extension (Streaming HTTP).
β goose-configure
β
β What would you like to configure?
β Add Extension
β
β What type of extension would you like to add?
β β Built-in Extension
β β Command-line Extension
β β Remote Extension (SSE)
β β Remote Extension (Streaming HTTP) (Connect to a remote extension via MCP Streaming HTTP)
β
- Give your extension a name.
β goose-configure
β
β What would you like to configure?
β Add Extension
β
β What type of extension would you like to add?
β Remote Extension (Streaming HTTP)
β
β What would you like to call this extension?
β github
β
- Enter the Streaming HTTP endpoint URI.
β goose-configure
β
β What would you like to configure?
β Add Extension
β
β What type of extension would you like to add?
β Remote Extension (Streaming HTTP)
β
β What would you like to call this extension?
β github
β
β What is the Streaming HTTP endpoint URI?
β https://api.githubcopilot.com/mcp/
β
- Enter the number of seconds Goose should wait for actions to complete before timing out. Default is
300seconds.
β goose-configure
β
β What would you like to configure?
β Add Extension
β
β What type of extension would you like to add?
β Remote Extension (Streaming HTTP)
β
β What would you like to call this extension?
β github
β
β What is the Streaming HTTP endpoint URI?
β https://api.githubcopilot.com/mcp/
β
β Please set the timeout for this tool (in secs):
β 300
β
- Enter a description for this extension.
β goose-configure
β
β What would you like to configure?
β Add Extension
β
β What type of extension would you like to add?
β Remote Extension (Streaming HTTP)
β
β What would you like to call this extension?
β github
β
β What is the Streaming HTTP endpoint URI?
β https://api.githubcopilot.com/mcp/
β
β Please set the timeout for this tool (in secs):
β 300
β
β Enter a description for this extension:
β GitHub repository management and operations
β
- Add a custom header for this extension.
info
Obtain your GitHub Personal Access Token and paste it in as the
Bearer token.β goose-configure
β
β What would you like to configure?
β Add Extension
β
β What type of extension would you like to add?
β Remote Extension (Streaming HTTP)
β
β What would you like to call this extension?
β github
β
β What is the Streaming HTTP endpoint URI?
β https://api.githubcopilot.com/mcp/
β
β Please set the timeout for this tool (in secs):
β 300
β
β Enter a description for this extension:
β GitHub repository management and operations
β
β Would you like to add custom headers?
β Yes
β
β Header name:
β Authorization
β
β Header value:
β Bearer ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
β
β Add another header?
β No
β
β Added github extension
Example Usageβ
When creating my GitHub Personal Access Token, I gave it the following access:
- Repository: goose-demo
- Read access to metadata
- Read and Write access to code, commit status, issues, and pull requests
goose Promptβ
create a new branch called hello-world in my angiejones/goose-demo repository. Update the README.md file to say "this was written by goose" and commit it. Open a pull request with your changes.
goose Outputβ
I'll help you create a new branch, update the README, and open a pull request. Let me break this down into steps:
1. First, let's create the new branch called "hello-world" in your repository
2. Then update the README.md file
3. Finally, create a pull request
Let me execute these steps:
1. Creating the new branch:
βββ create_branch | github ββββββββββββββββββββββββββ
branch: hello-world
owner: angiejones
repo: goose-demo
2. Now, updating the README.md file in the new branch:
βββ create_or_update_file | github ββββββββββββββββββββββββββ
branch: hello-world
content: this was written by goose
message: Update README.md with Goose message
owner: angiejones
path: README.md
repo: goose-demo
3. Finally, creating the pull request:
βββ create_pull_request | github ββββββββββββββββββββββββββ
base: main
body: ...
head: hello-world
owner: angiejones
repo: goose-demo
title: Update README.md
Great! I've completed all the requested tasks:
1. Created a new branch called "hello-world"
2. Updated the README.md file with the text "this was written by goose"
3. Created a pull request to merge these changes into the main branch
You can view the pull request at: https://github.com/angiejones/goose-demo/pull/1
The pull request is now ready for your review. Would you like me to do anything else with it?