You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ai/mcp-server.md
+30-46Lines changed: 30 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -22,34 +22,35 @@ To use the Telerik Blazor MCP server, you need:
22
22
23
23
## Installation
24
24
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:
26
26
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)
* 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.
37
37
38
38
### Visual Studio
39
39
40
40
For detailed instructions, refer to [Use MCP servers in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers).
41
41
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
+
42
46
To enable the Telerik MCP Server in a specific Blazor app, add a `.mcp.json` file to the solution folder.
43
47
44
-
> caption .mcp.json in the solution root folder
48
+
> caption .mcp.json
45
49
46
50
````JSON.skip-repl
47
51
{
48
-
"inputs": [
49
-
// ...
50
-
],
51
52
"servers": {
52
-
"telerik-blazor-assistant": {
53
+
"telerik_blazor_assistant": {
53
54
"type": "stdio",
54
55
"command": "npx",
55
56
"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
61
62
}
62
63
````
63
64
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).
65
68
66
69
### VS Code
67
70
@@ -74,7 +77,7 @@ To enable the Telerik MCP Server in a specific workspace or Blazor app, add a `.
74
77
````JSON.skip-repl
75
78
{
76
79
"servers": {
77
-
"telerik-blazor-assistant": {
80
+
"telerik_blazor_assistant": {
78
81
"type": "stdio",
79
82
"command": "npx",
80
83
"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.
95
98
// ...
96
99
"chat.mcp.discovery.enabled": true,
97
100
"mcp": {
98
-
"inputs": [
99
-
// ...
100
-
],
101
101
"servers": {
102
-
"telerik-blazor-assistant": {
102
+
"telerik_blazor_assistant": {
103
103
"type": "stdio",
104
104
"command": "npx",
105
105
"args": ["-y", "@progress/telerik-blazor-mcp"],
@@ -118,12 +118,12 @@ For detailed instructions, refer to [Model Context Protocol](https://docs.cursor
118
118
119
119
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.
120
120
121
-
>caption .cursor/mcp.json at the workspace root
121
+
>caption .cursor/mcp.json
122
122
123
123
````JSON.skip-repl
124
124
{
125
125
"mcpServers": {
126
-
"telerik-blazor-assistant": {
126
+
"telerik_blazor_assistant": {
127
127
"type": "stdio",
128
128
"command": "npx",
129
129
"args": ["-y", "@progress/telerik-blazor-mcp"],
@@ -135,24 +135,7 @@ To [enable the Telerik MCP Server in a specific workspace](https://code.visualst
135
135
}
136
136
````
137
137
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:
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.
156
139
157
140
## Usage
158
141
@@ -166,8 +149,8 @@ To use the Telerik MCP Server:
166
149
*`/telerikblazor`
167
150
*`@telerikblazor`
168
151
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)
171
154
172
155
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.
173
156
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
179
162
180
163
The following list describes how your prompts may look like:
181
164
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.
0 commit comments