> For the complete documentation index, see [llms.txt](https://docs.connected.events/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.connected.events/cookbook/set-up-your-community/first-steps-the-control-center/agents-and-ai.md). Agents can also search and read this documentation through its [MCP server](https://docs.connected.events/~gitbook/mcp).

# Agents & AI

Use AI in the Admin Portal to optimize your workflows.

## Introduction

The [**Agents & AI**](https://docs.connected.events/wiki/control-center/agents-and-ai.md) section lets you connect AI clients directly to your Connected Events organization, giving them secure access to your admin data through a hosted MCP server. Agents can read and act on your data using the tools available to them, all running under your existing admin credentials and permissions. This guide covers how to connect a client, what the agent can do, and how to use the feature responsibly.

## How to Connect the MCP&#x20;

<figure><img src="https://285465303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrgCqXYXfIqcyaNSQwMZ%2Fuploads%2FRZqCSoeeMKeIu0d26zwp%2Fagentsai.gif?alt=media&amp;token=2b26af52-4082-48e3-bfd5-43d4f82281a4" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}

#### Create an Agent Admin Account

* Sign out of the Admin Portal by selecting your profile icon at the top right of the Admin Portal and select **"Log Out."**
* On the Sign In Page select **"Create an Account."**&#x20;
* Create an account with a dedicated email address and password for the agent and select **"Sign Up."**&#x20;
* Log out of the agent admin account by selecting the agent account's profile icon at the top right of the page and select **"Log Out."**
* Login to your personal admin account.&#x20;
  {% endstep %}

{% step %}

#### Add Admin to the Admin Portal

* Select the waffle icon **(**<img src="https://285465303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrgCqXYXfIqcyaNSQwMZ%2Fuploads%2F0XbXnlX25yGrDe9qGywc%2FUntitled%20(100%20x%20100%20px)%20(2).png?alt=media&amp;token=0266f5e9-62b2-45ff-bd47-a970b2354353" alt="" data-size="line">**)** at the top of the Admin portal.&#x20;
* Select **"Control Center"** from the bottom right of the dropdown menu.
* Select **"Admins"** from the left-hand menu.&#x20;
* Select **"Add Admin +"** on the top right of the page.&#x20;
* Enter the email you created the agent admin account with in [step one](#create-an-agent-admin-account) and select **"Add."**&#x20;
  {% endstep %}

{% step %}

#### Grant Minimum Permissions

* Enable the permissions you wish to grant the agent.&#x20;
  * We recommend leaving the Users and Organization permissions off unless the work requires them as those are super-admin permissions and can change who else has access.&#x20;
  * We also recommend leaving all delete permissions off.&#x20;
* Select **"Save"** to finalize the edits.&#x20;
  {% endstep %}

{% step %}

#### Connect Agent and Configure&#x20;

* Select the Agent you wish to connect under the MCP tab.&#x20;

<details>

<summary>Claude Code</summary>

* Select the **"Claude Code"** tab under the top menu.&#x20;
* Copy the server URL from the Your Server URL field at the top of the page.
* In your terminal, run the following command to add the server: `claude mcp add --transport http connected-admin <your-server-url>`
* Open a Claude Code session and run `/mcp`, then choose to authenticate.
* Your browser will open a Connected consent page — review it, then sign in with your dedicated agent admin account credentials.

{% hint style="info" %}
If the command or menu options don't match what you see, follow Claude Code's own instructions for adding a remote (streamable HTTP) MCP server and paste your server URL when prompted.
{% endhint %}

</details>

<details>

<summary>Claude</summary>

* Select the **"Claude"** tab under the top menu.&#x20;
* Copy your server URL from the Your Server URL at the top of the page.&#x20;
* In Claude, open Settings and navigate to Connectors.&#x20;
* Choose "Add Custom Connector" and paste your server URL.
* Select "Connect" and sign in with your dedicated agent admin accounts credentials when the Connected consent page opens.&#x20;

{% hint style="info" %}
If the menu options don't match what you see, follow Claude's own instructions for adding a remote (streamable HTTP) MCP server and paste your server URL when prompted.
{% endhint %}

</details>

<details>

<summary>Codex</summary>

* Select the **"Codex"** tab under the top menu.&#x20;
* Copy your server URL from the Your Server URL field at the top of the page.&#x20;
* Add the following to your `~/.codex/config.toml` file, replacing the URL with your server URL.&#x20;
* In your terminal, run `codex mcp login connected_admin` to authenticate.&#x20;
* Your browser will open a Connected consent page. Review it, then sign in with your dedicated agent admin account credentials.&#x20;

{% hint style="info" %}
If the commands don't match what you see, follow Codex CLI's own instructions for adding a remote (streamable HTTP) MCP server and paste your server URL when prompted.
{% endhint %}

</details>

<details>

<summary>Cursor</summary>

* Select the **"Cursor"** tab under the top menu.&#x20;
* Copy your server URL from the Your Server URL field at the top of the page.
* Add the following to your `~/.cursor/mcp.json` file (global) or `.cursor/mcp.json`&#x20;
  * `{`\
    `"mcpServers": {`\
    `"connected-admin": {`\
    `"url": ""`\
    `}`\
    `}`\
    `}`
* The first time the server is used, Cursor will prompt you to sign in. Your browser will open a Connected consent page — review it, then sign in with your dedicated agent admin account credentials.

{% hint style="info" %}
If the configuration options don't match what you see, follow Cursor's own instructions for adding a remote (streamable HTTP) MCP server and paste your server URL when prompted.
{% endhint %}

</details>

<details>

<summary>VS Code</summary>

* Select the **"VS Code"** tab under the top menu.&#x20;
* Copy your server URL from the Your Server URL field at the top of the page.
* Add the following to your `.vscode/mcp.json` file in your workspace, replacing the URL with your server URL:
  * `{`\
    `"servers": {`\
    `"connected-admin": {`\
    `"type": "http",`\
    `"url": ""`\
    `}`\
    `}`\
    `}`
* The first time the server is used, your browser will open a Connected consent page — review it, then sign in with your dedicated agent admin account credentials.

{% hint style="info" %}
If the configuration options don't match what you see, follow VS Code (GitHub Copilot)'s own instructions for adding a remote (streamable HTTP) MCP server and paste your server URL when prompted.
{% endhint %}

</details>
{% endstep %}

{% step %}

#### Review the Overview Tab

* Select the **"Overview"** tab under the top menu.&#x20;
* Read what the agent can do and adjust the agent's rules as desired.&#x20;
  {% endstep %}

{% step %}

#### Read Best Practices

* Select the **"Best Practices"** tab under the top menu.&#x20;
* Read the best practices tips.&#x20;
  {% endstep %}
  {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.connected.events/cookbook/set-up-your-community/first-steps-the-control-center/agents-and-ai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
