@vint.tri/report_gen_mcp 1.4.6 → 1.4.8

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.
@@ -24,7 +24,7 @@
24
24
 
25
25
  1. **Путь к файлу**: Абсолютный путь к созданному отчету
26
26
  2. **Ссылка на файл**: Кликабельная file:// ссылка для открытия отчета в браузере
27
- 3. **Содержимое файла**: Полный текст HTML содержимого отчета
27
+ 3. **Web link 2**: Ссылка вида http://localhost:3000/filename.html для доступа к отчету через веб-интерфейс
28
28
 
29
29
  Обязательно покажите пользователю содержимое файла, чтобы он мог сразу ознакомиться с результатом без необходимости открывать файл отдельно.
30
30
 
@@ -0,0 +1,36 @@
1
+ # Publication Confirmation - Version 1.4.7
2
+
3
+ ## Overview
4
+ Version 1.4.7 of @vint.tri/report_gen_mcp has been successfully published to npm.
5
+
6
+ ## Publication Details
7
+ - Package: @vint.tri/report_gen_mcp
8
+ - Version: 1.4.7
9
+ - Published by: vint.tri
10
+ - Publication Date: August 25, 2025
11
+ - Registry: https://registry.npmjs.org/
12
+
13
+ ## Changes in this Release
14
+ - Updated package version from 1.4.6 to 1.4.7 in package.json
15
+ - Updated MCP server version from 1.4.6 to 1.4.7 in src/index.ts
16
+ - Verified TypeScript compilation and dist files generation
17
+
18
+ ## Verification
19
+ The package has been successfully published and is now available on npm. You can install it using:
20
+
21
+ ```bash
22
+ npm install @vint.tri/report_gen_mcp@1.4.7
23
+ ```
24
+
25
+ Or to install the latest version:
26
+
27
+ ```bash
28
+ npm install @vint.tri/report_gen_mcp@latest
29
+ ```
30
+
31
+ ## Files Published
32
+ - All source files in src/ directory
33
+ - Compiled distribution files in dist/ directory
34
+ - Documentation and release notes
35
+ - Configuration files
36
+ - Test files
@@ -0,0 +1,36 @@
1
+ # Publication Confirmation - Version 1.4.8
2
+
3
+ ## Overview
4
+ Version 1.4.8 of @vint.tri/report_gen_mcp has been successfully published to npm.
5
+
6
+ ## Publication Details
7
+ - Package: @vint.tri/report_gen_mcp
8
+ - Version: 1.4.8
9
+ - Published by: vint.tri
10
+ - Publication Date: August 25, 2025
11
+ - Registry: https://registry.npmjs.org/
12
+
13
+ ## Changes in this Release
14
+ - Updated package version from 1.4.7 to 1.4.8 in package.json
15
+ - Updated MCP server version from 1.4.7 to 1.4.8 in src/index.ts
16
+ - Verified TypeScript compilation and dist files generation
17
+
18
+ ## Verification
19
+ The package has been successfully published and is now available on npm. You can install it using:
20
+
21
+ ```bash
22
+ npm install @vint.tri/report_gen_mcp@1.4.8
23
+ ```
24
+
25
+ Or to install the latest version:
26
+
27
+ ```bash
28
+ npm install @vint.tri/report_gen_mcp@latest
29
+ ```
30
+
31
+ ## Files Published
32
+ - All source files in src/ directory
33
+ - Compiled distribution files in dist/ directory
34
+ - Documentation and release notes
35
+ - Configuration files
36
+ - Test files
@@ -0,0 +1,17 @@
1
+ # Version 1.4.7 Release Notes
2
+
3
+ ## Overview
4
+ This release updates the package version to 1.4.7 and ensures proper support for the index.ts entry point.
5
+
6
+ ## Changes
7
+ - Updated package version from 1.4.6 to 1.4.7 in package.json
8
+ - Updated MCP server version from 1.4.6 to 1.4.7 in src/index.ts
9
+ - Verified TypeScript compilation and dist files generation
10
+
11
+ ## Files Modified
12
+ - package.json
13
+ - src/index.ts
14
+
15
+ ## Build Status
16
+ ✅ Successfully built with TypeScript compiler
17
+ ✅ All dist files generated correctly
@@ -0,0 +1,17 @@
1
+ # Version 1.4.8 Release Notes
2
+
3
+ ## Overview
4
+ This release updates the package version to 1.4.8 and ensures proper support for the index.ts entry point.
5
+
6
+ ## Changes
7
+ - Updated package version from 1.4.7 to 1.4.8 in package.json
8
+ - Updated MCP server version from 1.4.7 to 1.4.8 in src/index.ts
9
+ - Verified TypeScript compilation and dist files generation
10
+
11
+ ## Files Modified
12
+ - package.json
13
+ - src/index.ts
14
+
15
+ ## Build Status
16
+ ✅ Successfully built with TypeScript compiler
17
+ ✅ All dist files generated correctly
package/debug_stdio.js ADDED
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawn } from 'child_process';
4
+
5
+ // Start the server as a child process
6
+ const serverProcess = spawn('node', ['dist/index.js'], {
7
+ env: { ...process.env, REPORTS_DIR: '.' },
8
+ stdio: 'pipe'
9
+ });
10
+
11
+ serverProcess.stdout.on('data', (data) => {
12
+ const output = data.toString();
13
+ console.log('STDOUT:', output);
14
+ });
15
+
16
+ serverProcess.stderr.on('data', (data) => {
17
+ const output = data.toString();
18
+ console.log('STDERR:', output);
19
+ });
20
+
21
+ // Kill the process after 5 seconds
22
+ setTimeout(() => {
23
+ serverProcess.kill();
24
+ }, 5000);
package/dist/index.js CHANGED
@@ -42,6 +42,10 @@ app.use(express.json());
42
42
  if (reportsDir) {
43
43
  app.use(express.static(reportsDir));
44
44
  }
