@vint.tri/report_gen_mcp 1.0.8 → 1.0.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.
@@ -6,7 +6,7 @@ console.log('🎭 Simulating Claude Desktop interaction...\n');
6
6
  async function simulateListTools() {
7
7
  console.log('1️⃣ Simulating mcp:list-tools call...');
8
8
 
9
- const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.7'], {
9
+ const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.8'], {
10
10
  stdio: ['pipe', 'pipe', 'pipe']
11
11
  });
12
12
 
@@ -74,7 +74,7 @@ async function simulateListTools() {
74
74
  async function simulateHealthCheck() {
75
75
  console.log('\n2️⃣ Simulating health check call...');
76
76
 
77
- const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.7'], {
77
+ const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.8'], {
78
78
  stdio: ['pipe', 'pipe', 'pipe']
79
79
  });
80
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vint.tri/report_gen_mcp",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "CLI tool for generating HTML reports with embedded charts",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -8,7 +8,7 @@ function testHealthCheck() {
8
8
  return new Promise((resolve, reject) => {
9
9
  console.log('\n1️⃣ Testing health check...');
10
10
 
11
- const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.7'], {
11
+ const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.8'], {
12
12
  stdio: ['pipe', 'pipe', 'pipe']
13
13
  });
14
14
 
@@ -51,7 +51,7 @@ function testReportGeneration() {
51
51
  return new Promise((resolve, reject) => {
52
52
  console.log('\n2️⃣ Testing report generation...');
53
53
 
54
- const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.7'], {
54
+ const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.8'], {
55
55
  stdio: ['pipe', 'pipe', 'pipe']
56
56
  });
57
57
 
@@ -148,7 +148,7 @@ async function runTests() {
148
148
  "tags": [],
149
149
  "command": "npx",
150
150
  "args": [
151
- "@vint.tri/report_gen_mcp@1.0.7"
151
+ "@vint.tri/report_gen_mcp@1.0.8"
152
152
  ]
153
153
  }
154
154
  }, null, 2));
@@ -3,7 +3,7 @@ const { spawn } = require('child_process');
3
3
  console.log('Testing stdio mode with npx...');
4
4
 
5
5
  // Test the stdio mode with npx and the latest version
6
- const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.7'], {
6
+ const child = spawn('npx', ['-y', '@vint.tri/report_gen_mcp@1.0.8'], {
7
7
  stdio: ['pipe', 'pipe', 'pipe']
8
8
  });
9
9
 
@@ -0,0 +1,34 @@
1
+ const { spawn } = require('child_process');
2
+
3
+ console.log('Testing local stdio mode...');
4
+
5
+ const child = spawn('node', ['dist/index.js'], {
6
+ stdio: ['pipe', 'pipe', 'pipe']
7
+ });
8
+
9
+ let stdoutData = '';
10
+
11
+ child.stdout.on('data', (data) => {
12
+ stdoutData += data.toString();
13
+ });
14
+
15
+ child.on('close', (code) => {
16
+ console.log(`Exit code: ${code}`);
17
+ console.log(`Response: ${stdoutData}`);
18
+
19
+ try {
20
+ const result = JSON.parse(stdoutData.trim());
21
+ console.log('Parsed result:', result);
22
+ } catch (e) {
23
+ console.log('Error parsing JSON:', e.message);
24
+ }
25
+ });
26
+
27
+ // Send list-tools request
28
+ const listToolsRequest = {
29
+ method: 'mcp:list-tools'
30
+ };
31
+
32
+ console.log(`Sending: ${JSON.stringify(listToolsRequest)}`);
33
+ child.stdin.write(JSON.stringify(listToolsRequest));
34
+ child.stdin.end();