# Copilot in Cursor

## Extension Installation guide

1. In Cursor, go to Extension tab:

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2Fmgr4Xynvf2FmMJ1I9I1T%2Fimage.png?alt=media&#x26;token=5c54a291-7a73-494c-9d1d-172f44eb4fbe" alt=""><figcaption></figcaption></figure>

1. Search for DataFlint and press "Install"

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FBCMw1tw5vsrQiGOJvoqU%2Fimage.png?alt=media&#x26;token=10ee601b-a6d8-41dc-a9ec-04353981e88f" alt=""><figcaption></figcaption></figure>

3. **(BYOC customers only)** open vscode config and change "customer domain" to the your customer name!
4. DataFlint icon was added to the status bar, press on it (or alternatively, run the command "DataFlint: Login")

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FI4h2SwTeXhhfsCcudLXw%2Fimage.png?alt=media&#x26;token=33e2a011-0d79-43bd-964d-9a97c662dccc" alt=""><figcaption></figcaption></figure>

4. You will be get this popup, press Open (and also suggested to set "Configure Trusted Domains" and press enter afterwards)

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FCKielEwTmipyYM7Lznhv%2Fimage.png?alt=media&#x26;token=241b02b1-b05e-4342-bced-f7bdf32baf70" alt="" width="375"><figcaption></figcaption></figure>

5. In the link you will log in using your Google OAuth, afterward you should get this screen:

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FSkd66odQDBaFbPUxFZiC%2Fimage.png?alt=media&#x26;token=23755e94-bd55-4ff8-ab68-70c7eb6dd414" alt="" width="375"><figcaption></figcaption></figure>

6. ONLY FOR BYOC/SINGLE TENENT CUSTOMER - run command-p, choose Set Customer Domain and enter your company name (for example - dataflint). For SaaS customer this is not needed.

   <figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2F3k4KqXPXXyIpj1nB1fCS%2Fimage.png?alt=media&#x26;token=37241e29-2a5e-481e-bc03-4de2803ea92e" alt=""><figcaption></figcaption></figure>

7. Return to Cursor, you should see a DataFlint "connect" icon, meaning you authenticated successfully

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FsJ9C6t9dg10E5xSA24bi%2Fimage.png?alt=media&#x26;token=3fb8faa2-e47b-47a5-b820-a1782ce6c8e9" alt="" width="375"><figcaption></figcaption></figure>

7. You will get a popup to enable `dataflint-copilot` MCP server, press "enable". \
   It can also enabled by going to settings -> tools and integration -> MCP Tools -> dataflint-copilot -> enable toggle

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FeDGykf7t4ljX3h1CobDs%2Fimage.png?alt=media&#x26;token=ad7f2006-3b3b-4c05-ab74-1d128263ff6b" alt="" width="375"><figcaption></figcaption></figure>

8. Verify your installation:
   1. Open Cursor
   2. Go to **Cursor Settings** -> In the left sidebar, click on **Tools & MCP**
   3. Look for DataFlint in the MCP servers list

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FeypMeP6YOFqOtmYCaq8b%2Fimage.png?alt=media&#x26;token=d552c6a5-e5e7-4c71-9c0e-d70e283de269" alt=""><figcaption></figcaption></figure>

After this step, your AI IDE is connected to your DataFlint SaaS account via MCP and you are ready to go!

### Alternative - install only MCP server

This guide shows you how to install and configure the DataFlint MCP (Model Context Protocol) server in Cursor, and not the full IDE extension

The entire process should take just a few minutes.

The steps are:

1. Prerequisites - Ensure you have the required tools installed
2. Configure Cursor
3. Authenticate with your organization
4. Verify the installation

### Prerequisites

Before installing the DataFlint MCP server, ensure you have:

* **Node.js** (version 18 or higher) installed on your system
* **npm** or **npx** available in your command line
* **Cursor** application installed
* Your **organization's customer domain** - Only for BYOC (bring your own cloud) customers. Contact your DataFlint admin if you don't know this.

### Installation

#### Step 1: Open MCP configuration in Cursor

You can configure DataFlint MCP directly in Cursor's settings:

1. Open Cursor
2. Go to **Cursor** menu → **Settings...** → **Cursor Settings**
3. In the left sidebar, click on **Tools & MCP**
4. Click the **Add Custom MCP** button

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2F0n6BhvBgazlrbrbdrQle%2Fimage.png?alt=media&#x26;token=f5617066-afbb-4c39-9492-1bf60661b7f5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2Fp2VrN5xhypgJx6bZm52r%2Fimage.png?alt=media&#x26;token=ea19f753-7ae7-46bf-a0f0-3531bbc8cb00" alt=""><figcaption></figcaption></figure>

#### Step 2: Configure DataFlint MCP server

In the MCP configuration dialog that appears, add the DataFlint MCP server configuration:

**For SaaS customers:**

```json
{
  "mcpServers": {
    "dataflint": {
      "command": "npx",
      "args": [
        "-y",
        "@dataflint/mcp-server@latest"
      ]
    }
  }
}
```

**For BYOC (bring your own cloud) customers:**

```json
{
  "mcpServers": {
    "dataflint": {
      "command": "npx",
      "args": [
        "-y",
        "@dataflint/mcp-server@latest",
        "--customer-domain",
        "YOUR_COMPANY_NAME"
      ]
    }
  }
}
```

Click **Save** to apply the configuration.

#### Step 3: First-time authentication

When you first use DataFlint MCP in Cursor:

1. Your browser will automatically open to your organization's authentication page
2. Log in with your organization credentials
3. Subsequent uses will not require browser authentication!

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FPeOn61ZZZk3y0zg1WzgU%2Fimage.png?alt=media&#x26;token=1d55a4b9-4bcd-4fa1-9293-4e11d2689d85" alt=""><figcaption></figcaption></figure>

After successful authentication, you can close the browser and return to Cursor.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FByfFRGtpPP6o6jNlgbjQ%2Fimage.png?alt=media&#x26;token=124ef3b2-b3a7-4b38-af3c-478f5ad8de50" alt=""><figcaption></figcaption></figure>

#### Test the connection

In the Cline chat panel, try asking:

```
"Find my top 5 application to fix by using DataFlint MCP"
```