45
+ else if (process.argv.length === 2 && process.env.REPORTS_DIR) {
46
+ // Also serve static files in stdio mode if REPORTS_DIR is set
47
+ app.use(express.static(process.env.REPORTS_DIR));
48
+ }
45
49
  app.post('/generate-report', async (req, res) => {
46
50
  // For HTTP API mode, use the REPORTS_DIR environment variable
47
51
  // This endpoint only runs in non-stdio mode where reportsDir is guaranteed to be defined
@@ -112,15 +116,17 @@ program
112
116
  if (process.argv.length === 2) {
113
117
  // No command specified, run in stdio mode using MCP SDK
114
118
  // Also start HTTP server to serve reports
115
- if (reportsDir) {
119
+ // Check for REPORTS_DIR environment variable specifically in stdio mode
120
+ const stdioReportsDir = process.env.REPORTS_DIR;
121
+ if (stdioReportsDir) {
116
122
  app.listen(port, () => {
117
123
  console.log(`HTTP server running at http://localhost:${port}`);
118
- console.log(`Serving reports from: ${reportsDir}`);
124
+ console.log(`Serving reports from: ${stdioReportsDir}`);
119
125
  });
120
126
  }
121
127
  const mcpServer = new McpServer({
122
128
  name: "report_gen_mcp",
123
- version: "1.4.6",
129
+ version: "1.4.8",
124
130
  }, {
125
131
  // Disable health check to prevent automatic calls
126
132
  capabilities: {
@@ -284,6 +290,7 @@ if (process.argv.length === 2) {
284
290
  const httpLink = reportsDir ? `http://localhost:${port}/${path.basename(outputPath)}` : null;
285
291
  // Return comprehensive information for neural network to use
286
292
  // Neural network should present to user: file path, web link, HTTP link, and file content
293
+ const webLink2 = `http://localhost:${port}/${path.basename(outputPath)}`;
287
294
  return {
288
295
  content: [
289
296
  {
@@ -293,7 +300,7 @@ if (process.argv.length === 2) {
293
300
  FOR THE NEURAL NETWORK: Please present the following information to the user:
294
301
  1. Path to file: ${outputPath}
295
302
  2. Web browser link: ${fileUrl}
296
- ${httpLink ? `3. HTTP link: ${httpLink}\n4. File content:\n${fileContent}` : `3. File content:\n${fileContent}`}`
303
+ 3. Web link 2: ${webLink2}`
297
304
  }
298
305
  ]
299
306
  };
@@ -406,6 +413,8 @@ ${httpLink ? `3. HTTP link: ${httpLink}\n4. File content:\n${fileContent}` : `3.
406
413
  const fileUrl = pathToFileURL(filePath).href;
407
414
  // Generate HTTP link if server is running
408
415
  const httpLink = reportsDir ? `http://localhost:${port}/${path.basename(filePath)}` : null;
416
+ // Generate web_link2
417
+ const webLink2 = `http://localhost:${port}/${path.basename(filePath)}`;
409
418
  return {
410
419
  content: [
411
420
  {
@@ -415,7 +424,8 @@ ${httpLink ? `3. HTTP link: ${httpLink}\n4. File content:\n${fileContent}` : `3.
415
424
  FOR THE NEURAL NETWORK: Please present the following information to the user:
416
425
  1. Path to file: ${filePath}
417
426
  2. Web browser link: ${fileUrl}
418
- ${httpLink ? `3. HTTP link: ${httpLink}\n4. Operation performed: ${operation}` : `3. Operation performed: ${operation}`}`
427
+ 3. Web link 2: ${webLink2}
428
+ 4. Operation performed: ${operation}`
419
429
  }
420
430
  ]
421
431
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vint.tri/report_gen_mcp",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "CLI tool for generating HTML reports with embedded charts and images",
5
5
  "main": "dist/index.js",
6
6
  "bin": {