@apresai/gimage-mcp 1.2.92 → 1.2.99

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/bin/gimage-mcp.js +0 -55
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apresai/gimage-mcp",
3
- "version": "1.2.92",
3
+ "version": "1.2.99",
4
4
  "description": "MCP server for AI-powered image generation and processing with gimage",
5
5
  "keywords": [
6
6
  "mcp",
package/bin/gimage-mcp.js DELETED
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { spawn } = require('child_process');
4
- const path = require('path');
5
- const fs = require('fs');
6
-
7
- function getBinaryPath() {
8
- const platform = process.platform;
9
- const ext = platform === 'win32' ? '.exe' : '';
10
- const binaryName = `gimage${ext}`;
11
-
12
- // Try package-installed binary first
13
- const packagePath = path.join(__dirname, '..', 'bin', binaryName);
14
- if (fs.existsSync(packagePath)) {
15
- return packagePath;
16
- }
17
-
18
- // Fall back to system PATH (if gimage is installed globally via Homebrew, etc.)
19
- return 'gimage';
20
- }
21
-
22
- function main() {
23
- const binaryPath = getBinaryPath();
24
-
25
- // Spawn gimage serve command
26
- const child = spawn(binaryPath, ['serve'], {
27
- stdio: 'inherit',
28
- env: process.env
29
- });
30
-
31
- child.on('error', (error) => {
32
- console.error('Failed to start gimage MCP server:', error.message);
33
- console.error('\nPlease ensure gimage is installed:');
34
- console.error(' npm install -g @apresai/gimage-mcp');
35
- console.error(' or');
36
- console.error(' brew install gimage');
37
- console.error('\nFor manual installation, see: https://github.com/apresai/gimage');
38
- process.exit(1);
39
- });
40
-
41
- child.on('exit', (code) => {
42
- process.exit(code || 0);
43
- });
44
-
45
- // Handle signals for graceful shutdown
46
- process.on('SIGINT', () => {
47
- child.kill('SIGINT');
48
- });
49
-
50
- process.on('SIGTERM', () => {
51
- child.kill('SIGTERM');
52
- });
53
- }
54
-
55
- main();