|
| 1 | +--- |
| 2 | +title: AI Code Assistant |
| 3 | +page_title: Telerik Blazor AI Code Assistant |
| 4 | +description: |
| 5 | +slug: common-features-ai-code-assistant |
| 6 | +tags: telerik,blazor,ai |
| 7 | +published: True |
| 8 | +position: 60 |
| 9 | +--- |
| 10 | + |
| 11 | +# Telerik Blazor AI Code Assistant |
| 12 | + |
| 13 | +Telerik UI for Blazor provides a [GitHub Copilot](https://github.com/features/copilot) extension. If you are using GitHub Copilot, the extension can generate code snippets that include Telerik UI for Blazor components and API. |
| 14 | + |
| 15 | +## Prerequisites |
| 16 | + |
| 17 | +To use the Telerik GitHub Copilot extension for Blazor, you need to have: |
| 18 | + |
| 19 | +* An active [https://github.com/features/copilot](https://github.com/features/copilot) subscription. You can enable or configure GitHub Copilot on the [Copilot Settings page in your GitHub account](https://github.com/settings/copilot). |
| 20 | +* An active [DevCraft or Telerik UI for Blazor license](https://www.telerik.com/purchase/blazor-ui). |
| 21 | + |
| 22 | +## Installation |
| 23 | + |
| 24 | +To install the Telerik GitHub Copilot extension: |
| 25 | + |
| 26 | +1. Go to the [TelerikBlazor GitHub App](https://github.com/apps/telerikblazor) page. |
| 27 | +1. Click the **Install** button. |
| 28 | +1. You will see a list that includes your GitHub account and all GitHub organizations that you are part of. Select your GitHub account. |
| 29 | +1. Click the **Install & Authorize** button. This will authorize the GitHub Copilot extension to integrate with your GitHub account. |
| 30 | +1. Enter your GitHub password. |
| 31 | + |
| 32 | +On first usage, you have to authenticate with your Telerik credentials: |
| 33 | + |
| 34 | +1. Click the **Authorize** button |
| 35 | +1. Enter your Telerik email and password. This will authorize the GitHub Copilot extension to integrate with your Telerik account. |
| 36 | + |
| 37 | +## Usage |
| 38 | + |
| 39 | +Start your prompt with `@TelerikBlazor` and type your request. |
| 40 | + |
| 41 | +If you want to prompt for code that is not related to your previous prompts, then use a new Chat, so that the new context is not polluted by irrelevant old information. |
| 42 | + |
| 43 | +### Add Telerik MCP Server to VS Code |
| 44 | + |
| 45 | +The [Agent mode of GitHub Copilot](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode) allows you to prompt AI for more complex tasks that require a multi-step process and affect more files. |
| 46 | + |
| 47 | +To use the Telerik MCP server in Copilot Agent mode: |
| 48 | + |
| 49 | +1. Create a `.vscode/mcp.json` file in your workspace (application root). |
| 50 | +1. Go to the [`telerik-blazor-mcp`](https://www.npmjs.com/package/@progress/telerik-blazor-mcp?activeTab=readme) npm package page and copy-paste the contents of `mcp.json`. |
| 51 | +1. At the bottom of the Copilot Chat pane, select **Agent** from the dropdown that contains **Ask**, **Edit**, and **Agent**. |
| 52 | + |
| 53 | +> Do not click the **Add Server** button at the bottom-right of the open JSON file. |
| 54 | +> Do not execute `npm install @progress/telerik-blazor-mcp` manually. |
| 55 | +> Do not use `@telerikblazor` in your prompts, because the Copilot Agent mode does not use extensions. |
| 56 | +
|
| 57 | +## See Also |
| 58 | + |
| 59 | +* [GitHub Copilot Tutorials](https://github.com/features/copilot/tutorials). |
| 60 | +* [Integrate Telerik UI for Blazor with Microsoft.Extensions.AI](slug:common-features-microsoft-extensions-ai-integration) |
0 commit comments