nuwax-mcp-stdio-proxy 1.1.0 → 1.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23,9 +23,12 @@
23
23
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
24
24
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
25
25
  import { ListToolsRequestSchema, CallToolRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
26
+ import { createRequire } from 'node:module';
26
27
  import { isHttpEntry } from './types.js';
27
28
  import { logInfo, logWarn, logError } from './logger.js';
28
29
  import { buildBaseEnv, connectStdio, connectBridge } from './transport.js';
30
+ const require = createRequire(import.meta.url);
31
+ const { name: PKG_NAME, version: PKG_VERSION } = require('../package.json');
29
32
  // ========== CLI ==========
30
33
  function parseConfig() {
31
34
  const args = process.argv.slice(2);
@@ -100,7 +103,7 @@ async function main() {
100
103
  const aggregatedTools = Array.from(toolsByName.values());
101
104
  logInfo(`Aggregated ${aggregatedTools.length} unique tool(s) from ${clients.size} server(s)`);
102
105
  // ---- Phase 2: Create the aggregating MCP server ----
103
- const server = new Server({ name: 'nuwax-mcp-stdio-proxy', version: '1.0.0' }, { capabilities: { tools: {} } });
106
+ const server = new Server({ name: PKG_NAME, version: PKG_VERSION }, { capabilities: { tools: {} } });
104
107
  server.setRequestHandler(ListToolsRequestSchema, async () => {
105
108
  return { tools: aggregatedTools };
106
109
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuwax-mcp-stdio-proxy",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "TypeScript stdio MCP proxy — aggregates multiple MCP servers (stdio + bridge) into one",
5
5
  "type": "module",
6
6
  "bin": {