@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.
Files changed (2) hide show
  1. package/dist/bundle.js +4 -0
  2. 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, "-");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ivotoby/openapi-mcp-server",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "An MCP server that exposes OpenAPI endpoints as resources",
5
5
  "license": "MIT",
6
6
  "type": "module",