mcp-server-markview 1.2.10 → 1.3.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/index.js +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -30,7 +30,10 @@ const TOOLS = [
|
|
|
30
30
|
type: "string",
|
|
31
31
|
description: "Markdown source text to preview",
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
filename: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Optional filename hint (default: preview.md)",
|
|
36
|
+
},
|
|
34
37
|
},
|
|
35
38
|
required: ["content"],
|
|
36
39
|
},
|
|
@@ -72,7 +75,9 @@ module.exports.default = createSandboxServer;
|
|
|
72
75
|
if (require.main === module) {
|
|
73
76
|
const { resolve } = require("path");
|
|
74
77
|
const fs = require("fs");
|
|
75
|
-
|
|
78
|
+
// Downloaded binary path — written here by postinstall.js (different name from the
|
|
79
|
+
// shell bin script at bin/mcp-server-markview to avoid an infinite spawn loop).
|
|
80
|
+
const binary = resolve(__dirname, "bin/markview-mcp-server-binary");
|
|
76
81
|
|
|
77
82
|
if (process.platform === "darwin" && fs.existsSync(binary)) {
|
|
78
83
|
const { spawn } = require("child_process");
|
package/package.json
CHANGED