@ivotoby/openapi-mcp-server 1.9.0 → 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 +10 -3
- package/dist/cli.js +10 -3
- package/package.json +21 -21
package/dist/bundle.js
CHANGED
|
@@ -15667,6 +15667,9 @@ function toFormData(obj, formData, options) {
|
|
|
15667
15667
|
if (utils_default.isDate(value)) {
|
|
15668
15668
|
return value.toISOString();
|
|
15669
15669
|
}
|
|
15670
|
+
if (utils_default.isBoolean(value)) {
|
|
15671
|
+
return value.toString();
|
|
15672
|
+
}
|
|
15670
15673
|
if (!useBlob && utils_default.isBlob(value)) {
|
|
15671
15674
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
15672
15675
|
}
|
|
@@ -16450,7 +16453,7 @@ import util2 from "util";
|
|
|
16450
16453
|
import zlib from "zlib";
|
|
16451
16454
|
|
|
16452
16455
|
// node_modules/axios/lib/env/data.js
|
|
16453
|
-
var VERSION = "1.
|
|
16456
|
+
var VERSION = "1.10.0";
|
|
16454
16457
|
|
|
16455
16458
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
16456
16459
|
function parseProtocol(url2) {
|
|
@@ -17862,7 +17865,7 @@ var fetch_default = isFetchSupported && (async (config) => {
|
|
|
17862
17865
|
duplex: "half",
|
|
17863
17866
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
17864
17867
|
});
|
|
17865
|
-
let response = await fetch(request);
|
|
17868
|
+
let response = await fetch(request, fetchOptions);
|
|
17866
17869
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
17867
17870
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
17868
17871
|
const options = {};
|
|
@@ -18602,6 +18605,7 @@ var ApiClient = class {
|
|
|
18602
18605
|
const escapeRegExp = (str2) => {
|
|
18603
18606
|
return str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
18604
18607
|
};
|
|
18608
|
+
const headerParams = {};
|
|
18605
18609
|
if (toolDef?.inputSchema?.properties) {
|
|
18606
18610
|
for (const [key, value] of Object.entries(paramsCopy)) {
|
|
18607
18611
|
const paramDef = toolDef.inputSchema.properties[key];
|
|
@@ -18622,6 +18626,9 @@ var ApiClient = class {
|
|
|
18622
18626
|
resolvedPath = resolvedPath.replace(`/${key}`, `/${encodeURIComponent(value)}`);
|
|
18623
18627
|
}
|
|
18624
18628
|
delete paramsCopy[key];
|
|
18629
|
+
} else if (paramLocation === "header") {
|
|
18630
|
+
headerParams[key] = String(value);
|
|
18631
|
+
delete paramsCopy[key];
|
|
18625
18632
|
}
|
|
18626
18633
|
}
|
|
18627
18634
|
} else {
|
|
@@ -18648,7 +18655,7 @@ var ApiClient = class {
|
|
|
18648
18655
|
const config = {
|
|
18649
18656
|
method: method.toLowerCase(),
|
|
18650
18657
|
url: resolvedPath,
|
|
18651
|
-
headers: authHeaders
|
|
18658
|
+
headers: { ...authHeaders, ...headerParams }
|
|
18652
18659
|
};
|
|
18653
18660
|
if (isGetLikeMethod(method)) {
|
|
18654
18661
|
config.params = this.processQueryParams(paramsCopy);
|
package/dist/cli.js
CHANGED
|
@@ -15667,6 +15667,9 @@ function toFormData(obj, formData, options) {
|
|
|
15667
15667
|
if (utils_default.isDate(value)) {
|
|
15668
15668
|
return value.toISOString();
|
|
15669
15669
|
}
|
|
15670
|
+
if (utils_default.isBoolean(value)) {
|
|
15671
|
+
return value.toString();
|
|
15672
|
+
}
|
|
15670
15673
|
if (!useBlob && utils_default.isBlob(value)) {
|
|
15671
15674
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
15672
15675
|
}
|
|
@@ -16450,7 +16453,7 @@ import util2 from "util";
|
|
|
16450
16453
|
import zlib from "zlib";
|
|
16451
16454
|
|
|
16452
16455
|
// node_modules/axios/lib/env/data.js
|
|
16453
|
-
var VERSION = "1.
|
|
16456
|
+
var VERSION = "1.10.0";
|
|
16454
16457
|
|
|
16455
16458
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
16456
16459
|
function parseProtocol(url2) {
|
|
@@ -17862,7 +17865,7 @@ var fetch_default = isFetchSupported && (async (config) => {
|
|
|
17862
17865
|
duplex: "half",
|
|
17863
17866
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
17864
17867
|
});
|
|
17865
|
-
let response = await fetch(request);
|
|
17868
|
+
let response = await fetch(request, fetchOptions);
|
|
17866
17869
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
17867
17870
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
17868
17871
|
const options = {};
|
|
@@ -18602,6 +18605,7 @@ var ApiClient = class {
|
|
|
18602
18605
|
const escapeRegExp = (str2) => {
|
|
18603
18606
|
return str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
18604
18607
|
};
|
|
18608
|
+
const headerParams = {};
|
|
18605
18609
|
if (toolDef?.inputSchema?.properties) {
|
|
18606
18610
|
for (const [key, value] of Object.entries(paramsCopy)) {
|
|
18607
18611
|
const paramDef = toolDef.inputSchema.properties[key];
|
|
@@ -18622,6 +18626,9 @@ var ApiClient = class {
|
|
|
18622
18626
|
resolvedPath = resolvedPath.replace(`/${key}`, `/${encodeURIComponent(value)}`);
|
|
18623
18627
|
}
|
|
18624
18628
|
delete paramsCopy[key];
|
|
18629
|
+
} else if (paramLocation === "header") {
|
|
18630
|
+
headerParams[key] = String(value);
|
|
18631
|
+
delete paramsCopy[key];
|
|
18625
18632
|
}
|
|
18626
18633
|
}
|
|
18627
18634
|
} else {
|
|
@@ -18648,7 +18655,7 @@ var ApiClient = class {
|
|
|
18648
18655
|
const config = {
|
|
18649
18656
|
method: method.toLowerCase(),
|
|
18650
18657
|
url: resolvedPath,
|
|
18651
|
-
headers: authHeaders
|
|
18658
|
+
headers: { ...authHeaders, ...headerParams }
|
|
18652
18659
|
};
|
|
18653
18660
|
if (isGetLikeMethod(method)) {
|
|
18654
18661
|
config.params = this.processQueryParams(paramsCopy);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivotoby/openapi-mcp-server",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "An MCP server that exposes OpenAPI endpoints as resources",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,35 +32,35 @@
|
|
|
32
32
|
"test:coverage": "vitest run --coverage --config vitest.config.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@modelcontextprotocol/sdk": "1.
|
|
36
|
-
"axios": "^1.
|
|
35
|
+
"@modelcontextprotocol/sdk": "1.16.0",
|
|
36
|
+
"axios": "^1.10.0",
|
|
37
37
|
"openapi-types": "^12.1.3",
|
|
38
38
|
"yargs": "^17.7.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@semantic-release/
|
|
43
|
-
"@semantic-release/
|
|
44
|
-
"@semantic-release/npm": "^11.0.3",
|
|
41
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
42
|
+
"@semantic-release/github": "^11.0.3",
|
|
43
|
+
"@semantic-release/npm": "^12.0.2",
|
|
45
44
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
46
45
|
"@types/js-yaml": "^4.0.9",
|
|
47
46
|
"@types/node": "^22.13.11",
|
|
48
47
|
"@types/yargs": "^17.0.33",
|
|
49
|
-
"@
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"eslint": "^8.
|
|
55
|
-
"eslint
|
|
56
|
-
"eslint-
|
|
57
|
-
"eslint-plugin-
|
|
58
|
-
"
|
|
48
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
49
|
+
"dotenv": "^17.2.0",
|
|
50
|
+
"esbuild": "^0.25.8",
|
|
51
|
+
"eslint": "^9.31.0",
|
|
52
|
+
"@eslint/js": "^9.31.0",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
54
|
+
"@typescript-eslint/parser": "^8.37.0",
|
|
55
|
+
"eslint-config-prettier": "^10.1.8",
|
|
56
|
+
"eslint-plugin-perfectionist": "^4.15.0",
|
|
57
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
58
|
+
"msw": "^2.10.4",
|
|
59
59
|
"nodemon": "^3.1.7",
|
|
60
|
-
"prettier": "^3.
|
|
61
|
-
"semantic-release": "^
|
|
60
|
+
"prettier": "^3.6.2",
|
|
61
|
+
"semantic-release": "^24.2.7",
|
|
62
62
|
"typescript": "^5.3.2",
|
|
63
|
-
"typescript-eslint": "^8.
|
|
64
|
-
"vitest": "^3.
|
|
63
|
+
"typescript-eslint": "^8.37.0",
|
|
64
|
+
"vitest": "^3.2.4"
|
|
65
65
|
}
|
|
66
66
|
}
|