# AI Tools Configuration in Visual Studio

The Telerik UI for Blazor Extension for Visual Studio 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 Visual Studio](https://www.telerik.com/blazor-ui/documentation/installation/vs-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, open **Extensions** > **Telerik** > **Telerik UI for Blazor** in the Visual Studio menu.

## Configure Telerik MCP Server

The Telerik UI for Blazor extension provides two menu options to [set up the Telerik Blazor MCP server](https://www.telerik.com/blazor-ui/documentation/ai/overview):

* **Configure MCP Server for Solution**—this command creates an `.mcp.json` file in the solution folder. The configuration applies only to the projects in that application.
* **Configure MCP Server Globally**—this command creates an `.mcp.json` file in your operating system user folder (`%USERPROFILE%`, for example, `C:\Users\___\.mcp.json`). This configuration applies to all Visual Studio solutions and projects.

> 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/Update Copilot Instructions

The **Add/Update Copilot 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 **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)
* [Visual Studio Integration Overview](https://www.telerik.com/blazor-ui/documentation/installation/vs-integration/introduction)
