@syncfusion/documentsdk-assistant 0.1.0 → 1.0.1
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 +45 -16
- package/dist/index.js +1 -1
- package/dist/utils/helpbot.js +8 -1
- package/license +7 -0
- package/package.json +27 -31
package/README.md
CHANGED
|
@@ -45,22 +45,43 @@ Before you can invoke the `SyncfusionDocumentSDKAssistant` MCP server, you need
|
|
|
45
45
|
- **Arguments**: -y
|
|
46
46
|
- **Server name**: syncfusionDocumentSDKAssistant
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
#### API Key Configuration
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
SyncfusionDocumentSDKAssistant can be configured in various MCP clients. Below are setup instructions for popular environment:
|
|
57
77
|
|
|
58
78
|
### Syncfusion<sup style="font-size:70%">®</sup> Code Studio
|
|
59
79
|
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
80
|
+
* In [Code Studio](https://www.syncfusion.com/code-studio/), open MCP Marketplace and navigate to the ```Custom Servers``` tab.
|
|
81
|
+
* Enter the Server Name as ```documentsdk-mcp```, choose Server Type as npm package, and set the NPM Package name to ```@syncfusion/documentsdk-assistant```.
|
|
82
|
+
* 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**.
|
|
83
|
+
* Once installed, the server will appear in the User Installed Server list and will be added to the **config.yaml** file.
|
|
84
|
+
* 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).
|
|
64
85
|
|
|
65
86
|
### VS Code (GitHub Copilot MCP)
|
|
66
87
|
|
|
@@ -77,6 +98,8 @@ SyncfusionDocumentSDKAssistant can be configured in various MCP clients. Below a
|
|
|
77
98
|
"@syncfusion/documentsdk-assistant@latest"
|
|
78
99
|
],
|
|
79
100
|
"env": {
|
|
101
|
+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
|
|
102
|
+
// or
|
|
80
103
|
"Syncfusion_API_Key": "YOUR_API_KEY"
|
|
81
104
|
}
|
|
82
105
|
}
|
|
@@ -84,11 +107,13 @@ SyncfusionDocumentSDKAssistant can be configured in various MCP clients. Below a
|
|
|
84
107
|
}
|
|
85
108
|
```
|
|
86
109
|
|
|
87
|
-
2. After updating the configuration in
|
|
110
|
+
2. 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 SyncfusionDocumentSDKAssistant server directly from the settings interface without additional commands.
|
|
88
111
|
|
|
89
112
|
3. Confirm that SyncfusionDocumentSDKAssistant is being used (this does not happen automatically). Look for a statement in the output, which is similar to:
|
|
90
113
|
* `SyncfusionDocumentSDKAssistant is running...` (in VS Code)
|
|
91
114
|
|
|
115
|
+
4. For more details, refer to the official <a href = "https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022"> Visual Studio documentation</a>.
|
|
116
|
+
|
|
92
117
|
### Cursor
|
|
93
118
|
|
|
94
119
|
To configure an MCP server for a specific workspace, you can create a .cursor/mcp.json file in your workspace folder.
|
|
@@ -104,12 +129,15 @@ To configure an MCP server for a specific workspace, you can create a .cursor/mc
|
|
|
104
129
|
"@syncfusion/documentsdk-assistant@latest"
|
|
105
130
|
],
|
|
106
131
|
"env": {
|
|
132
|
+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
|
|
133
|
+
// or
|
|
107
134
|
"Syncfusion_API_Key": "YOUR_API_KEY"
|
|
108
135
|
}
|
|
109
136
|
}
|
|
110
137
|
}
|
|
111
138
|
}
|
|
112
139
|
```
|
|
140
|
+
For more details, refer to the <a href = "https://docs.cursor.com/en/context/mcp#using-mcp-json">Cursor documentation</a>.
|
|
113
141
|
|
|
114
142
|
### JetBrains IDEs
|
|
115
143
|
|
|
@@ -127,6 +155,8 @@ To configure an MCP server for a specific workspace, you can create a .cursor/mc
|
|
|
127
155
|
"@syncfusion/documentsdk-assistant@latest"
|
|
128
156
|
],
|
|
129
157
|
"env": {
|
|
158
|
+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
|
|
159
|
+
// or
|
|
130
160
|
"Syncfusion_API_Key": "YOUR_API_KEY"
|
|
131
161
|
}
|
|
132
162
|
}
|
|
@@ -136,11 +166,10 @@ To configure an MCP server for a specific workspace, you can create a .cursor/mc
|
|
|
136
166
|
|
|
137
167
|
4. Click OK and Apply.
|
|
138
168
|
|
|
139
|
-
For
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
* [Windsurf](https://docs.windsurf.com/windsurf/cascade/mcp#mcp-config-json)
|
|
169
|
+
For further assistance, see the <a href ="https://www.jetbrains.com/help/ai-assistant/mcp.html#connect-to-an-mcp-server">JetBrains documentation</a>.
|
|
170
|
+
|
|
171
|
+
> 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)
|
|
172
|
+
|
|
144
173
|
|
|
145
174
|
## Usage
|
|
146
175
|
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ toolRegistry.register(SyncfusionDocumentSDKAssistantTool);
|
|
|
8
8
|
async function runServer() {
|
|
9
9
|
const server = new McpServer({
|
|
10
10
|
name: "SyncfusionDocumentSDKAssistant",
|
|
11
|
-
version: "
|
|
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);
|
package/dist/utils/helpbot.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
|
|
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": "documentsdk-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/documentsdk-assistant",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "MCP server that provides efficient access to Syncfusion documentation, implementation guidelines, and code generation for document processing libraries.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"start": "tsc",
|
|
29
|
-
"inspector": "npx @modelcontextprotocol/inspector dist/index.js"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@syncfusion/documentsdk-assistant",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "MCP server that provides efficient access to Syncfusion documentation, implementation guidelines, and code generation for document processing libraries.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "SEE LICENSE IN license",
|
|
7
|
+
"bin": {
|
|
8
|
+
"documentsdk-assistant": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"MCP Server",
|
|
12
|
+
"Model Context Protocol",
|
|
13
|
+
"Document Processing Libraries",
|
|
14
|
+
"Syncfusion",
|
|
15
|
+
"AI",
|
|
16
|
+
"Copilot",
|
|
17
|
+
"SyncfusionDocumentSDK"
|
|
18
|
+
],
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"assets"
|
|
22
|
+
],
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@modelcontextprotocol/sdk": "1.26.0",
|
|
25
|
+
"axios": "1.13.2"
|
|
26
|
+
}
|
|
27
|
+
}
|