@jtsang/nettune-mcp 0.1.1 → 0.1.3

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 +2 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
3
2
  import { createRequire } from "node:module";
4
3
  var __create = Object.create;
5
4
  var __getProtoOf = Object.getPrototypeOf;
@@ -2131,7 +2130,7 @@ var {
2131
2130
  // package.json
2132
2131
  var package_default = {
2133
2132
  name: "@jtsang/nettune-mcp",
2134
- version: "0.1.1",
2133
+ version: "0.1.3",
2135
2134
  private: false,
2136
2135
  description: "MCP stdio wrapper for nettune - TCP network optimization tool",
2137
2136
  type: "module",
@@ -2184,12 +2183,11 @@ var package_default = {
2184
2183
  var VERSION = package_default.version;
2185
2184
  function parseArgs() {
2186
2185
  const program2 = new Command;
2187
- program2.name("nettune-mcp").description("MCP stdio wrapper for nettune TCP network optimization tool").version(VERSION).requiredOption("-k, --api-key <key>", "API key for server authentication (required)").option("-s, --server <url>", "Server URL", "http://127.0.0.1:9876").option("--mcp-name <name>", "MCP server name identifier", "nettune").option("--version-tag <version>", "Specific nettune version to use", "latest").option("-v, --verbose", "Enable verbose logging", false).parse(process.argv);
2186
+ program2.name("nettune-mcp").description("MCP stdio wrapper for nettune TCP network optimization tool").version(VERSION).requiredOption("-k, --api-key <key>", "API key for server authentication (required)").option("-s, --server <url>", "Server URL", "http://127.0.0.1:9876").option("--version-tag <version>", "Specific nettune version to use", "latest").option("-v, --verbose", "Enable verbose logging", false).parse(process.argv);
2188
2187
  const opts = program2.opts();
2189
2188
  return {
2190
2189
  apiKey: opts.apiKey,
2191
2190
  server: opts.server,
2192
- mcpName: opts.mcpName,
2193
2191
  version: opts.versionTag,
2194
2192
  verbose: opts.verbose
2195
2193
  };
@@ -2198,7 +2196,6 @@ function buildClientArgs(options) {
2198
2196
  const args = [];
2199
2197
  args.push("--api-key", options.apiKey);
2200
2198
  args.push("--server", options.server);
2201
- args.push("--mcp-name", options.mcpName);
2202
2199
  return args;
2203
2200
  }
2204
2201
  function validateOptions(options) {
@@ -2210,9 +2207,6 @@ function validateOptions(options) {
2210
2207
  } catch {
2211
2208
  throw new Error(`Invalid server URL: ${options.server}`);
2212
2209
  }
2213
- if (!options.mcpName || options.mcpName.trim() === "") {
2214
- throw new Error("MCP name cannot be empty");
2215
- }
2216
2210
  }
2217
2211
 
2218
2212
  // src/platform.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtsang/nettune-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "description": "MCP stdio wrapper for nettune - TCP network optimization tool",
6
6
  "type": "module",