Skip to main content

BugHerd and Gemini CLI integration

K
Written by Kriztin Abellon

Use this guide to connect BugHerd to the Gemini CLI, so you can access your BugHerd projects, tasks, and comments directly from your terminal.

Prerequisites

Before you begin:

  • You have a BugHerd account

  • You have access to at least one BugHerd organization

  • You have the Gemini CLI installed

How to install

1. Add the BugHerd MCP server

In your terminal, run:

gemini mcp add --transport http --scope user bugherd https://mcp.bugherd.com/mcp

This adds BugHerd for every project on your computer. To add it to the current project only, leave out --scope user.

2. Connect your BugHerd account

Start the Gemini CLI, then run:

/mcp auth bugherd

Your browser will open the BugHerd authorization page.

  • Log in if prompted

  • Select the organization you want Gemini CLI to access

  • Click Allow

The organization you select is the one Gemini CLI can access.

3. Confirm the connection

After you allow access, return to the Gemini CLI. BugHerd is ready to use.

Add BugHerd by editing the settings file

Use this if you prefer to edit the file yourself.
​
​

Open ~/.gemini/settings.json. On a Mac, this file is in your home folder and may be hidden. Press Shift+Command+. to show hidden files.

Add this to the file. If the file already has other settings, add the bugherd entry inside the existing mcpServers section.

{   "mcpServers": {     "bugherd": {       "httpUrl": "https://mcp.bugherd.com/mcp"     }   } }

Save the file, restart the Gemini CLI, then run /mcp auth bugherd and approve the organization as above.

To connect BugHerd in one project only, put the same entry in .gemini/settings.json inside that project.

Verify your connection

In the Gemini CLI, try:

"List my BugHerd projects"

If your projects are returned, the connection is working.

Add the BugHerd skills

BugHerd skills give Gemini CLI extra instructions for working with BugHerd, such as finding the right project, creating feedback, triaging tasks, fixing issues with your approval, and summarising project activity.

1. Install the skills

Ask Gemini CLI:

"Install the BugHerd agent skills from https://github.com/macropodhq/bugherd-mcp.

Copy each folder inside skills/ into ~/.gemini/skills/, keeping the folder names and files as they are."

To install them manually, copy each folder inside the skills folder of the repository into:

  • ~/.gemini/skills/ to use them in all your projects, or

  • .gemini/skills/ in a project to use them in that project only

2. Load the skills

In Gemini CLI, run:

/skills reload

Then run /skills list to check the BugHerd skills are listed.

3. Use the skills

Gemini CLI uses the BugHerd skills automatically when they are relevant to your request. The first time it uses a skill, it will ask for your permission.

Try:

"Review the latest feedback in my BugHerd project and suggest a status for each task"

What you can do with BugHerd's MCP

For a full list of what you can do with BugHerd's MCP, check out Getting Started with the BugHerd MCP server.

Need help? Contact [email protected] or start a chat from the app.

Did this answer your question?