Skip to content

Commit 27136ef

Browse files
committed
docs(common): Add MCP notes for Visual Studio, replace sample prompts
1 parent f1ab265 commit 27136ef

File tree

2 files changed

+32
-48
lines changed

2 files changed

+32
-48
lines changed

ai/copilot-extension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ To use the Telerik Blazor Copilot extension:
4949
The following list describes how your prompts may look like:
5050

5151
* `@telerikblazor` Generate a Grid with sorting and paging enabled. Bind the Grid to a Person model and provide dummy data.
52-
* `@telerikblazor` What is DebounceDelay for the Telerik TextBox?
53-
* `@telerikblazor` Why am I getting a TelerikBlazor was undefined JavaScript error?
52+
* `@telerikblazor` Generate a Telerik ComboBox for Blazor that shows a list of products. Create a Product class and generate sample data.
53+
* `@telerikblazor` Show me sample code for a Telerik Blazor Grid with virtual scrolling for the rows and columns.
5454

5555
## Number of Requests
5656

ai/mcp-server.md

Lines changed: 30 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,35 @@ To use the Telerik Blazor MCP server, you need:
2222

2323
## Installation
2424

25-
Use the documentation of your AI-powered MCP client to add the Telerik MCP server to a specific workspace or globally. You can see installation tips and examples for some popular MCP clients below.
25+
Use the documentation of your AI-powered MCP client to add the Telerik MCP server to a specific workspace or globally. The sections below provide installation tips and examples for some popular MCP clients like [Visual Studio](#visual-studio), [VS Code](#vs-code), and [Cursor](#cursor). The generic settings of the Telerik Blazor MCP server are:
2626

27-
The generic settings of the Telerik Blazor MCP server are:
28-
29-
* Server name: `telerik-blazor-assistant`
30-
* Type: `stdio` (standard input/output transport)
31-
* Command: `npx` (the MCP server works through an npm package)
32-
* Supported arguments: `-y`
3327
* npm package name: `@progress/telerik-blazor-mcp`
34-
* You also need to add your [Telerik licence key](slug:installation-license-key) as an `env` parameter in the `mcp.json` file. There are two options:
35-
* (recommended) Use a `TELERIK_LICENSE_PATH` argument and point to your Telerik license file location.
36-
* Use a `TELERIK_LICENSE_KEY` argument and paste your Telerik license key. Make sure to [update the license key](slug:installation-license-key#license-key-updates) when necessary.
28+
* Type: `stdio` (standard input/output transport)
29+
* Command: `npx`
30+
* Arguments: `-y`
31+
* Server name: `telerik_blazor_assistant` (depends on your preferences)
32+
33+
You also need to add your [Telerik licence key](slug:installation-license-key) as an `env` parameter in the `mcp.json` file. There are two options:
34+
35+
* (recommended) Use a `TELERIK_LICENSE_PATH` argument and point to your Telerik license file location.
36+
* Use a `TELERIK_LICENSE_KEY` argument and paste your Telerik license key. Make sure to [update the license key](slug:installation-license-key#license-key-updates) when necessary.
3737

3838
### Visual Studio
3939

4040
For detailed instructions, refer to [Use MCP servers in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers).
4141

42+
> Visual Studio 17.14 seems to impose the following requirements:
43+
> * Do not use hyphens (`-`) in the MCP server name in `.mcp.json`. For example, `"telerik_blazor_assistant"` and `"telerikblazorassistant"` work, but `"telerik-blazor-assistant"` does not.
44+
> * The Copilot Chat window must be open and active when you open a solution.
45+
4246
To enable the Telerik MCP Server in a specific Blazor app, add a `.mcp.json` file to the solution folder.
4347

44-
> caption .mcp.json in the solution root folder
48+
> caption .mcp.json
4549
4650
````JSON.skip-repl
4751
{
48-
"inputs": [
49-
// ...
50-
],
5152
"servers": {
52-
"telerik-blazor-assistant": {
53+
"telerik_blazor_assistant": {
5354
"type": "stdio",
5455
"command": "npx",
5556
"args": ["-y", "@progress/telerik-blazor-mcp"],
@@ -61,7 +62,9 @@ To enable the Telerik MCP Server in a specific Blazor app, add a `.mcp.json` fil
6162
}
6263
````
6364

64-
To enable automatic global discovery of the Telerik MCP Server in Visual Studio, add the above `.mcp.json` file to your user directory (`%USERPROFILE%`), for example, `C:\Users\____\.mcp.json`.
65+
To enable global automatic discovery of the Telerik MCP Server in Visual Studio, add the above `.mcp.json` file to your user directory (`%USERPROFILE%`), for example, `C:\Users\____\.mcp.json`.
66+
67+
Once the Telerik MVP server is added, make sure that the `telerik_blazor_assistant` tool is [enabled (checked) in the Copilot Chart window's tool selection dropdown](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022#configuration-example-with-github-mcp-server).
6568

6669
### VS Code
6770

@@ -74,7 +77,7 @@ To enable the Telerik MCP Server in a specific workspace or Blazor app, add a `.
7477
````JSON.skip-repl
7578
{
7679
"servers": {
77-
"telerik-blazor-assistant": {
80+
"telerik_blazor_assistant": {
7881
"type": "stdio",
7982
"command": "npx",
8083
"args": ["-y", "@progress/telerik-blazor-mcp"],
@@ -95,11 +98,8 @@ To [add the Telerik MCP Server globally for VS Code, edit the VS Code `settings.
9598
// ...
9699
"chat.mcp.discovery.enabled": true,
97100
"mcp": {
98-
"inputs": [
99-
// ...
100-
],
101101
"servers": {
102-
"telerik-blazor-assistant": {
102+
"telerik_blazor_assistant": {
103103
"type": "stdio",
104104
"command": "npx",
105105
"args": ["-y", "@progress/telerik-blazor-mcp"],
@@ -118,12 +118,12 @@ For detailed instructions, refer to [Model Context Protocol](https://docs.cursor
118118

119119
To [enable the Telerik MCP Server in a specific workspace](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-workspace) or Blazor app, add a `.cursor` folder with an `mcp.json` file at the root of the workspace.
120120

121-
>caption .cursor/mcp.json at the workspace root
121+
>caption .cursor/mcp.json
122122
123123
````JSON.skip-repl
124124
{
125125
"mcpServers": {
126-
"telerik-blazor-assistant": {
126+
"telerik_blazor_assistant": {
127127
"type": "stdio",
128128
"command": "npx",
129129
"args": ["-y", "@progress/telerik-blazor-mcp"],
@@ -135,24 +135,7 @@ To [enable the Telerik MCP Server in a specific workspace](https://code.visualst
135135
}
136136
````
137137

138-
To [add the Telerik MCP Server globally for Cursor](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-user-settings), add a `.cursor` folder with an `mcp.json` file in your user folder:
139-
140-
>caption .cursor/mcp.json inside your user folder
141-
142-
````JSON.skip-repl
143-
{
144-
"mcpServers": {
145-
"telerik-blazor-assistant": {
146-
"type": "stdio",
147-
"command": "npx",
148-
"args": ["-y", "@progress/telerik-blazor-mcp"],
149-
"env": {
150-
"TELERIK_LICENSE_PATH": "C:\\Users\\___\\AppData\\Roaming\\Telerik\\telerik-license.txt"
151-
}
152-
}
153-
}
154-
}
155-
````
138+
To [add the Telerik MCP Server globally for Cursor](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-user-settings), add a `.cursor` folder with the above `mcp.json` file in your user folder.
156139

157140
## Usage
158141

@@ -166,8 +149,8 @@ To use the Telerik MCP Server:
166149
* `/telerikblazor`
167150
* `@telerikblazor`
168151
1. Confirm that the Telerik MCP server is used, because this doesn't happen deterministically. Look for a statement in the output, which is similar to:
169-
* `Running telerik-blazor-assistant` (in VS Code)
170-
* `Calling MCP tool telerik-blazor-assistant` (in Cursor)
152+
* `Running telerik_blazor_assistant` (in VS Code)
153+
* `Calling MCP tool telerik_blazor_assistant` (in Cursor)
171154

172155
If the Telerik MCP server is not used even though it's installed and enabled, then try rephrasing your prompt and use another trigger syntax from the list in step 1.
173156
1. Grant the Telerik tool permission to run for this session, workspace, or always.
@@ -179,9 +162,10 @@ To increase the probability of the Telerik MVC Server being used, or to call it
179162

180163
The following list describes how your prompts may look like:
181164

182-
* Telerik Generate a Grid with sorting and paging enabled. Bind the Grid to a Person model that is defined in the same .razor file and provide dummy data.
183-
* Telerik What is DebounceDelay for the Telerik TextBox?
184-
* Telerik Why am I getting a TelerikBlazor was undefined JavaScript error?
165+
* Telerik Generate a Blazor Grid with sorting and paging enabled. Bind the Grid to a Person model and provide dummy data.
166+
* Telerik Generate a ComboBox for Blazor that shows a list of products. Create a Product class and generate sample data.
167+
* Telerik Show me sample code for a Blazor Grid with virtual scrolling for the rows and columns.
168+
185169

186170
## Number of Requests
187171

0 commit comments

Comments
 (0)