@mixio-pro/kalaasetu-mcp 1.0.0 → 1.0.1

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/cli.js ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Wrapper to run with Bun if available, otherwise Node
4
+ import { spawn } from 'child_process';
5
+ import { fileURLToPath } from 'url';
6
+ import { dirname, join } from 'path';
7
+
8
+ const __filename = fileURLToPath(import.meta.url);
9
+ const __dirname = dirname(__filename);
10
+ const indexPath = join(__dirname, '..', 'src', 'index.ts');
11
+
12
+ // Try to run with Bun first
13
+ const bunProcess = spawn('bun', [indexPath], {
14
+ stdio: 'inherit',
15
+ shell: true
16
+ });
17
+
18
+ bunProcess.on('error', (error) => {
19
+ if (error.code === 'ENOENT') {
20
+ console.error('Error: This package requires Bun to be installed.');
21
+ console.error('Please install Bun from https://bun.sh');
22
+ console.error('');
23
+ console.error('Install with:');
24
+ console.error(' curl -fsSL https://bun.sh/install | bash');
25
+ process.exit(1);
26
+ } else {
27
+ throw error;
28
+ }
29
+ });
30
+
31
+ bunProcess.on('exit', (code) => {
32
+ process.exit(code || 0);
33
+ });
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@mixio-pro/kalaasetu-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A powerful Model Context Protocol server providing AI tools for content generation and analysis",
5
5
  "type": "module",
6
6
  "module": "src/index.ts",
7
7
  "main": "src/index.ts",
8
8
  "bin": {
9
- "kalaasetu-mcp": "./src/index.ts"
9
+ "kalaasetu-mcp": "./bin/cli.js"
10
10
  },
11
11
  "files": [
12
12
  "src",
13
+ "bin",
13
14
  "README.md",
14
15
  "LICENSE"
15
16
  ],
package/src/index.ts CHANGED
File without changes