> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Glean Agents - Connect StackOne

> Use the StackOne MCP server to connect your work systems to Glean Agents.

For people building agents in Glean's Agent Builder, after a Glean admin added StackOne. Using Glean Assistant instead? Follow [Organization User Setup](https://docs.stackone.com/ai-platforms/glean/glean-assistant/organization-user-setup.md).

> [!WARNING]
>
> Glean's support for MCP tools in agents is in beta.

## Add StackOne to an agent

**1. Create the agent**

In Glean, go to the **Agents** tab and create an agent.

**2. Add the StackOne MCP server as a tool**

In the panel on the right, open **Tools**, click **+**, choose **MCP**, and select the StackOne server your admin added.

![Glean agent builder with the Tools panel highlighted on the right and an Add tool button](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/glean/glean-agent-add-tool.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=1aad47f3d48d6bce5001b3e180840e61)

**3. Verify**

Click **Preview** and ask the agent:

```text theme={null}
Which of my Linked Accounts can you reach through StackOne?
```

Then **Publish** to make it available to the teammates you granted access to.

All of the server's tools are enabled on the agent automatically. Through the [Advanced Tool Search](https://docs.stackone.com/optimize/advanced-tool-search.md) tools, Search and Execute, the agent can find and run the actions each teammate granted, against the Linked Accounts that teammate has access to.

> [!NOTE]
>
> Glean supports MCP tools in **Plan and execute** steps and autonomous agents, not in single-step selections. They are also unavailable in Fast mode.

## How an agent signs in to StackOne

* **An agent you run** uses your own StackOne login. The first time, Glean lists StackOne under **Connect the following actions to run this agent**. Click **Connect**, sign in and authorize as described in [Organization User Setup](https://docs.stackone.com/ai-platforms/glean/glean-assistant/organization-user-setup.md), then click **Run agent**.
* **An agent that runs on its own**, with a shared login your admin set up, needs nothing from you.

![A Glean agent waiting to run, with StackOne listed under Connect the following actions to run this agent and Run agent turned off until it's connected](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/glean/glean-agent-connect-stackone.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=f86fb633143eb9bae38036781e05d6d2)

> [accordion] Add or change accounts
>
> Glean reaches only the Linked Accounts you approved when you connected. To add one you link later, or one someone shares with you afterwards:
>
> **1. Open Connected Apps**
>
> In the StackOne dashboard, go to [**Connected Apps**](https://app.stackone.com/connected_apps).
>
> **2. Edit the connection**
>
> 1. Open the **⋮** menu on the row for Glean and select **Edit tool access**.
> 2. Select the Linked Account.
> 3. Click **Save changes**.
>
> To review or revoke the connection, use the same **⋮** menu in **Connected Apps**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.