Integrating the Patchworks product documentation MCP server with Gemini

Introduction

You can integrate the Patchworks documentation MCP server with Gemini CLIarrow-up-right and Gemini Code Assistarrow-up-right. Both these tools use the same settings file, so adding an MCP server via the CLI will also update your Code Assist integration.

Need to know

  • The steps detailed below assume that Gemini CLI is installedarrow-up-right.

  • The URL for the Patchworks product documentation MCP server is: https://doc.wearepatchworks.com/product-documentation/~gitbook/mcp

The steps

circle-info

The steps detailed below are for the macOS terminal. You should adapt as needed for your own operating system or environment.

1

Open the Gemini settings file

You need to open the /.gemini/settings.json file. How you do this depends on your environment and preferred tool for editing - some common commands from a macOS terminal window are below:

Nano
nano ~/.gemini/settings.json
VS Code
code ~/.gemini/settings.json
TextEdit
open -e ~/.gemini/settings.json
circle-info

Your path to /.gemini/settings.json may vary.

2

Add MCP server details

Look for an "mcpServers" section and add the details below:

Field
Summary

URL

https://doc.wearepatchworks.com/product-documentation/~gitbook/mcp

Type

Always set to: http

For example:

{
    "mcpServers": {
        "PatchworksDocs": {
            "url": "https://doc.wearepatchworks.com/product-documentation/~gitbook/mcp",
            "type": "http"
        }
    }
}
circle-info

If a settings.json file does not exist in /.gemini, you should create one and paste in the example snippet above.

3

Save and exit

Save and close the settings.json file.

4

Check the new MCP server in Gemini CLI

Launch Gemini CLI (if it's already open, restart to pick up the latest settings.json file), then enter the following command:

/mcp list

This returns a list of MCP servers, and should include the one just added. For example:

Last updated

Was this helpful?