mcp-compress-router 1.2.0 → 1.3.0
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/build/index.js +4 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import * as path from 'node:path';
|
|
4
|
+
import { createRequire } from 'node:module';
|
|
4
5
|
import dotenv from 'dotenv';
|
|
5
6
|
import { Command } from 'commander';
|
|
6
7
|
import { resolveConfigDir } from './services/index.js';
|
|
7
8
|
import { Logger } from './utils/index.js';
|
|
8
9
|
import { registerAllCommands } from './cli/register-commands.js';
|
|
10
|
+
const { version } = createRequire(import.meta.url)('../package.json');
|
|
9
11
|
async function main() {
|
|
10
12
|
// Load .env from the config directory before any config resolution
|
|
11
13
|
// or env var expansion. `quiet` suppresses dotenv's startup log line.
|
|
@@ -16,7 +18,8 @@ async function main() {
|
|
|
16
18
|
const program = new Command();
|
|
17
19
|
program
|
|
18
20
|
.name('mcp-compress-router')
|
|
19
|
-
.description('Compress all connected MCP servers into a single router MCP')
|
|
21
|
+
.description('Compress all connected MCP servers into a single router MCP')
|
|
22
|
+
.version(version);
|
|
20
23
|
registerAllCommands(program);
|
|
21
24
|
await program.parseAsync();
|
|
22
25
|
}
|