@vint.tri/report_gen_mcp 1.6.7 → 1.6.9
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/PUBLICATION_CONFIRMATION_V1.6.9.md +44 -0
- package/VERSION_1.6.9_RELEASE_NOTES.md +44 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -9
- package/package.json +1 -1
- package/publish.sh +45 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Publication Confirmation - Version 1.6.9
|
|
2
|
+
|
|
3
|
+
## Package Details
|
|
4
|
+
- **Name**: @vint.tri/report_gen_mcp
|
|
5
|
+
- **Version**: 1.6.9
|
|
6
|
+
- **Status**: Successfully published to npm registry
|
|
7
|
+
|
|
8
|
+
## Publication Summary
|
|
9
|
+
|
|
10
|
+
Version 1.6.9 of the @vint.tri/report_gen_mcp package has been successfully published to the npm registry. This release focuses on maintaining version consistency between package.json and the internal MCP server version reporting.
|
|
11
|
+
|
|
12
|
+
## Key Accomplishments
|
|
13
|
+
|
|
14
|
+
1. **Version Synchronization**: Ensured the MCP server version matches the package version (1.6.9)
|
|
15
|
+
2. **Successful Build**: Compiled TypeScript source code without errors
|
|
16
|
+
3. **Release Documentation**: Created comprehensive release notes
|
|
17
|
+
4. **Publication**: Successfully published to npm registry
|
|
18
|
+
|
|
19
|
+
## Verification
|
|
20
|
+
|
|
21
|
+
The package is now available for installation via npm:
|
|
22
|
+
```bash
|
|
23
|
+
npm install @vint.tri/report_gen_mcp@1.6.9
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Users can also install the latest version:
|
|
27
|
+
```bash
|
|
28
|
+
npm install @vint.tri/report_gen_mcp@latest
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Compatibility
|
|
32
|
+
|
|
33
|
+
This release maintains full backward compatibility with previous versions. All existing functionality remains intact while ensuring proper version reporting consistency across all components of the package.
|
|
34
|
+
|
|
35
|
+
## Features Available
|
|
36
|
+
|
|
37
|
+
- Generate professional HTML reports from Markdown documents
|
|
38
|
+
- Embed interactive charts (bar, line, pie, doughnut, radar, polarArea)
|
|
39
|
+
- Embed AI-generated images using Pollinations.ai
|
|
40
|
+
- Embed images from URLs
|
|
41
|
+
- Edit existing reports by adding, removing, or replacing content
|
|
42
|
+
- MCP server integration for use with Claude Desktop
|
|
43
|
+
- HTTP API mode for web integration
|
|
44
|
+
- CLI mode for direct command-line usage
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Version 1.6.9 Release Notes
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This release updates the @vint.tri/report_gen_mcp package to version 1.6.9, maintaining consistency between package.json and the internal version reporting in the MCP server implementation.
|
|
6
|
+
|
|
7
|
+
## Changes
|
|
8
|
+
|
|
9
|
+
### Version Consistency
|
|
10
|
+
- Updated internal MCP server version from 1.6.8 to 1.6.9 to match package.json
|
|
11
|
+
- Ensured version consistency across all components of the package
|
|
12
|
+
|
|
13
|
+
### Technical Improvements
|
|
14
|
+
- Maintained all existing functionality for report generation with embedded charts and images
|
|
15
|
+
- Preserved full compatibility with CLI, HTTP API, and MCP server modes
|
|
16
|
+
- Continued support for all chart types (bar, line, pie, doughnut, radar, polarArea)
|
|
17
|
+
- Maintained image generation and editing capabilities
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
To install this version, use:
|
|
22
|
+
```bash
|
|
23
|
+
npm install @vint.tri/report_gen_mcp@1.6.9
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Or to upgrade to the latest version:
|
|
27
|
+
```bash
|
|
28
|
+
npm install @vint.tri/report_gen_mcp@latest
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Compatibility
|
|
32
|
+
|
|
33
|
+
This release maintains full backward compatibility with previous versions. All existing functionality remains intact while ensuring proper version reporting consistency.
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
- Generate professional HTML reports from Markdown documents
|
|
38
|
+
- Embed interactive charts (bar, line, pie, doughnut, radar, polarArea)
|
|
39
|
+
- Embed AI-generated images using Pollinations.ai
|
|
40
|
+
- Embed images from URLs
|
|
41
|
+
- Edit existing reports by adding, removing, or replacing content
|
|
42
|
+
- MCP server integration for use with Claude Desktop
|
|
43
|
+
- HTTP API mode for web integration
|
|
44
|
+
- CLI mode for direct command-line usage
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Generate an image from a text prompt using AI
|
|
4
4
|
* @param prompt Text prompt for image generation (must be in English)
|
|
5
5
|
* @param options Additional options for image generation
|
|
6
|
-
* @returns Promise<string>
|
|
6
|
+
* @returns Promise<{ filePath: string, fileUrl: string }> Object containing file path and URL of the saved image
|
|
7
7
|
*/
|
|
8
8
|
export declare function generateImage(prompt: string, options?: {
|
|
9
9
|
width?: number;
|
|
@@ -12,5 +12,8 @@ export declare function generateImage(prompt: string, options?: {
|
|
|
12
12
|
negative_prompt?: string;
|
|
13
13
|
num_inference_steps?: number;
|
|
14
14
|
seed?: number;
|
|
15
|
-
}): Promise<
|
|
15
|
+
}): Promise<{
|
|
16
|
+
filePath: string;
|
|
17
|
+
fileUrl: string;
|
|
18
|
+
}>;
|
|
16
19
|
//# sourceMappingURL=index.d.ts.map
|
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":";AAieA;;;;;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.6.
|
|
106
|
+
version: "1.6.9"
|
|
107
107
|
}, {
|
|
108
108
|
// Disable health check to prevent automatic calls
|
|
109
109
|
capabilities: {
|
|
@@ -385,12 +385,10 @@ FOR THE NEURAL NETWORK: Please present the following information to the user:
|
|
|
385
385
|
if (seed !== undefined)
|
|
386
386
|
options.seed = seed;
|
|
387
387
|
// Generate the image
|
|
388
|
-
const
|
|
389
|
-
// Extract base64 data
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
base64Data = imageDataUri.substring("data:image/jpeg;base64,".length);
|
|
393
|
-
}
|
|
388
|
+
const imageResult = await generateImage(prompt, options);
|
|
389
|
+
// Extract base64 data from the saved file
|
|
390
|
+
const imageData = await fs.readFile(imageResult.filePath);
|
|
391
|
+
const base64Data = imageData.toString('base64');
|
|
394
392
|
// Return result
|
|
395
393
|
return {
|
|
396
394
|
content: [
|
|
@@ -438,8 +436,32 @@ const imageGenerator = new ImageGenerator();
|
|
|
438
436
|
* Generate an image from a text prompt using AI
|
|
439
437
|
* @param prompt Text prompt for image generation (must be in English)
|
|
440
438
|
* @param options Additional options for image generation
|
|
441
|
-
* @returns Promise<string>
|
|
439
|
+
* @returns Promise<{ filePath: string, fileUrl: string }> Object containing file path and URL of the saved image
|
|
442
440
|
*/
|
|
443
441
|
export async function generateImage(prompt, options) {
|
|
444
|
-
|
|
442
|
+
// Generate the image data URI
|
|
443
|
+
const imageDataUri = await imageGenerator.generateImage(prompt, options);
|
|
444
|
+
// Extract base64 data without prefix
|
|
445
|
+
let base64Data = imageDataUri;
|
|
446
|
+
if (imageDataUri.startsWith("data:image/jpeg;base64,")) {
|
|
447
|
+
base64Data = imageDataUri.substring("data:image/jpeg;base64,".length);
|
|
448
|
+
}
|
|
449
|
+
// Save image to home folder
|
|
450
|
+
const homeDir = os.homedir();
|
|
451
|
+
const imagesDir = path.join(homeDir, 'generated_images');
|
|
452
|
+
await fs.ensureDir(imagesDir);
|
|
453
|
+
// Create unique filename
|
|
454
|
+
const timestamp = Date.now();
|
|
455
|
+
const filename = `generated-image-${timestamp}.jpeg`;
|
|
456
|
+
const outputPath = path.join(imagesDir, filename);
|
|
457
|
+
// Save image to file
|
|
458
|
+
const imageBuffer = Buffer.from(base64Data, 'base64');
|
|
459
|
+
await fs.writeFile(outputPath, imageBuffer);
|
|
460
|
+
// Create file URL
|
|
461
|
+
const fileUrl = pathToFileURL(outputPath).href;
|
|
462
|
+
// Return both file path and URL
|
|
463
|
+
return {
|
|
464
|
+
filePath: outputPath,
|
|
465
|
+
fileUrl: fileUrl
|
|
466
|
+
};
|
|
445
467
|
}
|
package/package.json
CHANGED
package/publish.sh
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Script to publish @vint.tri/report_gen_mcp package version 1.6.9
|
|
4
|
+
|
|
5
|
+
echo "Publishing @vint.tri/report_gen_mcp version 1.6.9"
|
|
6
|
+
|
|
7
|
+
# Check if we're logged into npm
|
|
8
|
+
echo "Checking npm login status..."
|
|
9
|
+
npm whoami
|
|
10
|
+
|
|
11
|
+
if [ $? -ne 0 ]; then
|
|
12
|
+
echo "Error: Not logged into npm. Please run 'npm login' first."
|
|
13
|
+
exit 1
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
# Check current version
|
|
17
|
+
echo "Checking current package version..."
|
|
18
|
+
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
19
|
+
echo "Current version: $CURRENT_VERSION"
|
|
20
|
+
|
|
21
|
+
if [ "$CURRENT_VERSION" != "1.6.9" ]; then
|
|
22
|
+
echo "Error: Package version is not 1.6.9. Please update package.json first."
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
# Run build to ensure we have the latest compiled files
|
|
27
|
+
echo "Building project..."
|
|
28
|
+
npm run build
|
|
29
|
+
|
|
30
|
+
if [ $? -ne 0 ]; then
|
|
31
|
+
echo "Error: Build failed. Please fix build issues before publishing."
|
|
32
|
+
exit 1
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
# Publish to npm
|
|
36
|
+
echo "Publishing to npm..."
|
|
37
|
+
npm publish --access public
|
|
38
|
+
|
|
39
|
+
if [ $? -eq 0 ]; then
|
|
40
|
+
echo "Successfully published @vint.tri/report_gen_mcp version 1.6.9"
|
|
41
|
+
echo "You can now install it using: npm install @vint.tri/report_gen_mcp@1.6.9"
|
|
42
|
+
else
|
|
43
|
+
echo "Error: Failed to publish package"
|
|
44
|
+
exit 1
|
|
45
|
+
fi
|