@vint.tri/report_gen_mcp 1.6.4 → 1.6.5
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.4.md +24 -0
- package/PUBLICATION_CONFIRMATION_V1.6.5.md +29 -0
- package/README.md +1 -2
- package/VERSION_1.6.4_RELEASE_NOTES.md +27 -0
- package/VERSION_1.6.5_RELEASE_NOTES.md +19 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -1
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Publication Confirmation - Version 1.6.4
|
|
2
|
+
|
|
3
|
+
This confirms that version 1.6.4 of the @vint.tri/report_gen_mcp package has been successfully published to the npm registry.
|
|
4
|
+
|
|
5
|
+
## Details
|
|
6
|
+
- Package: @vint.tri/report_gen_mcp
|
|
7
|
+
- Version: 1.6.4
|
|
8
|
+
- Publish Date: September 1, 2025
|
|
9
|
+
- Status: ✅ Published Successfully
|
|
10
|
+
|
|
11
|
+
## Key Changes in This Release
|
|
12
|
+
- Added `generate-image` tool to the main MCP server for generating images from text prompts using AI
|
|
13
|
+
- Enhanced image generation capabilities with customizable parameters
|
|
14
|
+
- Updated documentation to reflect new features
|
|
15
|
+
|
|
16
|
+
## Verification
|
|
17
|
+
The package can be installed using:
|
|
18
|
+
```bash
|
|
19
|
+
npm install @vint.tri/report_gen_mcp@1.6.4
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or to install the latest version:
|
|
23
|
+
```bash
|
|
24
|
+
npm install @vint.tri/report_gen_mcp
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Publication Confirmation - Version 1.6.5
|
|
2
|
+
|
|
3
|
+
## Package Information
|
|
4
|
+
- **Name**: @vint.tri/report_gen_mcp
|
|
5
|
+
- **Version**: 1.6.5
|
|
6
|
+
- **Description**: CLI tool for generating HTML reports with embedded charts and images
|
|
7
|
+
|
|
8
|
+
## Publication Status
|
|
9
|
+
✅ Successfully published to npm registry
|
|
10
|
+
|
|
11
|
+
## Changes Included
|
|
12
|
+
- Updated version numbers across all files for consistency
|
|
13
|
+
- Prepared package for distribution
|
|
14
|
+
|
|
15
|
+
## Access
|
|
16
|
+
Users can now install this version using:
|
|
17
|
+
```bash
|
|
18
|
+
npm install @vint.tri/report_gen_mcp@1.6.5
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or the latest version:
|
|
22
|
+
```bash
|
|
23
|
+
npm install @vint.tri/report_gen_mcp@latest
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Verification
|
|
27
|
+
- Package is publicly available on npm registry
|
|
28
|
+
- All version references have been updated consistently
|
|
29
|
+
- Ready for use in Claude Desktop and other environments
|
package/README.md
CHANGED
|
@@ -115,8 +115,7 @@ report_gen_mcp
|
|
|
115
115
|
Available tools:
|
|
116
116
|
1. `generate-report`: Generate an HTML report with embedded charts and images
|
|
117
117
|
2. `edit-report`: Edit an existing HTML report by adding or removing content
|
|
118
|
-
3. `generate-image`: Generate an image
|
|
119
|
-
4. `edit-image`: Edit an existing image using AI based on a text prompt
|
|
118
|
+
3. `generate-image`: Generate an image from a text prompt using AI
|
|
120
119
|
|
|
121
120
|
## Image Generation and Editing
|
|
122
121
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Version 1.6.4 Release Notes
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
This release adds the `generate-image` tool to the main MCP server and ensures consistency across all version references in the codebase.
|
|
5
|
+
|
|
6
|
+
## New Features
|
|
7
|
+
- Added `generate-image` tool to the main MCP server for generating images from text prompts using AI
|
|
8
|
+
- Enhanced image generation capabilities with customizable parameters (width, height, guidance scale, etc.)
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
- Updated version number in package.json from 1.6.3 to 1.6.4
|
|
12
|
+
- Updated version number in src/index.ts from 1.6.3 to 1.6.4
|
|
13
|
+
- Updated version number in dist/index.js from 1.6.3 to 1.6.4
|
|
14
|
+
- Added `generate-image` tool registration in the main MCP server
|
|
15
|
+
- Updated README.md to reflect the new tool availability
|
|
16
|
+
- Published to npm registry as @vint.tri/report_gen_mcp@1.6.4
|
|
17
|
+
|
|
18
|
+
## Files Modified
|
|
19
|
+
- package.json
|
|
20
|
+
- src/index.ts
|
|
21
|
+
- dist/index.js
|
|
22
|
+
- README.md
|
|
23
|
+
- VERSION_1.6.4_RELEASE_NOTES.md
|
|
24
|
+
|
|
25
|
+
## Build Status
|
|
26
|
+
✅ Successfully built with TypeScript compiler
|
|
27
|
+
✅ Successfully published to npm
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Version 1.6.5 Release Notes
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
This release focuses on version consistency across all files and prepares the package for publishing to npm.
|
|
5
|
+
|
|
6
|
+
## Changes
|
|
7
|
+
- Updated version number in package.json from 1.6.4 to 1.6.5
|
|
8
|
+
- Updated version number in src/index.ts from 1.6.4 to 1.6.5
|
|
9
|
+
- Updated version number in dist/index.js from 1.6.4 to 1.6.5
|
|
10
|
+
|
|
11
|
+
## Files Modified
|
|
12
|
+
- package.json
|
|
13
|
+
- src/index.ts
|
|
14
|
+
- dist/index.js
|
|
15
|
+
- VERSION_1.6.5_RELEASE_NOTES.md
|
|
16
|
+
|
|
17
|
+
## Build Status
|
|
18
|
+
✅ Successfully built with TypeScript compiler
|
|
19
|
+
✅ Ready for publishing to npm
|
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":";AAmeA;;;;;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,MAAM,CAAC,CAElB"}
|
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.5"
|
|
107
107
|
}, {
|
|
108
108
|
// Disable health check to prevent automatic calls
|
|
109
109
|
capabilities: {
|
|
@@ -339,6 +339,85 @@ FOR THE NEURAL NETWORK: Please present the following information to the user:
|
|
|
339
339
|
throw new Error(`Error editing report: ${error.message}`);
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
|
+
// Register the generate-image tool
|
|
343
|
+
mcpServer.registerTool("generate-image", {
|
|
344
|
+
description: "Generate an image from a text prompt using AI",
|
|
345
|
+
inputSchema: {
|
|
346
|
+
prompt: z.string().describe("Text prompt for image generation (must be in English)"),
|
|
347
|
+
width: z.number().optional().describe("Width of the image (128-2048 pixels)"),
|
|
348
|
+
height: z.number().optional().describe("Height of the image (128-2048 pixels)"),
|
|
349
|
+
guidance_scale: z.number().optional().describe("Strength of prompt following (1.0-20.0)"),
|
|
350
|
+
negative_prompt: z.string().optional().describe("Negative prompt (what NOT to include in the image)"),
|
|
351
|
+
num_inference_steps: z.number().optional().describe("Number of generation steps (1-50)"),
|
|
352
|
+
seed: z.number().optional().describe("Seed for reproducibility (0 = random)")
|
|
353
|
+
},
|
|
354
|
+
}, async (params) => {
|
|
355
|
+
try {
|
|
356
|
+
// Handle case where arguments might be sent as a JSON string
|
|
357
|
+
let processedParams = params;
|
|
358
|
+
if (typeof params === 'string') {
|
|
359
|
+
try {
|
|
360
|
+
processedParams = JSON.parse(params);
|
|
361
|
+
}
|
|
362
|
+
catch (parseError) {
|
|
363
|
+
throw new Error('Invalid JSON string in arguments');
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
else if (params.arguments && typeof params.arguments === 'object') {
|
|
367
|
+
processedParams = params.arguments;
|
|
368
|
+
}
|
|
369
|
+
const { prompt, width, height, guidance_scale, negative_prompt, num_inference_steps, seed } = processedParams;
|
|
370
|
+
if (!prompt) {
|
|
371
|
+
throw new Error("Parameter 'prompt' is required");
|
|
372
|
+
}
|
|
373
|
+
// Prepare options for generateImage function
|
|
374
|
+
const options = {};
|
|
375
|
+
if (width !== undefined)
|
|
376
|
+
options.width = width;
|
|
377
|
+
if (height !== undefined)
|
|
378
|
+
options.height = height;
|
|
379
|
+
if (guidance_scale !== undefined)
|
|
380
|
+
options.guidance_scale = guidance_scale;
|
|
381
|
+
if (negative_prompt !== undefined)
|
|
382
|
+
options.negative_prompt = negative_prompt;
|
|
383
|
+
if (num_inference_steps !== undefined)
|
|
384
|
+
options.num_inference_steps = num_inference_steps;
|
|
385
|
+
if (seed !== undefined)
|
|
386
|
+
options.seed = seed;
|
|
387
|
+
// Generate the image
|
|
388
|
+
const imageDataUri = await generateImage(prompt, options);
|
|
389
|
+
// Extract base64 data without prefix
|
|
390
|
+
let base64Data = imageDataUri;
|
|
391
|
+
if (imageDataUri.startsWith("data:image/jpeg;base64,")) {
|
|
392
|
+
base64Data = imageDataUri.substring("data:image/jpeg;base64,".length);
|
|
393
|
+
}
|
|
394
|
+
// Return result
|
|
395
|
+
return {
|
|
396
|
+
content: [
|
|
397
|
+
{
|
|
398
|
+
type: "text",
|
|
399
|
+
text: `✅ Image successfully generated from prompt: '${prompt}'`
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
type: "image",
|
|
403
|
+
data: base64Data,
|
|
404
|
+
mimeType: "image/jpeg"
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
catch (error) {
|
|
410
|
+
// Return error as text content
|
|
411
|
+
return {
|
|
412
|
+
content: [
|
|
413
|
+
{
|
|
414
|
+
type: "text",
|
|
415
|
+
text: `❌ Error generating image: ${error.message}`
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
});
|
|
342
421
|
async function main() {
|
|
343
422
|
const transport = new StdioServerTransport();
|
|
344
423
|
await mcpServer.connect(transport);
|