mcp-remote 0.1.1 → 0.1.2
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.
|
@@ -14,7 +14,7 @@ var require_package = __commonJS({
|
|
|
14
14
|
"package.json"(exports, module) {
|
|
15
15
|
module.exports = {
|
|
16
16
|
name: "mcp-remote",
|
|
17
|
-
version: "0.1.
|
|
17
|
+
version: "0.1.2",
|
|
18
18
|
description: "Remote proxy for Model Context Protocol, allowing local-only clients to connect to remote servers using oAuth",
|
|
19
19
|
keywords: [
|
|
20
20
|
"mcp",
|
|
@@ -6800,8 +6800,9 @@ async function findAvailablePort(preferredPort) {
|
|
|
6800
6800
|
}
|
|
6801
6801
|
async function parseCommandLineArgs(args, defaultPort, usage) {
|
|
6802
6802
|
const headers = {};
|
|
6803
|
-
|
|
6804
|
-
|
|
6803
|
+
let i = 0;
|
|
6804
|
+
while (i < args.length) {
|
|
6805
|
+
if (args[i] === "--header" && i < args.length - 1) {
|
|
6805
6806
|
const value = args[i + 1];
|
|
6806
6807
|
const match = value.match(/^([A-Za-z0-9_-]+):(.*)$/);
|
|
6807
6808
|
if (match) {
|
|
@@ -6810,8 +6811,10 @@ async function parseCommandLineArgs(args, defaultPort, usage) {
|
|
|
6810
6811
|
log(`Warning: ignoring invalid header argument: ${value}`);
|
|
6811
6812
|
}
|
|
6812
6813
|
args.splice(i, 2);
|
|
6814
|
+
continue;
|
|
6813
6815
|
}
|
|
6814
|
-
|
|
6816
|
+
i++;
|
|
6817
|
+
}
|
|
6815
6818
|
const serverUrl = args[0];
|
|
6816
6819
|
const specifiedPort = args[1] ? parseInt(args[1]) : void 0;
|
|
6817
6820
|
const allowHttp = args.includes("--allow-http");
|
package/dist/client.js
CHANGED
package/dist/proxy.js
CHANGED