simple-dynamsoft-mcp 2.0.5 → 2.2.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 +23 -0
- package/data/dynamsoft_sdks.json +1 -0
- package/data/web-twain-api-docs.json +1881 -0
- package/package.json +1 -1
- package/src/index.js +422 -0
- package/test/server.test.js +84 -8
package/README.md
CHANGED
|
@@ -26,9 +26,11 @@ https://github.com/user-attachments/assets/cc1c5f4b-1461-4462-897a-75abc20d62a6
|
|
|
26
26
|
| `get_sdk_info` | Get detailed SDK info for a specific platform |
|
|
27
27
|
| `list_samples` | List mobile code samples |
|
|
28
28
|
| `list_python_samples` | List Python SDK samples |
|
|
29
|
+
| `list_web_samples` | List web barcode reader samples |
|
|
29
30
|
| `list_dwt_categories` | List Dynamic Web TWAIN sample categories |
|
|
30
31
|
| `get_code_snippet` | Get mobile sample source code |
|
|
31
32
|
| `get_python_sample` | Get Python sample code |
|
|
33
|
+
| `get_web_sample` | Get web barcode reader sample HTML/JS code |
|
|
32
34
|
| `get_dwt_sample` | Get Dynamic Web TWAIN sample |
|
|
33
35
|
| `get_quick_start` | Complete quick start guide with dependencies |
|
|
34
36
|
| `get_gradle_config` | Android Gradle configuration |
|
|
@@ -36,6 +38,8 @@ https://github.com/user-attachments/assets/cc1c5f4b-1461-4462-897a-75abc20d62a6
|
|
|
36
38
|
| `get_api_usage` | Usage examples for specific APIs |
|
|
37
39
|
| `search_samples` | Search samples by keyword |
|
|
38
40
|
| `generate_project` | Generate a complete project structure based on a sample |
|
|
41
|
+
| `search_dwt_docs` | Search Dynamic Web TWAIN API documentation |
|
|
42
|
+
| `get_dwt_api_doc` | Get specific DWT documentation article |
|
|
39
43
|
|
|
40
44
|
|
|
41
45
|
## MCP Client Configuration
|
|
@@ -192,6 +196,12 @@ If you prefer running from source:
|
|
|
192
196
|
|
|
193
197
|
**CDN:** `https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.2.4000/dist/dbr.bundle.min.js`
|
|
194
198
|
|
|
199
|
+
**Samples:**
|
|
200
|
+
- **hello-world** - Basic barcode scanning from camera
|
|
201
|
+
- **read-an-image** - Decode from image files
|
|
202
|
+
- **frameworks/** - React, Vue, Angular, Next.js, PWA samples
|
|
203
|
+
- **scenarios/** - Multi-image reading, localize an item, driver license parsing
|
|
204
|
+
|
|
195
205
|
### Dynamic Web TWAIN (v19.3)
|
|
196
206
|
|
|
197
207
|
**Installation:** `npm install dwt`
|
|
@@ -222,10 +232,19 @@ After connecting the MCP server, you can ask your AI assistant:
|
|
|
222
232
|
- "Show me how to read barcodes from an image in Python"
|
|
223
233
|
- "Get the Python sample for video decoding"
|
|
224
234
|
|
|
235
|
+
### Web Barcode Reader
|
|
236
|
+
- "Create a web page that scans barcodes from a camera"
|
|
237
|
+
- "Show me the web barcode reader hello world sample"
|
|
238
|
+
- "Get the React sample for web barcode scanning"
|
|
239
|
+
- "How do I decode barcodes from an image in JavaScript?"
|
|
240
|
+
|
|
225
241
|
### Dynamic Web TWAIN
|
|
226
242
|
- "Create a web page that scans documents from a TWAIN scanner"
|
|
227
243
|
- "Show me how to save scanned documents as PDF"
|
|
228
244
|
- "Get the DWT sample for reading barcodes from scanned documents"
|
|
245
|
+
- "Search the DWT docs for how to load images from files"
|
|
246
|
+
- "Get the DWT documentation about OCR"
|
|
247
|
+
- "How do I configure the PDF rasterizer in DWT?"
|
|
229
248
|
|
|
230
249
|
## SDK Documentation
|
|
231
250
|
|
|
@@ -255,6 +274,10 @@ code-snippet/
|
|
|
255
274
|
├── output-options/
|
|
256
275
|
├── classification/
|
|
257
276
|
└── UI-customization/
|
|
277
|
+
|
|
278
|
+
data/
|
|
279
|
+
├── dynamsoft_sdks.json # SDK registry with versions and docs
|
|
280
|
+
└── web-twain-api-docs.json # Full DWT API documentation (50+ articles)
|
|
258
281
|
```
|
|
259
282
|
|
|
260
283
|
## Extending the Server
|