@syncfusion/maui-assistant 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,13 +45,33 @@ Before you can invoke the `SyncfusionMAUIAssistant` MCP server, you need to conf
45
45
  - **Arguments**: -y
46
46
  - **Server name**: syncfusionMAUIAssistant
47
47
 
48
- You need to add your [Syncfusion API key](https://syncfusion.com/account/api-key) as an env parameter in the configuration file:
48
+ #### API Key Configuration
49
49
 
50
- ```json
51
- "env": {
52
- "Syncfusion_API_Key": "YOUR_API_KEY"
53
- }
54
- ```
50
+ Login to your [Syncfusion account](http://syncfusion.com/account/) and generate an API Key from the [API Key page](https://www.syncfusion.com/account/api-key). Replace `YOUR_API_KEY_FILE_PATH` or `YOUR_API_KEY` in the configuration files with your generated key.
51
+
52
+ There are two options:
53
+
54
+ * **Using an API Key File (Recommended)**
55
+
56
+ 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.
57
+
58
+ **Supported file formats:** `.txt` or `.key` file
59
+
60
+ ```json
61
+ "env": {
62
+ "Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH" // "D:\\syncfusion-key.txt" (or) "D:\\syncfusion-key.key"
63
+ }
64
+ ```
65
+
66
+ * **Direct API Key**
67
+
68
+ Paste your `Syncfusion_API_Key` directly in the configuration file's environment parameter.
69
+
70
+ ```json
71
+ "env": {
72
+ "Syncfusion_API_Key": "YOUR_API_KEY"
73
+ }
74
+ ```
55
75
 
56
76
  Below are setup instructions for popular MCP clients:
57
77
 
@@ -78,6 +98,8 @@ Below are setup instructions for popular MCP clients:
78
98
  "@syncfusion/maui-assistant@latest"
79
99
  ],
80
100
  "env": {
101
+ "Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
102
+ // or
81
103
  "Syncfusion_API_Key": "YOUR_API_KEY"
82
104
  }
83
105
  }
@@ -106,6 +128,8 @@ To configure an MCP server for a specific workspace, you can create a .cursor/mc
106
128
  "@syncfusion/maui-assistant@latest"
107
129
  ],
108
130
  "env": {
131
+ "Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
132
+ // or
109
133
  "Syncfusion_API_Key": "YOUR_API_KEY"
110
134
  }
111
135
  }
@@ -129,6 +153,8 @@ To configure an MCP server for a specific workspace, you can create a .cursor/mc
129
153
  "@syncfusion/maui-assistant@latest"
130
154
  ],
131
155
  "env": {
156
+ "Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
157
+ // or
132
158
  "Syncfusion_API_Key": "YOUR_API_KEY"
133
159
  }
134
160
  }
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ toolRegistry.register(SyncfusionMAUIAssistantTool);
8
8
  async function runServer() {
9
9
  const server = new McpServer({
10
10
  name: "SyncfusionMAUIAssistant",
11
- version: "0.1.0"
11
+ version: "1.0.0"
12
12
  });
13
13
  for (const tool of toolRegistry.getAll()) {
14
14
  server.tool(tool.name, tool.description, tool.inputSchema, tool.handler);
@@ -1,5 +1,12 @@
1
1
  import axios from 'axios';
2
- const apiKey = process.env.Syncfusion_API_Key || "";
2
+ import { readFileSync } from 'node:fs';
3
+ let apiKey;
4
+ if (process.env.Syncfusion_API_Key_Path) {
5
+ apiKey = readFileSync(process.env.Syncfusion_API_Key_Path, 'utf8');
6
+ }
7
+ else {
8
+ apiKey = process.env.Syncfusion_API_Key || "";
9
+ }
3
10
  export async function callSyncfusionHelpbotAPI(query, platform, components) {
4
11
  try {
5
12
  const resp = await axios.post("https://helpbot.syncfusion.com/api/documents/search", { "query": `${query} ${components}`, "platform": platform, "tool": "maui-mcp" }, {
package/license ADDED
@@ -0,0 +1,7 @@
1
+ This software is covered by the Software License Agreement (the “Agreement”)( https://www.syncfusion.com/content/downloads/syncfusion_license.pdf). Any use in any form, regardless of where it was obtained is governed by the Agreement. The Agreement is a legal agreement between you (“You”, “Your”, or “Customer”) and Syncfusion, Inc., a Delaware corporation with its principal place of business located at 2501 Aerial Center Parkway, Suite 200, Morrisville, NC 27560 (“Syncfusion”). By accessing, downloading, viewing, possessing, or otherwise using any part of Syncfusion’s Essential Studio product, you are agreeing to be bound by the terms and conditions and agree to register with Syncfusion. If you do not agree to be bound by the terms and conditions of the Agreement, you cannot access, register, use, or view any part of Syncfusion’s Essential Studio product or lines of code.
2
+
3
+ This license is for Essential Studio Enterprise Edition.
4
+
5
+ TO READ THE COMPLETE LICENSE AGREEMENT: https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
6
+
7
+ IF AFTER READING THIS AGREEMENT YOU HAVE ANY QUESTIONS ABOUT THIS AGREEMENT, PLEASE CONTACT SYNCFUSION PRIOR TO USING THE SOFTWARE PRODUCT VIA EMAIL AT LEGALQUESTIONS@SYNCFUSION.COM
package/package.json CHANGED
@@ -1,31 +1,27 @@
1
- {
2
- "name": "@syncfusion/maui-assistant",
3
- "version": "0.1.0",
4
- "description": "MCP server that provides efficient access to Syncfusion documentation, implementation guidelines, and code generation for MAUI",
5
- "type": "module",
6
- "bin": {
7
- "maui-assistant": "./dist/index.js"
8
- },
9
- "keywords": [
10
- "MCP Server",
11
- "Model Context Protocol",
12
- "MAUI",
13
- "Syncfusion",
14
- "AI",
15
- "Copilot",
16
- "SyncfusionMAUI"
17
- ],
18
- "files": [
19
- "dist",
20
- "assets"
21
- ],
22
- "dependencies": {
23
- "@modelcontextprotocol/sdk": "1.13.2",
24
- "axios": "1.12.1"
25
- },
26
- "scripts": {
27
- "build": "tsc",
28
- "start": "tsc",
29
- "inspector": "npx @modelcontextprotocol/inspector dist/index.js"
30
- }
31
- }
1
+ {
2
+ "name": "@syncfusion/maui-assistant",
3
+ "version": "1.0.0",
4
+ "description": "MCP server that provides efficient access to Syncfusion documentation, implementation guidelines, and code generation for MAUI",
5
+ "type": "module",
6
+ "license": "SEE LICENSE IN license",
7
+ "bin": {
8
+ "maui-assistant": "./dist/index.js"
9
+ },
10
+ "keywords": [
11
+ "MCP Server",
12
+ "Model Context Protocol",
13
+ "MAUI",
14
+ "Syncfusion",
15
+ "AI",
16
+ "Copilot",
17
+ "SyncfusionMAUI"
18
+ ],
19
+ "files": [
20
+ "dist",
21
+ "assets"
22
+ ],
23
+ "dependencies": {
24
+ "@modelcontextprotocol/sdk": "1.23.0",
25
+ "axios": "1.13.2"
26
+ }
27
+ }