Skip to content

Commit 8ea5968

Browse files
Merge pull request #6989 from syncfusion-content/988346-MCP-Server-hf
988346: Updated the mcp configuration in Visual Studio.
2 parents 00d0bea + 4a74135 commit 8ea5968

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

blazor/ai-coding-assistants/mcp-server.md

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The [SyncfusionBlazorAssistant](https://www.npmjs.com/package/@syncfusion/blazor
2424
Before using [SyncfusionBlazorAssistant](https://www.npmjs.com/package/@syncfusion/blazor-assistant), ensure you have:
2525

2626
* 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%">&reg;</sup> CodeStudio](https://www.syncfusion.com/code-studio/), etc.)
27+
* A [compatible MCP client](https://modelcontextprotocol.io/clients) (Visual Studio Code with GitHub Copilot, [Syncfusion<sup style="font-size:70%">&reg;</sup> CodeStudio](https://www.syncfusion.com/code-studio/), etc.)
2828
* An active Syncfusion<sup style="font-size:70%">&reg;</sup> license (any of the following):
2929
- [Commercial License](https://www.syncfusion.com/sales/unlimitedlicense)
3030
- [Free Community License](https://www.syncfusion.com/products/communitylicense)
@@ -73,7 +73,7 @@ You need to add your [Syncfusion API key](https://syncfusion.com/account/api-key
7373

7474
For additional details, see the Code Studio [documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/mcp/marketplace).
7575

76-
### VS Code (GitHub Copilot MCP)
76+
### Visual Studio Code (GitHub Copilot MCP)
7777

7878
1. To configure an MCP server for a specific workspace, you can create a `.vscode/mcp.json` file in your workspace folder.
7979

@@ -98,7 +98,35 @@ For additional details, see the Code Studio [documentation](https://help.syncfus
9898
2. After updating the configuration in settings.json, you'll notice a "Start" option at the top of the config. This allows you to easily start the [SyncfusionBlazorAssistant](https://www.npmjs.com/package/@syncfusion/blazor-assistant) server directly from the settings interface without additional commands.
9999

100100
3. Confirm that [SyncfusionBlazorAssistant](https://www.npmjs.com/package/@syncfusion/blazor-assistant) is being used (this does not happen automatically). Look for a statement in the output, which is similar to:
101-
* `SyncfusionBlazorAssistant is running...` (in VS Code)
101+
* `SyncfusionBlazorAssistant is running...` (in Visual Studio Code)
102+
103+
104+
### Visual Studio (GitHub Copilot MCP)
105+
106+
* To configure an MCP server for a specific workspace, you can create a `.vs/mcp.json` file in your workspace folder.
107+
108+
```json
109+
{
110+
"servers": {
111+
"syncfusion-blazor-assistant": {
112+
"type": "stdio",
113+
"command": "npx",
114+
"args": [
115+
"-y",
116+
"@syncfusion/blazor-assistant@latest"
117+
],
118+
"env": {
119+
"Syncfusion_API_Key": "YOUR_API_KEY"
120+
}
121+
}
122+
}
123+
}
124+
```
125+
126+
* After updating the mcp.json configuration, open the GitHub Copilot Chat window. Click the Ask arrow, then select Agent.
127+
* Select the [SyncfusionBlazorAssistant](https://www.npmjs.com/package/@syncfusion/blazor-assistant) from the tools section.
128+
* For more details, refer to the official [Visual Studio documentation](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022).
129+
102130

103131
### Cursor
104132

@@ -148,7 +176,7 @@ To configure an MCP server for a specific workspace, you can create a .cursor/mc
148176
4. Click OK and Apply.
149177

150178
> For more detailed information about configuring MCP servers in various clients, refer to the official documentations.
151-
* [VS Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server)
179+
* [Visual Studio Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server)
152180
* [Cursor](https://cursor.com/docs/context/mcp#using-mcp-json)
153181
* [JetBrains](https://www.jetbrains.com/help/ai-assistant/mcp.html#connect-to-an-mcp-server)
154182
* [Windsurf](https://docs.windsurf.com/windsurf/cascade/mcp#mcp-config-json)
@@ -165,7 +193,7 @@ To activate the SyncfusionBlazorAssistant MCP server:
165193
* '@ask_syncfusion_blazor'
166194
* 'ej2-blazor'
167195

168-
In VS Code, you can also use #SyncfusionBlazorAssistant to explicitly invoke the MCP server.
196+
In Visual Studio Code, you can also use #SyncfusionBlazorAssistant to explicitly invoke the MCP server.
169197

170198
2. Grant the SyncfusionBlazorAssistant MCP server a permission to run for this session, workspace, or always.
171199
3. For best results, start a new chat for each new topic to maintain clean context.

0 commit comments

Comments
 (0)