Co-authored-by: Michael Neale <michael.neale@gmail.com> Co-authored-by: Wendy Tang <wendytang@squareup.com> Co-authored-by: Jarrod Sibbison <72240382+jsibbison-square@users.noreply.github.com> Co-authored-by: Alex Hancock <alex.hancock@example.com> Co-authored-by: Alex Hancock <alexhancock@block.xyz> Co-authored-by: Lifei Zhou <lifei@squareup.com> Co-authored-by: Wes <141185334+wesrblock@users.noreply.github.com> Co-authored-by: Max Novich <maksymstepanenko1990@gmail.com> Co-authored-by: Zaki Ali <zaki@squareup.com> Co-authored-by: Salman Mohammed <smohammed@squareup.com> Co-authored-by: Kalvin C <kalvinnchau@users.noreply.github.com> Co-authored-by: Alec Thomas <alec@swapoff.org> Co-authored-by: lily-de <119957291+lily-de@users.noreply.github.com> Co-authored-by: kalvinnchau <kalvin@block.xyz> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Rizel Scarlett <rizel@squareup.com> Co-authored-by: bwrage <bwrage@squareup.com> Co-authored-by: Kalvin Chau <kalvin@squareup.com> Co-authored-by: Alice Hau <110418948+ahau-square@users.noreply.github.com> Co-authored-by: Alistair Gray <ajgray@stripe.com> Co-authored-by: Nahiyan Khan <nahiyan.khan@gmail.com> Co-authored-by: Alex Hancock <alexhancock@squareup.com> Co-authored-by: Nahiyan Khan <nahiyan@squareup.com> Co-authored-by: marcelle <1852848+laanak08@users.noreply.github.com> Co-authored-by: Yingjie He <yingjiehe@block.xyz> Co-authored-by: Yingjie He <yingjiehe@squareup.com> Co-authored-by: Lily Delalande <ldelalande@block.xyz> Co-authored-by: Adewale Abati <acekyd01@gmail.com> Co-authored-by: Ebony Louis <ebony774@gmail.com> Co-authored-by: Angie Jones <jones.angie@gmail.com> Co-authored-by: Ebony Louis <55366651+EbonyLouis@users.noreply.github.com>
5.9 KiB
sidebar_position, title
| sidebar_position | title |
|---|---|
| 2 | Managing Goose Extensions |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Extensions are add-ons that provide a way to extend the functionality of Goose. They also provide a way to connect Goose with applications and tools you already use in your workflow. These extensions can be used to add new features, automate tasks, or integrate with other systems.
Extensions are based on the Model Context Protocol (MCP), so you can connect Goose to a wide ecosystem of capabilities.
Adding Extensions
You can add extensions to Goose through the CLI or the UI.
- After the initial Goose setup, You can add extensions through the configuration system.
```
goose configure
```
- Choose
Add Extensionto see the options.
You can also edit the config file directly, which is stored in ~/.config/goose/config.yaml.
Removing Extensions
You can remove extensions installed on Goose
At the moment, you can remove extensions by editing the config file directly, which is stored in `~/.config/goose/config.yaml`.- Locate the menu (...) in the top right corner of the Goose UI.
- Select
Settingsfrom the menu. - Under
Extensions, find the extension you'd like to remove and click on the settings icon beside it. - In the dialog that appears, click
Remove Extension.
Built-in Extensions
Out of the box, Goose is installed with a few extensions out of the box but with only the Developer extension enabled by default.
Here are the default extensions:
- Developer: The
Developerextension provides a set of general development tools that are useful for software development. - Non-Developer: The
Non-Developerextension provides general computer control tools that don't require you to be a developer or engineer. - Memory: The
Memoryextension teaches goose to remember your preferences as you use it - JetBrains: The
JetBrainsextension provides an integration for working with JetBrains IDEs. - Google Drive: The
Google Driveextension provides an integration for working with Google Drive for file management and access.
Toggling Built-in Extensions
1. Run Goose configuration:```bash
goose configure
```
2. Choose `Add Extension`
3. Choose `Built-in Extension`
Alternatively, you can enable a built-in extension by specifying its name in this command:
```
goose mcp {name}
```
1. Locate the menu (...) in the top right corner of the Goose UI.
2. Select `Settings` from the menu.
3. Under `Extensions`, you can toggle the built-in extensions on or off.
:::tip All of Goose's built-in extensions are MCP servers in their own right. If you'd like to use the MCP servers included with Goose with any other agent, you are free to do so. :::
MCP Servers
You can run any MCP server as a Goose extension.
1. Run `goose configure`
2. Choose `Add Extension`
3. Choose `Command-line Extension`
You'll then be prompted to enter a command and any environment variables needed. For example, to connect to the [Fetch Server](https://github.com/modelcontextprotocol/servers/tree/main/src/fetch), enter `uvx mcp-server-fetch` as the command.
You can also edit the resulting config entry directly, which would look like this:
```yaml
extensions:
fetch:
name: fetch
cmd: uvx
args: [mcp-server-fetch]
enabled: true
envs: {}
type: stdio
```
- Locate the menu (...) in the top right corner of the Goose UI.
- Select
Settingsfrom the menu. - Under
Extensions, you can add a MCP server as an extension manually by clicking on the (+) button to the right. - In the dialog that appears, enter the details of the MCP server including any environment variables needed.
Discovering Extensions
Goose comes with a central directory of extensions that you can install and use. You can install extensions from the Goose CLI or from the Goose GUI. The page will give you a test command to try out extensions, and if you want to keep them, you can add through goose configure.
You can test out an extension for a single session with
goose session --with-extension "command to run"
Starting a Session with Extensions
You can start a tailored goose session with specific extensions directly from the CLI. To do this, run the following command:
goose session --with-extension "{extension command}"
:::note You may need to set necessary environment variables for the extension to work correctly.
goose session --with-extension "VAR=value command arg1 arg2"
:::
Developing Extensions
Goose extensions are implemented with MCP - a system that allows AI models and agents to securely connect with local or remote resources using standard protocols. Learn how to build your own extension as an MCP server.