@birthday8/doc-mcp 1.0.0 → 1.0.2
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/index.js +2 -11
- package/package.json +2 -2
- package/python/docx_converter.py +1220 -428
- package/python/html_fixer.py +125 -0
- package/python/html_validator.py +389 -0
- package/python/sample/example.html +407 -0
- package/python/server.py +193 -120
- package/python/test_error_detection.py +84 -0
- package/python/__pycache__/docx_converter.cpython-313.pyc +0 -0
package/index.js
CHANGED
|
@@ -80,26 +80,17 @@ function installDependencies(pythonCmd) {
|
|
|
80
80
|
stdio: 'pipe'
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
let output = '';
|
|
84
|
-
install.stdout.on('data', (data) => {
|
|
85
|
-
output += data.toString();
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
install.stderr.on('data', (data) => {
|
|
89
|
-
output += data.toString();
|
|
90
|
-
});
|
|
91
|
-
|
|
92
83
|
install.on('close', (code) => {
|
|
93
84
|
if (code === 0) {
|
|
94
85
|
console.error('[Doc Creator] Dependencies installed successfully.');
|
|
95
86
|
resolve();
|
|
96
87
|
} else {
|
|
97
|
-
reject(new Error(
|
|
88
|
+
reject(new Error('Failed to install dependencies'));
|
|
98
89
|
}
|
|
99
90
|
});
|
|
100
91
|
|
|
101
92
|
install.on('error', (err) => {
|
|
102
|
-
reject(new Error(
|
|
93
|
+
reject(new Error('Failed to run pip'));
|
|
103
94
|
});
|
|
104
95
|
});
|
|
105
96
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@birthday8/doc-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Doc Creator MCP Server - Generate Word documents from HTML",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"index.js",
|
|
29
29
|
"install.js",
|
|
30
|
-
"python
|
|
30
|
+
"python/**/*"
|
|
31
31
|
]
|
|
32
32
|
}
|