# Copilot in InteliJi

### Summary

This guide shows you how to install and configure the DataFlint MCP (Model Context Protocol) server in IntelliJ IDEA.

The entire process should take just a few minutes.

The steps are:

1. Prerequisites - Ensure you have the required tools installed
2. Install the Continue plugin
3. Configure DataFlint MCP server
4. Authenticate with your organization
5. 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
* **IntelliJ IDEA** (version 2024.1 or later)
* 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: Install the Continue plugin

1. Open IntelliJ IDEA
2. Go to **File** → **Settings** (or **IntelliJ IDEA** → **Settings** on Mac)

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FLirV5Kanxmf8JafwYNP0%2Fimage.png?alt=media&#x26;token=05db3b55-b828-45e2-9a46-b1978b79d4ee" alt=""><figcaption></figcaption></figure>

1. Navigate to **Plugins**
2. Click on the **Marketplace** tab
3. Search for "Continue"
4. Click **Install** on the Continue plugin

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2F5D53SAwOsiwn75roqPaR%2Fimage.png?alt=media&#x26;token=5949d6f0-767f-46c7-9531-9e204445df9c" alt=""><figcaption></figcaption></figure>

1. Click **Restart IDE** when prompted

After restart, you should see the Continue icon in the right sidebar.

#### Step 2: Add DataFlint MCP server

1. Click on the Continue icon in the right sidebar to open the Continue panel
2. Click the gear icon ⚙️ (Settings) at the bottom of the Continue panel
3. In the settings page that opens, navigate to the **Tools** tab
4. In the MCP tab, click **Add MCP Server** or the **+** button

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2Fi7KMWT92NmjnNQmr8vhY%2Fimage.png?alt=media&#x26;token=6dc5af29-66f9-4920-aea2-123e2dfc2f85" alt=""><figcaption></figcaption></figure>

5. Fill in the configuration details:

**For SaaS customers:**

```yaml
name: Local Config
version: 1.0.0
schema: v1
models: []
mcpServers:
  - name: dataflint
    command: npx
    args:
      - "-y"
      - "@dataflint/mcp-server@latest"
```

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

yaml

```yaml
name: Local Config
version: 1.0.0
schema: v1
models: []
mcpServers:
  - name: dataflint
    command: npx
    args:
      - "-y"
      - "@dataflint/mcp-server@latest"
      - "--customer-domain"
      - "YOUR_COMPANY_NAME"
```

### Verify the installation

#### Check MCP connection status

1. Open the Continue panel in IntelliJ (click the Continue icon in the right sidebar)
2. Look at the bottom of the panel for the MCP section
3. You should see DataFlint listed with a green status indicator

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FDzuOA9iPfZbpLB873mAQ%2Fimage.png?alt=media&#x26;token=d50a48d4-fc26-4705-81a0-99c016c4abd2" alt=""><figcaption></figcaption></figure>

#### Test the connection

In the Continue chat panel, try asking:

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