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
The Telerik MAUI [MCP (Model Context Protocol) Server](https://modelcontextprotocol.io/introduction) enhances your AI-powered development experience by providing specialized context about Telerik UI for .NET MAUI components.
12
+
The Telerik MAUI [MCP (Model Context Protocol) server](https://modelcontextprotocol.io/introduction) enhances your AI-powered development experience by providing specialized context about Telerik UI for .NET MAUI components.
13
13
14
14
This MCP server enables AI-powered IDEs and tools to generate more accurate, tailored code that leverages [Telerik UI for .NET MAUI components](https://www.telerik.com/maui-ui) and APIs. You can ask complex questions about Telerik components, request specific implementations, and generate comprehensive code solutions.
15
15
16
-
>tip The Telerik .NET MAUI MCP Server works in **Chat**(**Ask**) and **Agent** modes.
16
+
>tip The Telerik MAUI MCP server works in **Chat**(**Ask**) and **Agent** modes.
17
17
18
18
19
19
## Prerequisites
20
20
21
21
To use the Telerik MAUI MCP server, you need:
22
22
23
-
*[Node.js](https://nodejs.org/en) 18 or newer.
24
-
* An [MCP-compatible client](https://modelcontextprotocol.io/clients) that supports **MCP tools** (latest version recommended).
23
+
*[.NET](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8/overview) 9 or later, or [Node.js](https://nodejs.org/en) 18 or later.
24
+
* An [MCP-compatible client](https://modelcontextprotocol.io/clients) that supports MCP tools (latest version recommended).
Depending on your environment, you can install the Telerik MAUI MCP server in any of the following ways:
31
31
32
-
```bash
33
-
npm i @progress/telerik-maui-mcp
34
-
```
32
+
* By using the `dnx` script (.NET 10 or later only) or the `dotnet` CLI (.NET 9):
35
33
36
-
### Configuration
34
+
```bash .NET 10
35
+
dnx Telerik.MAUI.MCP
36
+
```
37
+
```bash .NET 9
38
+
dotnet tool install Telerik.MAUI.MCP
39
+
```
37
40
38
-
Use these settings when configuring the server in your MCP client:
41
+
* By using npm:
39
42
40
-
| Setting | Value |
41
-
|---------|-------|
42
-
| Package Name |`@progress/telerik-maui-mcp`|
43
-
| Type |`stdio` (standard input/output transport) |
44
-
| Command |`npx`|
45
-
| Arguments |`-y`|
46
-
| Server Name |`telerik-maui-assistant` (customizable) |
43
+
```bash
44
+
npm i @progress/telerik-maui-mcp
45
+
```
47
46
48
-
### License Configuration
47
+
Next, make sure the configuration in your `mcp.json` is [correct](#configuring-mcp-json), and then [add your Telerik license](#configuring-your-license).
49
48
50
-
Add your [Telerik license key]({%slug set-up-your-license%}) as an environment parameter in your `mcp.json` file using one of these options:
49
+
### Configuring mcp.json
51
50
52
-
Option 1: License File Path (Recommended)
51
+
Use the settings in the following table to configure the Telerik MAUI MCP server in the [`mcp.json` file](https://code.visualstudio.com/docs/copilot/customization/mcp-servers) of your code editor. Select the correct value based on your development environment.
| Server Name |`"telerik-maui-assistant"`|`"telerik-maui-assistant"`|`"telerik-maui-assistant"`|
59
60
60
-
Option 2: Direct License Key
61
+
### Configuring Your License
61
62
62
-
```json
63
-
"env": {
64
-
"TELERIK_LICENSE": "YOUR_LICENSE_KEY_HERE"
65
-
}
66
-
```
63
+
An active Telerik UI for .NET MAUI license is required to use the Telerik MAUI MCP server.
67
64
68
-
> Option 1 is recommended unless you're sharing settings across different systems. Remember to [update your license key]({%slug set-up-your-license%}#updating-your-license-key) when necessary.
65
+
* When installing the MCP server by using the .NET tooling (`dnx` or `dotnet tool install`), the [license key file]({%slug set-up-your-license%}) will be retrieved automatically if it is present in the default directory on your system (`%AppData%\Telerik\telerik-license.txt` on Windows and `~/.telerik/telerik-license.txt` on Linux.). No additional action is required.
66
+
* When using the .NET tooling, but your [license key file]({%slug set-up-your-license%}) is not in the default directory, use one of the options below.
67
+
* When using Node.js, add your [license key file]({%slug set-up-your-license%}) as an environment variable in your `mcp.json` file using one of the options below:
69
68
70
-
## Visual Studio
69
+
* As a license file path (recommended)
71
70
72
-
For complete setup instructions, see [Use MCP servers in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers).
> Early Visual Studio 17.14 versions require the Copilot Chat window to be open when opening a solution for the MCP server to work properly.
77
+
* As a license key value
75
78
76
-
### Workspace-Specific Setup:
79
+
```json
80
+
"env": {
81
+
"TELERIK_LICENSE": "YOUR_LICENSE_KEY_HERE"
82
+
}
83
+
```
77
84
78
-
1. Add `.mcp.json`to your solution folder:
85
+
> Using a license file path is recommended unless you're sharing settings across different systems. Remember to [update your license key]({%slug set-up-your-license%}#updating-your-license-key) when necessary.
3. Enable the `telerik-maui-assistant` tool 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).
89
+
> * Early Visual Studio 17.14 versions require the Copilot Chat window to be open when a solution loads for the MCP server to work properly.
90
+
> * For complete setup instructions, see [Use MCP servers in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers).
99
91
100
-
### Global Setup:
92
+
1. Add an `.mcp.json` file to either of the following locations:
101
93
102
-
Add the `.mcp.json` file to your user directory (`%USERPROFILE%`, e.g., `C:\Users\YourName\.mcp.json`).
94
+
* For a workspace-specific setup, add the file to the solution's folder.
95
+
* For a global setup, add the file to your user directory, `%USERPROFILE%` (for example, `C:\Users\YourName\.mcp.json`).
For complete setup instructions, see [Use MCP servers in Visual Studio Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers).
136
+
2. Restart Visual Studio.
137
+
3. Enable the Telerik MAUI MCP server 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).
107
138
108
-
>Visual Studio Code 1.102.1 or newer is required to use the Telerik MCP Server
139
+
## Visual Studio Code
109
140
110
-
The basic setup in Visual Studio Code follows these steps:
141
+
> * Visual Studio Code 1.102.1 or later is required to use the Telerik MAUI MCP Server.
142
+
> * For complete setup instructions, see [Use MCP servers in Visual Studio Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers).
111
143
112
-
1. Enable [`chat.mcp.enabled`](vscode://settings/chat.mcp.enabled) in Visual Studio Code settings.
113
-
2. Create `.vscode/mcp.json` in your workspace root (or user folder for global setup):
144
+
The basic setup in Visual Studio Code involves the following steps:
@@ -164,7 +242,9 @@ Create `.cursor/mcp.json` in your workspace root (or user folder for global setu
164
242
165
243
## Usage
166
244
167
-
To use the Telerik MCP Server:
245
+
By default, MCP clients do not call MCP tools in a deterministic way. Some MCP clients like VS Code allow you to explicitly reference the desired MCP tool in your prompt.
246
+
247
+
To use the Telerik MAUI MCP server:
168
248
169
249
1. Start your prompt with one of these triggers:
170
250
-`#telerik`
@@ -178,18 +258,19 @@ To use the Telerik MCP Server:
178
258
179
259
3. Grant permissions when prompted (per session, workspace, or always).
180
260
181
-
4. Start fresh sessions for unrelated prompts to avoid context pollution.
182
-
5. Use in **Chat**(**Ask**) and **Agent** modes.
261
+
4. Start a fresh session for unrelated prompts to avoid context pollution.
262
+
263
+
5. Use in **Chat** (**Ask**) and **Agent** modes.
183
264
184
265
### Improving Server Usage
185
266
186
-
To increase the likelihood of the Telerik MCP server being used, add custom instructions to your AI tool:
267
+
To increase the likelihood of the Telerik MAUI MCP server being used, add custom instructions to your AI tool:
The following examples demonstrate useful prompts for the Telerik .NET MAUI MCP Server:
273
+
The following examples demonstrate useful prompts for the Telerik MAUI MCP server:
193
274
194
275
* "`#telerik-maui-assistant Create new maui project with Telerik. Add sample usage of the DataGrid component.`"
195
276
* "`#telerik-maui-assistant Create a DataGrid with 3 columns - Name, Country, City. Add the corresponding business object in the code behind and populate it with sample data. Add 20 entries to the data.`"
@@ -203,9 +284,9 @@ The following examples demonstrate useful prompts for the Telerik .NET MAUI MCP
203
284
204
285
You can use the Telerik MAUI MCP server with local large language models (LLMs):
205
286
206
-
1. Run a local model, for example, through [Ollama](https://ollama.com).
287
+
1. Run a local model, for example, [Ollama](https://ollama.com).
207
288
2. Use a bridge package like [MCP-LLM Bridge](https://github.com/patruff/ollama-mcp-bridge).
208
-
3. Connect your local model to the Telerik MCP server.
289
+
3. Connect your local model to the Telerik MAUI MCP server.
209
290
210
291
This setup allows you to use the Telerik AI Coding Assistant without cloud-based AI models.
0 commit comments