@ivotoby/openapi-mcp-server 1.2.0 → 1.2.1
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 +4 -0
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -14408,6 +14408,10 @@ var OpenAPISpecLoader = class {
|
|
|
14408
14408
|
if (!pathItem) continue;
|
|
14409
14409
|
for (const [method, operation] of Object.entries(pathItem)) {
|
|
14410
14410
|
if (method === "parameters" || !operation) continue;
|
|
14411
|
+
if (!["get", "post", "put", "patch", "delete", "options", "head"].includes(method.toLowerCase())) {
|
|
14412
|
+
console.log(`Skipping non-HTTP method "${method}" for path ${path}`);
|
|
14413
|
+
continue;
|
|
14414
|
+
}
|
|
14411
14415
|
const op = operation;
|
|
14412
14416
|
const cleanPath = path.replace(/^\//, "").replace(/\{([^}]+)\}/g, "$1");
|
|
14413
14417
|
const toolId = `${method.toUpperCase()}-${cleanPath}`.replace(/[^a-zA-Z0-9-]/g, "-");
|