siliconflow-image-mcp 1.0.4 → 1.0.6
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/bin/siliconflow-image-mcp.js +17 -0
- package/dist/package.json +1 -1
- package/package.json +2 -2
- package/bin/siliconflow-image-mcp +0 -30
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Universal launcher - works on Windows, Linux, macOS
|
|
3
|
+
const { spawn } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const { existsSync } = require('fs');
|
|
6
|
+
|
|
7
|
+
const distPath = path.join(__dirname, '..', 'dist', 'index.js');
|
|
8
|
+
|
|
9
|
+
if (!existsSync(distPath)) {
|
|
10
|
+
console.error('Error: dist/index.js not found at', distPath);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
spawn(process.execPath, [distPath, ...process.argv.slice(2)], {
|
|
15
|
+
stdio: 'inherit',
|
|
16
|
+
windowsHide: true
|
|
17
|
+
}).on('exit', (code) => process.exit(code));
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siliconflow-image-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "MCP server for image generation and editing using SiliconFlow - Optimized for China users",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"siliconflow-image-mcp": "bin/siliconflow-image-mcp"
|
|
8
|
+
"siliconflow-image-mcp": "bin/siliconflow-image-mcp.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// SiliconFlow Image MCP - Universal launcher for all platforms
|
|
3
|
-
// Works on Windows (via npm wrapper), Linux, macOS
|
|
4
|
-
|
|
5
|
-
import { spawn } from 'child_process';
|
|
6
|
-
import { fileURLToPath } from 'url';
|
|
7
|
-
import { dirname, join } from 'path';
|
|
8
|
-
import { existsSync } from 'fs';
|
|
9
|
-
|
|
10
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
11
|
-
const __dirname = dirname(__filename);
|
|
12
|
-
|
|
13
|
-
// Find dist/index.js relative to this file
|
|
14
|
-
const distPath = join(__dirname, '..', 'dist', 'index.js');
|
|
15
|
-
|
|
16
|
-
if (!existsSync(distPath)) {
|
|
17
|
-
console.error('Error: Could not find siliconflow-image-mcp dist/index.js');
|
|
18
|
-
console.error('Searched in:', distPath);
|
|
19
|
-
process.exit(1);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Run the main program
|
|
23
|
-
const child = spawn(process.execPath, [distPath, ...process.argv.slice(2)], {
|
|
24
|
-
stdio: 'inherit',
|
|
25
|
-
windowsHide: true
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
child.on('exit', (code) => {
|
|
29
|
-
process.exit(code);
|
|
30
|
-
});
|