# AI Tools Configuration in VS Code

The Telerik UI for Blazor Extension for VS Code provides automated configuration commands for the Telerik AI-powered development tools. These commands help you quickly set up the [Telerik MCP server](https://www.telerik.com/blazor-ui/documentation/ai/overview) for enhanced developer productivity with Telerik UI for Blazor components.

## Prerequisites

To set up the Telerik UI for Blazor AI tools automatically:

* [Install the Telerik UI for Blazor extension for VS Code](https://www.telerik.com/blazor-ui/documentation/installation/vs-code-integration/introduction).
* Check the tool-specific prerequisites for the [Telerik Blazor MCP Server](https://www.telerik.com/blazor-ui/documentation/ai/agentic-ui-generator/getting-started).

To access the automated commands:

1. Open the [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) at the center top of the VS Code interface.
2. Select **Show and Run Commands**.
3. Search for the following Telerik commands:
   * [Configure MCP Server](https://www.telerik.com/blazor-ui/documentation/installation/vs-code-integration/ai-configuration#configure-mcp-server)
   * [Install Telerik Blazor Copilot Extension](https://www.telerik.com/blazor-ui/documentation/installation/vs-code-integration/ai-configuration#install-telerik-blazor-copilot-extension)
   * [Add GitHub Copilot Custom Instructions](https://www.telerik.com/blazor-ui/documentation/installation/vs-code-integration/ai-configuration#add-github-copilot-custom-instructions)

## Configure MCP Server

The **Telerik UI for Blazor: Configure MCP Server** command provides two configuration scopes to set up the [Telerik Blazor MCP Server](https://www.telerik.com/blazor-ui/documentation/ai/overview):

* **Workspace**—Creates an `mcp.json` file in a `.vscode` folder in your current workspace. This configuration applies only to the current workspace.
* **Global**—Creates an `mcp.json` file in your operating system user folder (for example, `C:\Users\___\AppData\Roaming\Code\User\.mcp.json` on Windows or `/Users/___/Library/Application Support/Code/User/mcp.json` on macOS). This configuration applies to all VS Code workspaces.

> Make sure to open the generated `mcp.json` file to verify that the `TELERIK_LICENSE_PATH` value matches your actual [Telerik license file location](https://www.telerik.com/blazor-ui/documentation/installation/license-key). Alternatively, replace `TELERIK_LICENSE_PATH` with `TELERIK_LICENSE` and set your license key directly. Using `TELERIK_LICENSE_PATH` is recommended.

Finally, check for any [usage notes about the Telerik Blazor MCP Server](https://www.telerik.com/blazor-ui/documentation/ai/overview).

## Add GitHub Copilot Custom Instructions

The **Telerik UI for Blazor: Add GitHub Copilot Custom Instructions** command generates a `copilot-instructions.md` file in the `.github` folder under the solution. This file contains custom instructions that help GitHub Copilot provide better assistance when working with Telerik UI for Blazor components. The generated file includes the following default instructions:

* Guidance to use the Telerik MCP Server whenever applicable
* Guidance to prioritize the usage of Telerik UI components
* Guidance to use best coding practices related to Telerik UI for Blazor

## Install Telerik Blazor Copilot Extension

The **Telerik UI for Blazor: Install Telerik Blazor Copilot Extension** command opens the [TelerikBlazor GitHub App installation page](https://github.com/apps/telerikblazor/installations/select_target) in your default browser.

## See Also

* [Telerik AI Tooling Overview](https://www.telerik.com/blazor-ui/documentation/ai/overview)
* [VS Code Integration Overview](https://www.telerik.com/blazor-ui/documentation/installation/vs-code-integration/introduction)
