simple-dynamsoft-mcp 3.0.0 → 3.1.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 +5 -0
- package/code-snippet/dynamsoft-barcode-reader/web/frameworks/blazor/scan-using-foundational-api/hello-world-blazor/BlazorApp/obj/Debug/net8.0/BlazorApp.AssemblyInfo.cs +1 -1
- package/code-snippet/dynamsoft-barcode-reader/web/frameworks/blazor/scan-using-rtu-api/obj/Debug/net8.0/BlazorApp.AssemblyInfo.cs +1 -1
- package/code-snippet/dynamsoft-document-viewer/angular/.editorconfig +16 -0
- package/code-snippet/dynamsoft-document-viewer/angular/README.md +42 -0
- package/code-snippet/dynamsoft-document-viewer/angular/angular.json +104 -0
- package/code-snippet/dynamsoft-document-viewer/angular/package-lock.json +12264 -0
- package/code-snippet/dynamsoft-document-viewer/angular/package.json +39 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/app.component.css +6 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/app.component.html +7 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/app.component.spec.ts +10 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/app.component.ts +19 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/app.config.ts +8 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/app.routes.ts +3 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/components/viewer/viewer.component.css +4 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/components/viewer/viewer.component.html +1 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/components/viewer/viewer.component.spec.ts +22 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/app/components/viewer/viewer.component.ts +30 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/assets/.gitkeep +0 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/favicon.ico +0 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/index.html +13 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/main.ts +6 -0
- package/code-snippet/dynamsoft-document-viewer/angular/src/styles.css +13 -0
- package/code-snippet/dynamsoft-document-viewer/angular/tsconfig.app.json +14 -0
- package/code-snippet/dynamsoft-document-viewer/angular/tsconfig.json +34 -0
- package/code-snippet/dynamsoft-document-viewer/angular/tsconfig.spec.json +14 -0
- package/code-snippet/dynamsoft-document-viewer/hello-world.html +49 -0
- package/code-snippet/dynamsoft-document-viewer/next/README.md +42 -0
- package/code-snippet/dynamsoft-document-viewer/next/next.config.ts +27 -0
- package/code-snippet/dynamsoft-document-viewer/next/package-lock.json +1919 -0
- package/code-snippet/dynamsoft-document-viewer/next/package.json +24 -0
- package/code-snippet/dynamsoft-document-viewer/next/public/next.svg +1 -0
- package/code-snippet/dynamsoft-document-viewer/next/public/vercel.svg +1 -0
- package/code-snippet/dynamsoft-document-viewer/next/src/app/components/Viewer.css +4 -0
- package/code-snippet/dynamsoft-document-viewer/next/src/app/components/Viewer.tsx +40 -0
- package/code-snippet/dynamsoft-document-viewer/next/src/app/favicon.ico +0 -0
- package/code-snippet/dynamsoft-document-viewer/next/src/app/globals.css +18 -0
- package/code-snippet/dynamsoft-document-viewer/next/src/app/layout.tsx +32 -0
- package/code-snippet/dynamsoft-document-viewer/next/src/app/page.tsx +19 -0
- package/code-snippet/dynamsoft-document-viewer/next/tsconfig.json +27 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/README.md +42 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/eslint.config.js +38 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/index.html +13 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/package-lock.json +4880 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/package.json +30 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/src/App.css +18 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/src/App.jsx +13 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/src/assets/react.svg +1 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/src/components/Viewer.css +4 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/src/components/Viewer.jsx +31 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/src/index.css +13 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/src/main.jsx +7 -0
- package/code-snippet/dynamsoft-document-viewer/react-vite/vite.config.js +19 -0
- package/code-snippet/dynamsoft-document-viewer/vue/.eslintrc.cjs +15 -0
- package/code-snippet/dynamsoft-document-viewer/vue/.prettierrc.json +8 -0
- package/code-snippet/dynamsoft-document-viewer/vue/README.md +42 -0
- package/code-snippet/dynamsoft-document-viewer/vue/env.d.ts +1 -0
- package/code-snippet/dynamsoft-document-viewer/vue/index.html +13 -0
- package/code-snippet/dynamsoft-document-viewer/vue/package-lock.json +3340 -0
- package/code-snippet/dynamsoft-document-viewer/vue/package.json +36 -0
- package/code-snippet/dynamsoft-document-viewer/vue/public/favicon.ico +0 -0
- package/code-snippet/dynamsoft-document-viewer/vue/src/App.vue +29 -0
- package/code-snippet/dynamsoft-document-viewer/vue/src/Component/Viewer.vue +35 -0
- package/code-snippet/dynamsoft-document-viewer/vue/src/index.html +13 -0
- package/code-snippet/dynamsoft-document-viewer/vue/src/main.ts +5 -0
- package/code-snippet/dynamsoft-document-viewer/vue/tsconfig.app.json +13 -0
- package/code-snippet/dynamsoft-document-viewer/vue/tsconfig.json +11 -0
- package/code-snippet/dynamsoft-document-viewer/vue/tsconfig.node.json +17 -0
- package/code-snippet/dynamsoft-document-viewer/vue/vite.config.ts +29 -0
- package/data/ddv-api-docs.json +1279 -0
- package/data/dynamsoft_sdks.json +32 -0
- package/package.json +1 -1
- package/src/index.js +180 -4
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ MCP (Model Context Protocol) server that enables AI assistants to write correct
|
|
|
6
6
|
- **Dynamsoft Barcode Reader Python** - Desktop/server barcode scanning
|
|
7
7
|
- **Dynamsoft Barcode Reader Web** - JavaScript/TypeScript barcode scanning
|
|
8
8
|
- **Dynamic Web TWAIN** - Document scanning from TWAIN/WIA/ICA/SANE scanners
|
|
9
|
+
- **Dynamsoft Document Viewer** - Web document viewing and annotation
|
|
9
10
|
|
|
10
11
|
## Demo Video
|
|
11
12
|
https://github.com/user-attachments/assets/cc1c5f4b-1461-4462-897a-75abc20d62a6
|
|
@@ -33,6 +34,8 @@ https://github.com/user-attachments/assets/cc1c5f4b-1461-4462-897a-75abc20d62a6
|
|
|
33
34
|
| `get_python_sample` | Get Python sample code |
|
|
34
35
|
| `get_web_sample` | Get web barcode reader sample HTML/JS code |
|
|
35
36
|
| `get_dwt_sample` | Get Dynamic Web TWAIN sample |
|
|
37
|
+
| `list_ddv_samples` | List Dynamsoft Document Viewer samples |
|
|
38
|
+
| `get_ddv_sample` | Get Dynamsoft Document Viewer sample |
|
|
36
39
|
| `get_quick_start` | Complete quick start guide with dependencies |
|
|
37
40
|
| `get_gradle_config` | Android Gradle configuration |
|
|
38
41
|
| `get_license_info` | License initialization code |
|
|
@@ -41,6 +44,8 @@ https://github.com/user-attachments/assets/cc1c5f4b-1461-4462-897a-75abc20d62a6
|
|
|
41
44
|
| `generate_project` | Generate a complete project structure based on a sample |
|
|
42
45
|
| `search_dwt_docs` | Search Dynamic Web TWAIN API documentation |
|
|
43
46
|
| `get_dwt_api_doc` | Get specific DWT documentation article |
|
|
47
|
+
| `search_ddv_docs` | Search Dynamsoft Document Viewer API documentation |
|
|
48
|
+
| `get_ddv_api_doc` | Get specific DDV documentation article |
|
|
44
49
|
|
|
45
50
|
|
|
46
51
|
## MCP Client Configuration
|
|
@@ -13,7 +13,7 @@ using System.Reflection;
|
|
|
13
13
|
[assembly: System.Reflection.AssemblyCompanyAttribute("BlazorApp")]
|
|
14
14
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
|
15
15
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
|
16
|
-
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+
|
|
16
|
+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5425839fef580283ff7839956d6282be5de5e870")]
|
|
17
17
|
[assembly: System.Reflection.AssemblyProductAttribute("BlazorApp")]
|
|
18
18
|
[assembly: System.Reflection.AssemblyTitleAttribute("BlazorApp")]
|
|
19
19
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
|
@@ -13,7 +13,7 @@ using System.Reflection;
|
|
|
13
13
|
[assembly: System.Reflection.AssemblyCompanyAttribute("BlazorApp")]
|
|
14
14
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
|
15
15
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
|
16
|
-
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+
|
|
16
|
+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5425839fef580283ff7839956d6282be5de5e870")]
|
|
17
17
|
[assembly: System.Reflection.AssemblyProductAttribute("BlazorApp")]
|
|
18
18
|
[assembly: System.Reflection.AssemblyTitleAttribute("BlazorApp")]
|
|
19
19
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.ts]
|
|
12
|
+
quote_type = single
|
|
13
|
+
|
|
14
|
+
[*.md]
|
|
15
|
+
max_line_length = off
|
|
16
|
+
trim_trailing_whitespace = false
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Hello World Angular App
|
|
2
|
+
|
|
3
|
+
This project was bootstrapped with [Angular CLI](https://github.com/angular/angular-cli). It utilizes the solution [Dynamsoft Document Viewer](https://www.dynamsoft.com/document-viewer/docs/introduction/) to provide the following functionalities
|
|
4
|
+
|
|
5
|
+
- Viewing and editing images and PDFs
|
|
6
|
+
- PDF annotation
|
|
7
|
+
- Page manipulation
|
|
8
|
+
- Image quality enhancement
|
|
9
|
+
- Document saving
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Environment: Node.js v18.14.0
|
|
14
|
+
|
|
15
|
+
1. Apply for a [30-day free trial license](https://www.dynamsoft.com/customer/license/trialLicense?product=ddv&deploymenttype=browser) of Dynamsoft Document Viewer.
|
|
16
|
+
|
|
17
|
+
2. Update the license key in `src\app\components\viewer\viewer.component.ts` file:
|
|
18
|
+
|
|
19
|
+
```javascript
|
|
20
|
+
// your license key
|
|
21
|
+
DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
3. Install the dependencies:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
npm install
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
4. Run the application as follows:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
npm run start
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Build
|
|
37
|
+
|
|
38
|
+
Run `npm run build` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
39
|
+
It correctly bundles Angular in production mode and optimizes the build for the best performance.
|
|
40
|
+
|
|
41
|
+
The build is minified and the filenames include the hashes.<br />
|
|
42
|
+
Your app is ready to be deployed!
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"ddv-angular": {
|
|
7
|
+
"projectType": "application",
|
|
8
|
+
"schematics": {},
|
|
9
|
+
"root": "",
|
|
10
|
+
"sourceRoot": "src",
|
|
11
|
+
"prefix": "app",
|
|
12
|
+
"architect": {
|
|
13
|
+
"build": {
|
|
14
|
+
"builder": "@angular-devkit/build-angular:application",
|
|
15
|
+
"options": {
|
|
16
|
+
"outputPath": "dist/ddv-angular",
|
|
17
|
+
"index": "src/index.html",
|
|
18
|
+
"browser": "src/main.ts",
|
|
19
|
+
"polyfills": [
|
|
20
|
+
"zone.js"
|
|
21
|
+
],
|
|
22
|
+
"tsConfig": "tsconfig.app.json",
|
|
23
|
+
"assets": [
|
|
24
|
+
"src/favicon.ico",
|
|
25
|
+
"src/assets",
|
|
26
|
+
{
|
|
27
|
+
"glob": "**/*",
|
|
28
|
+
"input": "node_modules/dynamsoft-document-viewer/dist",
|
|
29
|
+
"output": "/dynamsoft-document-viewer/dist"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"styles": [
|
|
33
|
+
"src/styles.css",
|
|
34
|
+
"node_modules/dynamsoft-document-viewer/dist/ddv.css"
|
|
35
|
+
],
|
|
36
|
+
"scripts": []
|
|
37
|
+
},
|
|
38
|
+
"configurations": {
|
|
39
|
+
"production": {
|
|
40
|
+
"budgets": [
|
|
41
|
+
{
|
|
42
|
+
"type": "initial",
|
|
43
|
+
"maximumWarning": "2mb",
|
|
44
|
+
"maximumError": "2mb"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "anyComponentStyle",
|
|
48
|
+
"maximumWarning": "2kb",
|
|
49
|
+
"maximumError": "4kb"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"outputHashing": "all"
|
|
53
|
+
},
|
|
54
|
+
"development": {
|
|
55
|
+
"optimization": false,
|
|
56
|
+
"extractLicenses": false,
|
|
57
|
+
"sourceMap": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"defaultConfiguration": "production"
|
|
61
|
+
},
|
|
62
|
+
"serve": {
|
|
63
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
64
|
+
"configurations": {
|
|
65
|
+
"production": {
|
|
66
|
+
"buildTarget": "ddv-angular:build:production"
|
|
67
|
+
},
|
|
68
|
+
"development": {
|
|
69
|
+
"buildTarget": "ddv-angular:build:development"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"defaultConfiguration": "development"
|
|
73
|
+
},
|
|
74
|
+
"extract-i18n": {
|
|
75
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
76
|
+
"options": {
|
|
77
|
+
"buildTarget": "ddv-angular:build"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"test": {
|
|
81
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
82
|
+
"options": {
|
|
83
|
+
"polyfills": [
|
|
84
|
+
"zone.js",
|
|
85
|
+
"zone.js/testing"
|
|
86
|
+
],
|
|
87
|
+
"tsConfig": "tsconfig.spec.json",
|
|
88
|
+
"assets": [
|
|
89
|
+
"src/favicon.ico",
|
|
90
|
+
"src/assets"
|
|
91
|
+
],
|
|
92
|
+
"styles": [
|
|
93
|
+
"src/styles.css"
|
|
94
|
+
],
|
|
95
|
+
"scripts": []
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"cli": {
|
|
102
|
+
"analytics": false
|
|
103
|
+
}
|
|
104
|
+
}
|