bitbank-lab-mcp 0.1.0 → 0.1.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.
@@ -1,12 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawn } from 'node:child_process';
3
+ import { createRequire } from 'node:module';
3
4
  import { dirname, resolve } from 'node:path';
4
- import { fileURLToPath } from 'node:url';
5
+ import { fileURLToPath, pathToFileURL } from 'node:url';
5
6
 
6
7
  const __dirname = dirname(fileURLToPath(import.meta.url));
7
8
  const serverPath = resolve(__dirname, '..', 'src', 'server.ts');
8
9
 
9
- const child = spawn(process.execPath, ['--import', 'tsx', serverPath], {
10
+ const require = createRequire(import.meta.url);
11
+ const tsxImportUrl = pathToFileURL(require.resolve('tsx')).href;
12
+
13
+ const child = spawn(process.execPath, ['--import', tsxImportUrl, serverPath], {
10
14
  stdio: 'inherit',
11
15
  });
12
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbank-lab-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Experimental MCP server for bitbank — botters lab community edition. Market data, technical analysis, charting, and Private API trading tools.",
5
5
  "type": "module",
6
6
  "bin": {