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

# Quick Start: Setting Up Your First MCP Server

> Set up a local MCP server that connects Elitea to VS Code, including bootstrap, configuration, and Copilot integration steps.

## Before You Start

Before you begin, make sure you have:

* ☑️ **VS Code installed** (version 1.99 or newer)
* ☑️ **GitHub Copilot** installed and configured in VS Code
* ☑️ **Python installed** on your computer (version 3.8 or newer) - [Download Python](https://www.python.org/downloads/)
* ☑️ **Your Elitea Project ID** (find this in Elitea Settings → [Configuration](../../menus/settings/ai-configuration#server-configuration-fields))
* ☑️ **Your Elitea Authentication Token** (create one in Elitea Settings → [Personal Tokens](../../getting-started/create-personal-access-token))
* ☑️ **Your Elitea deployment URL** (example: `https://next.elitea.ai`)

***

## What is MCP and Why Do I Need It?

**MCP** stands for Model Context Protocol. It's a way for different AI tools to talk to each other.

**Why it matters to you:** By setting up an MCP server, you can use your Elitea agents directly inside VS Code while you code. No need to switch windows or copy-paste between apps.

***

## Step-by-Step Setup

### Part 1: Install the Elitea MCP Client

The "client" is a small program that handles communication between VS Code and Elitea.

1. **Open PowerShell**
   * Press `Windows key`, type "PowerShell", and press Enter
   * This opens a window where you'll type commands

2. **Install pipx** (a tool that helps install Python programs)

   * Copy this command and paste it into PowerShell, then press Enter:
     ```powershell theme={null}
     python -m pip install --user pipx
     ```
   * Wait for it to finish

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/install-pipx.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=7e23e95fd0f8c9deda798b95e275b8a3" alt="Install pipx" width="1483" height="762" data-path="img/getting-started/mcp/install-pipx.png" />

3. **Set up pipx's path**

   * This makes sure your computer can find pipx. Copy and run:
     ```powershell theme={null}
     python -m pipx ensurepath
     ```

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/pipx-ensurepath.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=02b53abb8729e7489616b11956673fe9" alt="Setup pipx path" width="1481" height="760" data-path="img/getting-started/mcp/pipx-ensurepath.png" />

4. **Install elitea-mcp**

   * This is the actual client program. Copy and run:
     ```powershell theme={null}
     pipx install elitea-mcp
     ```
   * Wait for installation to complete

   <img src="https://mintcdn.com/epam-a74ef051/xkDMqf2CA2ld4cBy/img/integrations/mcp/mcp-setup/install-elitea-mcp.gif?s=40e1eb141d3f22e2d3dbbd67763b68af" alt="Install elitea-mcp" width="1900" height="1019" data-path="img/integrations/mcp/mcp-setup/install-elitea-mcp.gif" />

5. **Close and reopen PowerShell**
   * This refreshes your environment so the new program is recognized

***

### Part 2: Configure the Client

Now you'll tell the client how to connect to your Elitea account.

1. **Run the setup wizard**
   * In PowerShell, type:
     ```powershell theme={null}
     elitea-mcp bootstrap
     ```
   * Press Enter

2. **Answer the prompts**
   * **Deployment URL:** Type your Elitea URL (example: `https://next.elitea.ai`) and press Enter
   * **Authentication token:** Paste your token (the one you copied earlier) and press Enter
   * **Host:** Just press Enter to accept the default (`0.0.0.0`)
   * **Port:** Just press Enter to accept the default (`8000`)
   * **Project ID:** You can either:
     * Enter your Project ID number now (find it in Elitea Settings → Configuration), OR
     * Press `Ctrl+C` to skip this step and add the Project ID later in VS Code (see Part 4)

3. **Verify success**
   * You should see a message confirming the configuration was saved
   * If you see errors, double-check your URL and token

<img src="https://mintcdn.com/epam-a74ef051/xkDMqf2CA2ld4cBy/img/integrations/mcp/mcp-setup/elitea-mcp-bootstrap-server.gif?s=cd12d964d0bd28e0792572c00bb89819" alt=" elitea-mcp-server" width="1900" height="1019" data-path="img/integrations/mcp/mcp-setup/elitea-mcp-bootstrap-server.gif" />

<Info title="Skipping Project ID During Bootstrap">
  If the Project ID prompt keeps asking for a valid integer and won't accept an empty value, press `Ctrl+C` to cancel. Don't worry—your Deployment URL and Authentication Token have already been saved. You'll add the Project ID in VS Code's configuration file in Part 4 of this guide.
</Info>

***

### Part 3: Connect to VS Code

Now you'll add the MCP server to VS Code so it can talk to Elitea.

1. **Open VS Code**
   * Launch the VS Code application

2. **Open your project**
   * Open the folder or workspace where you want to use Elitea agents

3. **Open GitHub Copilot Chat**

   * Click the chat icon in the left sidebar (or press `Ctrl+Alt+I`)

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/open-copilot-chat.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=461cd699a324ab5f5902853fa47f6533" alt="screenshot" width="2560" height="1380" data-path="img/integrations/mcp/open-copilot-chat.png" />

4. **Switch to Agent mode**
   * In the chat panel, look for "Agent mode" and click it
   * This enables the use of tools (like your Elitea agents)

5. **Add the MCP server**

   * Click the **Select Tools** icon (looks like a wrench or tools)
   * Click **Add MCP Server** icon
   * Click **+ Add MCP Server**

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/add-mcp-server.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=2efbea2c9d106c1073c781db66f7fc14" alt="alt text" width="1268" height="1013" data-path="img/getting-started/mcp/add-mcp-server.png" />

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/add-mcp-server.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=7d81bfb82d3717226c3a410a2f59e43c" alt="screenshot" width="1122" height="205" data-path="img/integrations/mcp/add-mcp-server.png" />

   * Select **Command stdio**

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/select-command-stdio.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=a429274489d5cd5c006bc62b0371f551" alt="screenshot" width="1392" height="352" data-path="img/integrations/mcp/select-command-stdio.png" />

   * For "Command", type: `elitea-mcp` and press Enter

   <img src="https://mintcdn.com/epam-a74ef051/xkDMqf2CA2ld4cBy/img/integrations/mcp/enter-command.png?fit=max&auto=format&n=xkDMqf2CA2ld4cBy&q=85&s=0b5623b241a5d9183cb9245b2cfa9491" alt="screenshot" width="616" height="103" data-path="img/integrations/mcp/enter-command.png" />

   * For "Server ID", use the suggested name or type something like `elitea`

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/add-server-id-stdio.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=79cf0863e709a762e033de8df1cfac18" alt="screenshot" width="1208" height="200" data-path="img/integrations/mcp/add-server-id-stdio.png" />

6. **Choose where to save the settings**

   * You'll see two options:
     * **Workspace** – Only works in this project folder
     * **Global** – Works in all your VS Code projects
   * Choose based on your needs (Workspace is good for team projects)

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/workspace.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=68415cb0df33c0d1b6ea87e61005a438" alt="screenshot" width="602" height="114" data-path="img/getting-started/mcp/workspace.png" />

***

### Part 4: Add Your Project ID

This tells the server which Elitea project to connect to.

#### Option A: If You Chose Workspace

1. **The config file opens automatically**
   * After selecting Workspace, VS Code will automatically open `.vscode/mcp.json`
   * If it doesn't open automatically, look for the file at `.vscode/mcp.json` and click to open it

2. **Add your project ID**

   * Find the line that says `"args": []`
   * Replace it with:
     ```json theme={null}
     "args": ["run", "--project_id", "YOUR_PROJECT_ID"]
     ```
   * Replace `YOUR_PROJECT_ID` with your actual number (example: `25`)

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/add-project-id.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=eea2941ca2b59f9241f7b16890332c4a" alt="screenshot" width="1920" height="1032" data-path="img/getting-started/mcp/add-project-id.png" />

3. **Save the file**
   * Press `Ctrl+S`

4. **Start the server**

   * In Copilot Chat, click the **Start** button

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/start-server.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=6a57f92ec76109b62481360d5d47be12" alt="screenshot" width="1026" height="248" data-path="img/getting-started/mcp/start-server.png" />

<Warning title="Before Starting the Server">
  Make sure you have at least one agent tagged with `mcp`. Otherwise, no tools will be available when the server starts. See Part 5 for tagging instructions.
</Warning>

***

#### Option B: If You Chose Global

1. **The settings file opens automatically**
   * After selecting Global, VS Code will automatically open your global `mcp.json` configuration file
   * If it doesn't open automatically, look for a new tab in the VS Code editor with the file

2. **Add your project ID**

   * Find the MCP server section you just added
   * Find the line that says `"args": []`
   * Replace it with:
     ```json theme={null}
     "args": ["run", "--project_id", "YOUR_PROJECT_ID"]
     ```
   * Replace `YOUR_PROJECT_ID` with your actual number

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/add-project-id.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=eea2941ca2b59f9241f7b16890332c4a" alt="screenshot" width="1920" height="1032" data-path="img/getting-started/mcp/add-project-id.png" />

3. **Save the file**
   * Press `Ctrl+S`

4. **Start the server**

   * In Copilot Chat, click the **Start** button

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/stdio-start-server-settings-json.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=f01f98a7a5ea1b461aa610ffdb398405" alt="screenshot" width="3828" height="1394" data-path="img/integrations/mcp/stdio-start-server-settings-json.png" />

<Warning title="Before Starting the Server">
  Make sure you have at least one agent tagged with `mcp`. Otherwise, no tools will be available when the server starts. See Part 5 for setup instructions.
</Warning>

***

### Part 5: Tag Your Agents

For an agent to be available as a tool, it must be tagged in Elitea.

#### Tagging Agents:

1. **Log into Elitea**
   * Open your Elitea deployment in a web browser

2. **Find your agent**
   * Navigate to the agent or pipeline you want to use

3. **Add the "mcp" tag**

   * Look for the tags section
   * Add a tag named `mcp` (all lowercase)
   * Save your changes

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/mcp-tag-agent.gif?s=5c8b0de17b9e0a6502384b57709dffe2" alt="Tag Agent" width="1904" height="858" data-path="img/getting-started/mcp/mcp-tag-agent.gif" />

<Warning title="Agent Tool Visibility">
  Only agents with the `mcp` tag will be visible in VS Code. Make sure to tag the agents you want to use before starting the server.
</Warning>

#### Complete Setup:

4. **Restart the MCP server in VS Code**
   * Go back to VS Code
   * In Copilot Chat, stop the server and start it again
   * This syncs the newly tagged agents

<img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/restart-server.gif?s=decb92d94074adc7c6266633d7e1ec9d" alt="Restart server" width="1914" height="989" data-path="img/getting-started/mcp/restart-server.gif" />

***

### Part 6: Use Your Agent

Now you're ready to use your Elitea agent from VS Code!

1. **Open Copilot Chat**
   * Make sure you're in Agent mode

2. **Click the Tools icon**

   * You should see your tagged agents listed

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/mcp-tools-list.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=5caecb82f121be8a92a8e16e39a78dc3" alt="screenshot" width="1022" height="196" data-path="img/integrations/mcp/mcp-tools-list.png" />

3. **Select the tools you want to use**
   * All tools are selected by default
   * You can deselect any you don't need right now

4. **Type your request**

   * In the chat box, type `#` followed by your agent's name
   * Example: `#BA Assistant Show me the scope of PLAN-3012`

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/call-ba-assistant.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=604846d469e3f9fb9c62755c569ef9d0" alt="screenshot" width="707" height="1323" data-path="img/integrations/mcp/call-ba-assistant.png" />

5. **Run the tool**

   * Click **Run \[tool name]** when prompted

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/run-tool.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=b6b61483c106dd050c300cb5ade4b2c4" alt="screenshot" width="716" height="491" data-path="img/integrations/mcp/run-tool.png" />

6. **Confirm execution**
   * The first time, you'll be asked to confirm
   * Click **Continue** (you can choose to auto-confirm for future runs)

7. **Review the results**

   * Your agent will execute and return results directly in the chat

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/enhanced-user-story-saved.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=0de6b3435d108d31a2125c78d5f5cc63" alt="screenshot" width="2560" height="1380" data-path="img/integrations/mcp/enhanced-user-story-saved.png" />

***

## How to Know It's Working

✔️ **You've succeeded if:**

* The MCP server shows as "Running" in VS Code
* Your tagged agents appear in the Tools list
* When you call an agent, you see output in the chat
* No error messages appear

✘ **Something's wrong if:**

* You see "Command not found" errors → Reinstall the client
* No agents appear in the Tools list → Check that they're tagged with `mcp`
* Server won't start → Check your Project ID and authentication token

***

## Common Problems & Fixes

### Problem: "elitea-mcp: command not found"

**Fix:** Make sure you completed all installation steps, including `pipx ensurepath`. Close and reopen PowerShell.

### Problem: No agents showing up

**Fix:**

1. Make sure your agents are tagged with `mcp` in Elitea
2. Restart the MCP server in VS Code
3. Check you're using the correct Project ID

### Problem: "Error indicator" in VS Code

**Fix:**

1. Click the error in the Chat view

2. Select **Show Output** to see details

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/mcp-server-error.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=b2e40174beffc73be112990b5ec9436a" alt="screenshot" width="501" height="137" data-path="img/integrations/mcp/mcp-server-error.png" />

3. Look for specific error messages in the log

   <img src="https://mintcdn.com/epam-a74ef051/SX-cHcY90NTT1Crw/img/integrations/mcp/mcp-server-error-output.png?fit=max&auto=format&n=SX-cHcY90NTT1Crw&q=85&s=07947d82c81a091ade3e72fd0d8c2fd9" alt="screenshot" width="1685" height="381" data-path="img/integrations/mcp/mcp-server-error-output.png" />

### Problem: Server keeps disconnecting

**Fix:**

1. Verify your authentication token is still valid
2. Check your internet connection
3. Confirm your Elitea deployment URL is correct

### Problem: Multiple elitea-mcp versions installed (pip and pipx conflict)

**Fix:**

If you see errors or unexpected behavior, you may have multiple versions of `elitea-mcp` installed. This happens when you installed it with both `pip` and `pipx`.

1. **Check for multiple installations:**
   ```powershell theme={null}
   pip list | Select-String elitea-mcp
   pipx list | Select-String elitea-mcp
   ```

2. **Remove the pip version (keep pipx):**
   ```powershell theme={null}
   pip uninstall elitea-mcp -y
   ```

3. **Verify the correct version is active:**

   ```powershell theme={null}
   where.exe elitea-mcp
   ```

   You should see: `C:\Users\<YourUsername>\.local\bin\elitea-mcp.exe`

4. **Restart VS Code and the MCP server**

<Tip title="Why this happens">
  The pipx installation is the recommended method as it isolates the tool in its own environment. If you previously installed with `pip`, it may conflict with the pipx version and cause the system to use the wrong (often outdated) version.
</Tip>

***

## What You Can Do Next

Now that your MCP server is running, you can:

* Call multiple agents in one conversation
* Use agents to analyze code, create documentation, or fetch data
* Automate repetitive tasks directly from VS Code
* Combine Elitea agents with other Copilot features

***

## Advanced Options

<details>
  <summary>Click to expand advanced configuration options</summary>
  **Using a Specific Application**
  If you want to limit the MCP server to a single agent or pipeline, use this configuration:

  ```json theme={null}
  "args": ["run", "--project_id", "25", "--app_id", "12", "--version_id", "3"]
  ```

  * `app_id` is the ID of your specific agent
  * `version_id` is the version number you want to use

  ### Multiple MCP Servers

  You can set up multiple MCP servers for different projects:

  1. Repeat the setup process
  2. Use a different Server ID for each
  3. Each server can point to a different Project ID
</details>

***

<Tip title="Helpful Resources">
  * [Elitea Settings & Configuration](../../menus/settings/ai-configuration)
  * [MCP Protocol Official Docs](https://modelcontextprotocol.io/)
</Tip>

***
