@ivotoby/openapi-mcp-server 1.9.1 → 1.9.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.
- package/dist/bundle.js +5 -1
- package/dist/cli.js +5 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -18605,6 +18605,7 @@ var ApiClient = class {
|
|
|
18605
18605
|
const escapeRegExp = (str2) => {
|
|
18606
18606
|
return str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
18607
18607
|
};
|
|
18608
|
+
const headerParams = {};
|
|
18608
18609
|
if (toolDef?.inputSchema?.properties) {
|
|
18609
18610
|
for (const [key, value] of Object.entries(paramsCopy)) {
|
|
18610
18611
|
const paramDef = toolDef.inputSchema.properties[key];
|
|
@@ -18625,6 +18626,9 @@ var ApiClient = class {
|
|
|
18625
18626
|
resolvedPath = resolvedPath.replace(`/${key}`, `/${encodeURIComponent(value)}`);
|
|
18626
18627
|
}
|
|
18627
18628
|
delete paramsCopy[key];
|
|
18629
|
+
} else if (paramLocation === "header") {
|
|
18630
|
+
headerParams[key] = String(value);
|
|
18631
|
+
delete paramsCopy[key];
|
|
18628
18632
|
}
|
|
18629
18633
|
}
|
|
18630
18634
|
} else {
|
|
@@ -18651,7 +18655,7 @@ var ApiClient = class {
|
|
|
18651
18655
|
const config = {
|
|
18652
18656
|
method: method.toLowerCase(),
|
|
18653
18657
|
url: resolvedPath,
|
|
18654
|
-
headers: authHeaders
|
|
18658
|
+
headers: { ...authHeaders, ...headerParams }
|
|
18655
18659
|
};
|
|
18656
18660
|
if (isGetLikeMethod(method)) {
|
|
18657
18661
|
config.params = this.processQueryParams(paramsCopy);
|
package/dist/cli.js
CHANGED
|
@@ -18605,6 +18605,7 @@ var ApiClient = class {
|
|
|
18605
18605
|
const escapeRegExp = (str2) => {
|
|
18606
18606
|
return str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
18607
18607
|
};
|
|
18608
|
+
const headerParams = {};
|
|
18608
18609
|
if (toolDef?.inputSchema?.properties) {
|
|
18609
18610
|
for (const [key, value] of Object.entries(paramsCopy)) {
|
|
18610
18611
|
const paramDef = toolDef.inputSchema.properties[key];
|
|
@@ -18625,6 +18626,9 @@ var ApiClient = class {
|
|
|
18625
18626
|
resolvedPath = resolvedPath.replace(`/${key}`, `/${encodeURIComponent(value)}`);
|
|
18626
18627
|
}
|
|
18627
18628
|
delete paramsCopy[key];
|
|
18629
|
+
} else if (paramLocation === "header") {
|
|
18630
|
+
headerParams[key] = String(value);
|
|
18631
|
+
delete paramsCopy[key];
|
|
18628
18632
|
}
|
|
18629
18633
|
}
|
|
18630
18634
|
} else {
|
|
@@ -18651,7 +18655,7 @@ var ApiClient = class {
|
|
|
18651
18655
|
const config = {
|
|
18652
18656
|
method: method.toLowerCase(),
|
|
18653
18657
|
url: resolvedPath,
|
|
18654
|
-
headers: authHeaders
|
|
18658
|
+
headers: { ...authHeaders, ...headerParams }
|
|
18655
18659
|
};
|
|
18656
18660
|
if (isGetLikeMethod(method)) {
|
|
18657
18661
|
config.params = this.processQueryParams(paramsCopy);
|