mcp-remote 0.0.2 → 0.0.4

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.
@@ -295,7 +295,13 @@ async function findAvailablePort(preferredPort) {
295
295
  async function parseCommandLineArgs(args, defaultPort, usage) {
296
296
  const serverUrl = args[0];
297
297
  const specifiedPort = args[1] ? parseInt(args[1]) : void 0;
298
- if (!serverUrl || !serverUrl.startsWith("https://")) {
298
+ if (!serverUrl) {
299
+ console.error(usage);
300
+ process.exit(1);
301
+ }
302
+ const url = new URL(serverUrl);
303
+ const isLocalhost = url.hostname === "localhost" && url.protocol === "http:";
304
+ if (!(url.protocol == "https:" || isLocalhost)) {
299
305
  console.error(usage);
300
306
  process.exit(1);
301
307
  }
package/dist/client.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  parseCommandLineArgs,
5
5
  setupOAuthCallbackServer,
6
6
  setupSignalHandlers
7
- } from "./chunk-SB5B4PZV.js";
7
+ } from "./chunk-GEWYQKIG.js";
8
8
 
9
9
  // src/client.ts
10
10
  import { EventEmitter } from "events";
package/dist/proxy.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  parseCommandLineArgs,
7
7
  setupOAuthCallbackServer,
8
8
  setupSignalHandlers
9
- } from "./chunk-SB5B4PZV.js";
9
+ } from "./chunk-GEWYQKIG.js";
10
10
 
11
11
  // src/proxy.ts
12
12
  import { EventEmitter } from "events";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-remote",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "bin": "dist/proxy.js",
6
6
  "files": [