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: docs-aspnet/ai/mcp-server.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,14 @@ The generic settings of the Telerik {{ site.framework }} MCP server are:
30
30
* Type: `stdio` (standard input/output transport)
31
31
* Command: `npx` (the MCP server works through an npm package)
32
32
* Arguments: `-y`
33
-
* Server name: `telerikAspnetcoreHtmlAssistant` for HtmlHelper and `telerikAspnetcoreTagAssistant` for TagHelper
33
+
* Server name: `telerik-aspnetcorehtml-assistant` for HtmlHelper and `telerik-aspnetcorehtml-assistant` for TagHelper
34
34
35
35
You also need to add your [Telerik licence key](slug:installation_license_key_aspnetcore) as an `env` parameter in the `mcp.json` file. There are two options:
36
36
37
37
* (recommended) Use a `TELERIK_LICENSE_PATH` argument and point to the location of your Telerik license file.
38
38
* Use a `TELERIK_LICENSE` argument and paste your Telerik license key. Make sure to [update the license key](slug:installation_license_key_aspnetcore#license-key-updates) when necessary.
39
39
40
-
> * Do not use hyphens (`-`) or underscores (`_`) in the MCP server name in the MCP `.json` file, due to potential compatibility issues with some MCP clients, such as Visual Studio.
40
+
> * Do not use underscores (`_`) in the MCP server name in the MCP `.json` file, due to potential compatibility issues with some MCP clients, such as Visual Studio.
41
41
> * Some MCP clients expect the MCP servers to be listed under a `servers` JSON key, while others expect `mcpServers`.
42
42
> * Some MCP clients expect an `mcp.json` file, while others like Visual Studio 2022 expect an `.mcp.json` file.
43
43
@@ -58,7 +58,7 @@ To enable the Telerik MCP Servers in a specific {{ site.framework }} app, add a
@@ -93,7 +93,7 @@ To enable the Telerik MCP Servers in a specific {{ site.framework }} app, add a
93
93
94
94
To enable global automatic discovery of the Telerik MCP Servers in Visual Studio, add the above `.mcp.json` file to your user directory (`%USERPROFILE%`), for example, `C:\Users\____\.mcp.json`.
95
95
96
-
> Once the Telerik MCP server is added, make sure that the `telerikAspnetcoreHtmlAssistant` or `telerikAspnetcoreTagAssistant` tool is [enabled (checked) in the Copilot Chat window's tool selection dropdown](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022#configuration-example-with-github-mcp-server). This dropdown opens when clicking on a wrench icon 🔧 at the bottom of the Copilot Window. The Telerik MCP server may get disabled when starting a new chat, changing threads, or relaunching Visual Studio. This is a known issue with MCP servers in general.
96
+
> Once the Telerik MCP server is added, make sure that the `telerik-aspnetcorehtml-assistant` or `telerik-aspnetcoretag-assistant` tool is [enabled (checked) in the Copilot Chat window's tool selection dropdown](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022#configuration-example-with-github-mcp-server). This dropdown opens when clicking on a wrench icon 🔧 at the bottom of the Copilot Window. The Telerik MCP server may get disabled when starting a new chat, changing threads, or relaunching Visual Studio. This is a known issue with MCP servers in general.
97
97
98
98
### VS Code
99
99
@@ -114,7 +114,7 @@ To enable the Telerik MCP Servers in a specific [workspace](https://code.visuals
@@ -210,7 +210,7 @@ To enable the Telerik MCP servers in [a specific workspace](https://docs.cursor.
210
210
}
211
211
```
212
212
213
-
This enables you to call the respective MCP Server with the `#telerikCoreAssistant`.
213
+
This enables you to call the respective MCP Server with the `#telerik-aspnetcorehtml-assistant` or `#telerik-aspnetcoretag-assistant`.
214
214
215
215
#### Global Configuration
216
216
@@ -222,10 +222,10 @@ To add the Telerik MCP Servers [globally for Cursor](https://docs.cursor.com/con
222
222
223
223
To use the Telerik {{ site.framework }} MCP Server:
224
224
225
-
1. Start your prompt with `#telerikCoreAssistant` (or with `#` followed by your custom server name, if set).
225
+
1. Start your prompt with `#telerik-aspnetcorehtml-assistant` / `#telerik-aspnetcoretag-assistant` (or with `#` followed by your custom server name, if set).
226
226
1. Confirm that the respective Telerik MCP server is used, because this doesn't happen deterministically. Look for a statement in the output, which is similar to:
227
-
*`Running telerikAspnetcoreHtmlAssistant` or `Running telerikAspnetcoreTagAssistant` (in VS Code)
228
-
*`Calling MCP tool telerikAspnetcoreHtmlAssistant` or `Calling MCP tool telerikAspnetcoreTagAssistant` (in Cursor)
227
+
*`Running telerik-aspnetcorehtml-assistant` or `Running telerik-aspnetcoretag-assistant` (in VS Code)
228
+
*`Calling MCP tool telerik-aspnetcorehtml-assistant` or `Calling MCP tool telerik-aspnetcoretag-assistant` (in Cursor)
229
229
230
230

231
231
@@ -241,15 +241,15 @@ The following list describes how your prompts may look like:
241
241
242
242
* When generating HtmlHelper components:
243
243
244
-
*"`@telerikaspnetcorehtml` Generate a {{ site.product }} Grid with sorting and paging enabled. Bind the Grid to dummy data."
245
-
*"`@telerikaspnetcorehtml` Generate a ComboBox that shows a list of products. Create a Product class and generate sample data."
246
-
*"`@telerikaspnetcorehtml` Show me sample code for a {{ site.product }} Grid with virtual scrolling for the rows and columns."
244
+
*"`#telerik-aspnetcorehtml-assistant` Generate a {{ site.product }} Grid with sorting and paging enabled. Bind the Grid to dummy data."
245
+
*"`#telerik-aspnetcorehtml-assistant` Generate a ComboBox that shows a list of products. Create a Product class and generate sample data."
246
+
*"`#telerik-aspnetcorehtml-assistant` Show me sample code for a {{ site.product }} Grid with virtual scrolling for the rows and columns."
247
247
248
248
* When generating TagHelper components:
249
249
250
-
*"`@telerikaspnetcoretag` Generate a {{ site.product }} Grid with sorting and paging enabled. Bind the Grid to dummy data."
251
-
*"`@telerikaspnetcoretag` Generate a ComboBox that shows a list of products. Create a Product class and generate sample data."
252
-
*"`@telerikaspnetcoretag` Show me sample code for a {{ site.product }} Grid with virtual scrolling for the rows and columns."
250
+
*"`#telerik-aspnetcoretag-assistant` Generate a {{ site.product }} Grid with sorting and paging enabled. Bind the Grid to dummy data."
251
+
*"`#telerik-aspnetcoretag-assistant` Generate a ComboBox that shows a list of products. Create a Product class and generate sample data."
252
+
*"`#telerik-aspnetcoretag-assistant` Show me sample code for a {{ site.product }} Grid with virtual scrolling for the rows and columns."
253
253
254
254
## Usage Limits
255
255
@@ -264,4 +264,4 @@ You can use the Telerik {{ site.framework }} MCP server with local large languag
264
264
*[Telerik {{ site.framework }} AI Coding Assistant Intended Use](slug:overview_ai#intended-use)
265
265
*[Telerik {{ site.framework }} AI Coding Assistant Recommendations](slug:overview_ai#recommendations)
266
266
*[Telerik {{ site.framework }} Extension for GitHub Copilot](slug:ai_copilot_extension)
0 commit comments