> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-ai/3.0/use-harness-ai/ide-and-integrations/grok-bot-connector.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Harness Connector for Grok Bot

Connect Harness to Grok Bot through Connectors to use Harness from Grok Bot after an OAuth authorization.

You can connect Grok Bot to Harness with the same Harness AI plugin that Cursor uses. Add Harness from the Grok Bot **Connectors** list, complete the OAuth prompt, and use Harness from Grok Bot.

***

## What you will learn from this topic

By the end of this topic, you will be able to:

* [Connect Harness to Grok Bot](#connect-harness-to-grok-bot).
* [Connect multiple Harness instances](#connect-multiple-harness-instances).
* [See example prompts and responses](#example-use-cases).

***

## Before you begin

Before you connect Grok Bot, ensure you have the following:

* **Grok Bot access**: An account with access to Grok Bot **Connectors**.
* **Harness account**: An active Harness account.
* **OAuth enabled**: Account-level OAuth, which [Harness Support](https://support.harness.io) turns on for your account. Go to [Harness AI Cursor Plugin](https://developer.harness.io/harness-ai/3.0/use-harness-ai/ide-and-integrations/cursor-plugin.md) for the request steps.

***

## Connect Harness to Grok Bot

1. In Grok Bot, open **Connectors**.
2. Search for **Harness**.
3. Complete the OAuth prompt.

After you authorize, you can use Harness from Grok Bot.

***

## Connect multiple Harness instances

Grok Bot supports connecting multiple instances of the Harness MCP server. Use this to work with more than one Harness account, for example a production account and a sandbox account, from the same Grok Bot.

***

## Example use cases

Grok Bot calls Harness tools on your behalf, so you can ask for status, run a pipeline, and check the result in one conversation. These examples come from a real session. Names, versions, and times are illustrative.

### Review recent pipeline activity

Grok Bot asks which organization and project to treat as home base, then lists pipelines and recent runs.

> **You:** Default and PM\_Signoff
>
> **Grok Bot:** PM\_Signoff has 91 pipelines, but it has been quiet lately: only 7 runs in the past three weeks, and nothing has outright failed. Publish MCP Server ran clean three times. Test Approval sat a full day waiting for approval until it expired. A Demo run only finished because a failing step was set to be ignored.

Grok Bot can then investigate any of these runs, or offer to check the project each morning and message you only when a run fails.

### Run a pipeline with an input

> **You:** Can we execute the publish mcp pipeline and for input do v3.2.41
>
> **Grok Bot:** Starting a Publish MCP Server run with the tag v3.2.41. First I am checking which input the tag goes into.

Ask a follow-up to confirm the input format against earlier runs:

> **You:** From previous runs did we have v?
>
> **Grok Bot:** Yes, all three earlier runs used the v prefix: v3.2.35, v3.2.36, and v3.2.39. So v3.2.41 fits the pattern. The run is going now on main. The earlier runs took about 3 minutes.

### Follow a run to completion

> **You:** What step is it running on?
>
> **Grok Bot:** It already finished, and the run succeeded. The Build stage ran for about 2 minutes 15 seconds, which is a bit faster than the earlier runs. I am still pulling the image digest and the commit it built.

Grok Bot then reports the published image tag and digest, the commit it was built from, and anything worth checking, such as a commit that is not a version bump when earlier releases were.

### Review a pipeline for improvements

Ask Grok Bot why a run produced warnings. It can point out an unsupported Node version in the build image, skipped install scripts, or a cache step with no effect because it needs an explicit key and path.

{% hint style="info" %}
Pipeline runs that Grok Bot starts follow your Harness RBAC permissions, the same as any other Harness MCP client.
{% endhint %}

***

## Next steps

* [Harness AI Cursor Plugin](https://developer.harness.io/harness-ai/3.0/use-harness-ai/ide-and-integrations/cursor-plugin.md): Use the same plugin inside the Cursor IDE.
* [Anthropic Harness Connector](https://developer.harness.io/harness-ai/3.0/use-harness-ai/ide-and-integrations/anthropic-harness-connector.md): Connect Harness to the Claude apps.
* [Harness MCP Server](https://developer.harness.io/harness-ai/3.0/use-harness-ai/ide-and-integrations/mcp-server/harness-mcp-server.md): Connect other AI clients to the hosted endpoint.

{% @harness-feedback/feedback %}
