@vint.tri/report_gen_mcp 1.5.13 → 1.5.15
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AA6fA;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAgCjD"}
|
package/dist/index.js
CHANGED
|
@@ -103,7 +103,7 @@ if (process.argv.length === 2) {
|
|
|
103
103
|
// No command specified, run in stdio mode using MCP SDK
|
|
104
104
|
const mcpServer = new McpServer({
|
|
105
105
|
name: "report_gen_mcp",
|
|
106
|
-
version: "1.5.
|
|
106
|
+
version: "1.5.15"
|
|
107
107
|
}, {
|
|
108
108
|
// Disable health check to prevent automatic calls
|
|
109
109
|
capabilities: {
|
|
@@ -180,6 +180,14 @@ if (process.argv.length === 2) {
|
|
|
180
180
|
else if (params.arguments && typeof params.arguments === 'object') {
|
|
181
181
|
processedParams = params.arguments;
|
|
182
182
|
}
|
|
183
|
+
else if (typeof params.arguments === 'string') {
|
|
184
|
+
try {
|
|
185
|
+
processedParams = JSON.parse(params.arguments);
|
|
186
|
+
}
|
|
187
|
+
catch (parseError) {
|
|
188
|
+
throw new Error('Invalid JSON string in arguments');
|
|
189
|
+
}
|
|
190
|
+
}
|
|
183
191
|
// Extract parameters correctly, ensuring outputFile is not nested within elements
|
|
184
192
|
const { document, elements, charts, outputFile = 'report.html', tempDirectory } = processedParams;
|
|
185
193
|
// Поддержка обратной совместимости: если переданы charts, используем их как elements
|