Skip to content

Commit f957633

Browse files
Merge pull request #7280 from syncfusion-content/999227-MCP-Changes
999227: Updated the MCP latest changes.
2 parents f3e44aa + 3ec61ac commit f957633

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

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

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,31 @@ Before you can invoke the `SyncfusionBlazorAssistant` MCP server, you need to co
5454
- **Arguments**: -y
5555
- **Server name**: syncfusionBlazorAssistant
5656

57-
You need to add your [Syncfusion API key](https://www.syncfusion.com/account/api-key) as an env parameter in the configuration file:
57+
#### API Key Configuration
5858

59-
```json
60-
"env": {
61-
"Syncfusion_API_Key": "YOUR_API_KEY"
62-
}
63-
```
59+
There are two options:
60+
61+
* **Using an API Key File (Recommended)**
62+
63+
Store your API key in a separate file and reference its path in the `Syncfusion_API_Key_Path` environment parameter. This approach is more secure as you don't expose the key directly in configuration files.
64+
65+
**Supported file formats:** `.txt` or `.key` file
66+
67+
```json
68+
"env": {
69+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH" // "D:\\syncfusion-key.txt" (or) "D:\\syncfusion-key.key"
70+
}
71+
```
72+
73+
* **Direct API Key**
74+
75+
Paste your `Syncfusion_API_Key` directly in the configuration file's environment parameter.
76+
77+
```json
78+
"env": {
79+
"Syncfusion_API_Key": "YOUR_API_KEY"
80+
}
81+
```
6482

6583
Below are setup instructions for popular MCP clients:
6684

@@ -86,6 +104,8 @@ Below are setup instructions for popular MCP clients:
86104
"@syncfusion/blazor-assistant@latest"
87105
],
88106
"env": {
107+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
108+
// or
89109
"Syncfusion_API_Key": "YOUR_API_KEY"
90110
}
91111
}
@@ -114,6 +134,8 @@ Below are setup instructions for popular MCP clients:
114134
"@syncfusion/blazor-assistant@latest"
115135
],
116136
"env": {
137+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
138+
// or
117139
"Syncfusion_API_Key": "YOUR_API_KEY"
118140
}
119141
}
@@ -140,7 +162,9 @@ To configure an MCP server for a specific workspace, you can create a `.cursor/m
140162
"@syncfusion/blazor-assistant@latest"
141163
],
142164
"env": {
143-
"Syncfusion_API_Key": "YOUR_API_KEY"
165+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
166+
// or
167+
"Syncfusion_API_Key": "YOUR_API_KEY"
144168
}
145169
}
146170
}
@@ -165,7 +189,9 @@ For more details, refer to the [Cursor documentation](https://cursor.com/docs/co
165189
"@syncfusion/blazor-assistant@latest"
166190
],
167191
"env": {
168-
"Syncfusion_API_Key": "YOUR_API_KEY"
192+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
193+
// or
194+
"Syncfusion_API_Key": "YOUR_API_KEY"
169195
}
170196
}
171197
}

0 commit comments

Comments
 (0)