|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: SyncfusionMAUIAssistant MCP Server | Syncfusion |
| 4 | +description: Learn how to configure and use SyncfusionMAUIAssistant MCP server for intelligent code generation, documentation, and troubleshooting in .NET MAUI apps. |
| 5 | +platform: MAUI |
| 6 | +control: Getting started with SyncfusionMAUIAssistant MCP Server |
| 7 | +documentation: ug |
| 8 | +--- |
| 9 | + |
| 10 | +# SyncfusionMAUIAssistant MCP Server |
| 11 | + |
| 12 | +## Overview |
| 13 | + |
| 14 | +The [SyncfusionMAUIAssistant](https://www.npmjs.com/package/@syncfusion/maui-assistant) is a specialized [Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro) server that provides intelligent assistance for developers using Syncfusion's .NET MAUI component libraries. This tool seamlessly integrates with compatible [MCP clients](https://modelcontextprotocol.io/clients) to enhance your development workflow when building .NET MAUI applications with Syncfusion<sup style="font-size:70%">®</sup> components. |
| 15 | + |
| 16 | +### Key Benefits |
| 17 | + |
| 18 | +* Intelligent code generation for Syncfusion<sup style="font-size:70%">®</sup> .NET MAUI components. |
| 19 | +* Detailed component documentation and usage examples. |
| 20 | +* Troubleshooting assistance for common integration challenges. |
| 21 | + |
| 22 | +## Prerequisites |
| 23 | + |
| 24 | +Before using [SyncfusionMAUIAssistant](https://www.npmjs.com/package/@syncfusion/maui-assistant), ensure you have: |
| 25 | + |
| 26 | +* Required [node](https://nodejs.org/en/) version >= 18 |
| 27 | +* A [compatible MCP client](https://modelcontextprotocol.io/clients) (VS Code with GitHub Copilot, [Syncfusion<sup style="font-size:70%">®</sup> CodeStudio](https://www.syncfusion.com/code-studio/), etc.) |
| 28 | +* An active Syncfusion<sup style="font-size:70%">®</sup> license (any of the following): |
| 29 | + - [Commercial License](https://www.syncfusion.com/sales/unlimitedlicense) |
| 30 | + - [Free Community License](https://www.syncfusion.com/products/communitylicense) |
| 31 | + - [Free Trial](https://www.syncfusion.com/account/manage-trials/start-trials) |
| 32 | +* An active [API KEY](https://syncfusion.com/account/api-key) |
| 33 | + |
| 34 | +## Unlimited Access |
| 35 | + |
| 36 | +Syncfusion<sup style="font-size:70%">®</sup> offers unlimited access to this MCP server. There are no restrictions on: |
| 37 | + |
| 38 | +* Number of requests |
| 39 | +* Components usage |
| 40 | +* Query types |
| 41 | +* Usage duration |
| 42 | + |
| 43 | +This ensures users can fully leverage Syncfusion<sup style="font-size:70%">®</sup> components to enhance their development experience without limitations. |
| 44 | + |
| 45 | +## Installation and setup |
| 46 | + |
| 47 | +Before you can invoke the `SyncfusionMAUIAssistant` MCP server, you need to configure your MCP client with these core settings. The **Generic MCP Server Settings** shown below are identical across all clients: |
| 48 | + |
| 49 | +### Generic MCP Server Settings |
| 50 | + |
| 51 | +- **npm package name**: `@syncfusion/maui-assistant` |
| 52 | +- **Type**: stdio (standard input/output transport) |
| 53 | +- **Command**: npx |
| 54 | +- **Arguments**: -y |
| 55 | +- **Server name**: syncfusionMAUIAssistant |
| 56 | + |
| 57 | +You need to add your [Syncfusion API key](https://syncfusion.com/account/api-key) as an env parameter in the configuration file: |
| 58 | + |
| 59 | +```json |
| 60 | +"env": { |
| 61 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 62 | +} |
| 63 | +``` |
| 64 | + |
| 65 | +Below are setup instructions for popular MCP clients: |
| 66 | + |
| 67 | +### Syncfusion<sup style="font-size:70%">®</sup> Code Studio |
| 68 | + |
| 69 | +* In [Code Studio](https://www.syncfusion.com/code-studio/), open MCP Marketplace and navigate to the `Custom Servers` tab. |
| 70 | +* Enter the Server Name as `maui-mcp`, choose Server Type as npm package, and set the NPM Package name to `@syncfusion/maui-assistant`. |
| 71 | +* Add an environment variable as `Syncfusion_API_Key` and value as your [Syncfusion API key](https://syncfusion.com/account/api-key), then click **Install Server**. |
| 72 | +* Once installed, the server will appear in the User Installed Server list, and will be added to the **config.yaml** file. |
| 73 | +* The server is now ready for use in Code Studio. For more details, refer to the [Code Studio documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/mcp/customservers#npm-server). |
| 74 | + |
| 75 | +### Visual Studio Code (GitHub Copilot MCP) |
| 76 | + |
| 77 | +* To configure an MCP server for a specific workspace, you can create a `.vscode/mcp.json` file in your workspace folder. |
| 78 | + |
| 79 | +```json |
| 80 | +{ |
| 81 | + "servers": { |
| 82 | + "syncfusion-maui-assistant": { |
| 83 | + "type": "stdio", |
| 84 | + "command": "npx", |
| 85 | + "args": [ |
| 86 | + "-y", |
| 87 | + "@syncfusion/maui-assistant@latest" |
| 88 | + ], |
| 89 | + "env": { |
| 90 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 91 | + } |
| 92 | + } |
| 93 | + } |
| 94 | +} |
| 95 | +``` |
| 96 | + |
| 97 | +* After updating the configuration in mcp.json, you'll notice a "Start" option at the top of the config. This allows you to easily start the [SyncfusionMAUIAssistant](https://www.npmjs.com/package/@syncfusion/maui-assistant) server directly from the settings interface without additional commands. |
| 98 | + |
| 99 | +* Confirm the server is active by checking for a message like: `SyncfusionMAUIAssistant is running...` in the output. |
| 100 | + |
| 101 | +* For additional guidance, refer to the [VS Code documentation](https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_add-an-mcp-server). |
| 102 | + |
| 103 | +### Visual Studio (GitHub Copilot MCP) |
| 104 | + |
| 105 | +* To configure an MCP server for a specific workspace, you can create a `.vs/mcp.json` file in your workspace folder. |
| 106 | + |
| 107 | +```json |
| 108 | +{ |
| 109 | + "servers": { |
| 110 | + "syncfusion-maui-assistant": { |
| 111 | + "type": "stdio", |
| 112 | + "command": "npx", |
| 113 | + "args": [ |
| 114 | + "-y", |
| 115 | + "@syncfusion/maui-assistant@latest" |
| 116 | + ], |
| 117 | + "env": { |
| 118 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 119 | + } |
| 120 | + } |
| 121 | + } |
| 122 | +} |
| 123 | +``` |
| 124 | + |
| 125 | +* After updating the mcp.json configuration, open the GitHub Copilot Chat window. Click the Ask arrow, then select Agent. |
| 126 | +* Select the [SyncfusionMAUIAssistant](https://www.npmjs.com/package/@syncfusion/maui-assistant) from the tools section. |
| 127 | +* For more details, refer to the official [Visual Studio documentation](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022). |
| 128 | + |
| 129 | +### Cursor |
| 130 | + |
| 131 | +To configure an MCP server for a specific workspace, you can create a .cursor/mcp.json file in your workspace folder. |
| 132 | + |
| 133 | +```json |
| 134 | +{ |
| 135 | + "mcpServers": { |
| 136 | + "syncfusion-maui-assistant": { |
| 137 | + "type": "stdio", |
| 138 | + "command": "npx", |
| 139 | + "args": [ |
| 140 | + "-y", |
| 141 | + "@syncfusion/maui-assistant@latest" |
| 142 | + ], |
| 143 | + "env": { |
| 144 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 145 | + } |
| 146 | + } |
| 147 | + } |
| 148 | +} |
| 149 | +``` |
| 150 | +For more details, refer to the [Cursor documentation](https://cursor.com/docs/context/mcp#using-mcp-json). |
| 151 | + |
| 152 | +### JetBrains IDEs |
| 153 | + |
| 154 | +* Go to Settings -> Tools -> AI Assistant -> Model Context Protocol (MCP). |
| 155 | +* Click + Add to add a new MCP server configuration. |
| 156 | +* In the New MCP Server dialog, switch the dropdown as `As JSON` and add the following config: |
| 157 | + |
| 158 | +```json |
| 159 | +{ |
| 160 | + "mcpServers": { |
| 161 | + "syncfusion-maui-assistant": { |
| 162 | + "command": "npx", |
| 163 | + "args": [ |
| 164 | + "-y", |
| 165 | + "@syncfusion/maui-assistant@latest" |
| 166 | + ], |
| 167 | + "env": { |
| 168 | + "Syncfusion_API_Key": "YOUR_API_KEY" |
| 169 | + } |
| 170 | + } |
| 171 | + } |
| 172 | +} |
| 173 | +``` |
| 174 | + |
| 175 | +* Click OK and Apply. |
| 176 | + |
| 177 | +For further assistance, see the [JetBrains documentation](https://www.jetbrains.com/help/ai-assistant/mcp.html#connect-to-an-mcp-server). |
| 178 | + |
| 179 | +> For more detailed information about configuring MCP servers in various clients, refer to the official documentations, e.g., [Windsurf](https://docs.windsurf.com/windsurf/cascade/mcp#mcp-config-json) |
| 180 | +
|
| 181 | +## Usage |
| 182 | + |
| 183 | +To activate the SyncfusionMAUIAssistant MCP server: |
| 184 | + |
| 185 | +1. Start your prompt with one of the following: |
| 186 | + * 'SyncfusionMAUIAssistant' |
| 187 | + * '/syncfusion-maui-assistant' |
| 188 | + * '/syncfusion-maui' |
| 189 | + * '@syncfusion-maui' |
| 190 | + * '@ask_syncfusion_maui' |
| 191 | + * 'maui' |
| 192 | + |
| 193 | + In VS Code, you can also use #SyncfusionMAUIAssistant for direct invocation. |
| 194 | + |
| 195 | +2. Grant permission for the server to run (for the session, workspace, or always). |
| 196 | +3. For best results, start a new chat for each new topic to maintain clean context. |
| 197 | + |
| 198 | +### Mode availability |
| 199 | + |
| 200 | +Syncfusion<sup style="font-size:70%">®</sup> MCP Servers provide full access to all AI interaction modes — Ask/Chat, Edit, and Agent — across supported MCP clients. |
| 201 | + |
| 202 | +### Best Practices for Effective Usage |
| 203 | + |
| 204 | +1. `Be specific`: Mention both platform and component (e.g., "How do I create a Syncfusion MAUI DataGrid with paging and filtering?"). |
| 205 | +2. `Provide context`: Include details about your use case for more targeted solutions. |
| 206 | +3. `Use descriptive queries`: Avoid vague questions that lack necessary context. |
| 207 | +4. `Start fresh for new topics`: Begin a new chat session when switching components or topics. |
| 208 | + |
| 209 | +### Example Queries |
| 210 | + |
| 211 | +Here are some effective ways to use [SyncfusionMAUIAssistant](https://www.npmjs.com/package/@syncfusion/maui-assistant): |
| 212 | + |
| 213 | + * "Create a Syncfusion .NET MAUI DataGrid component with paging, sorting and filtering" |
| 214 | + * "How do I implement data binding with Syncfusion .NET MAUI Scheduler?" |
| 215 | + |
| 216 | +## Troubleshooting |
| 217 | + |
| 218 | +If you encounter issues: |
| 219 | + |
| 220 | + * Verify your API key is correctly configured. |
| 221 | + * Ensure the MCP server is enabled in your client's tools selection. |
| 222 | + * Check that you're using a compatible MCP client version. |
| 223 | + * Try restarting your development environment. |
| 224 | + |
| 225 | +## Support |
| 226 | + |
| 227 | +Product support is available through the following mediums. |
| 228 | + |
| 229 | +* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours \| Unlimited tickets \| Holiday support |
| 230 | +* [Community forum](https://www.syncfusion.com/forums/maui) |
| 231 | +* [Request feature or report bug](https://www.syncfusion.com/feedback/maui) |
| 232 | +* Live chat |
| 233 | + |
| 234 | +## See also |
| 235 | + |
| 236 | +* [Syncfusion .NET MAUI Documentation](https://help.syncfusion.com/maui/introduction/overview) |
0 commit comments