@mcpinv/cli 0.1.5 → 0.1.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/dist/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from 'module';
2
3
  import { program } from 'commander';
4
+ const require = createRequire(import.meta.url);
5
+ const { version } = require('../package.json');
3
6
  import { searchCommand } from './commands/search.js';
4
7
  import { installCommand } from './commands/install.js';
5
8
  import { removeCommand } from './commands/remove.js';
@@ -10,7 +13,7 @@ import { migrateCommand } from './commands/migrate.js';
10
13
  program
11
14
  .name('mcpinv')
12
15
  .description('Install, run and host MCP servers')
13
- .version('0.1.4');
16
+ .version(version);
14
17
  program.addCommand(searchCommand());
15
18
  program.addCommand(installCommand());
16
19
  program.addCommand(removeCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpinv/cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Install, run and host MCP servers — invoke anything",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from 'module'
2
3
  import { program } from 'commander'
4
+
5
+ const require = createRequire(import.meta.url)
6
+ const { version } = require('../package.json')
3
7
  import { searchCommand } from './commands/search.js'
4
8
  import { installCommand } from './commands/install.js'
5
9
  import { removeCommand } from './commands/remove.js'
@@ -11,7 +15,7 @@ import { migrateCommand } from './commands/migrate.js'
11
15
  program
12
16
  .name('mcpinv')
13
17
  .description('Install, run and host MCP servers')
14
- .version('0.1.4')
18
+ .version(version)
15
19
 
16
20
  program.addCommand(searchCommand())
17
21
  program.addCommand(installCommand())