@ivotoby/openapi-mcp-server 1.8.3 → 1.9.0

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 CHANGED
@@ -14381,7 +14381,7 @@ function parseToolId(toolId) {
14381
14381
  return { method, path: "/" + path };
14382
14382
  }
14383
14383
  function sanitizeForToolId(input) {
14384
- let result = input.replace(/[^A-Za-z0-9_-]/g, "").replace(/_{3,}/g, "__");
14384
+ let result = input.replace(/[^A-Za-z0-9_.-]/g, "").replace(/_{3,}/g, "__");
14385
14385
  result = collapseExcessiveHyphens(result);
14386
14386
  return result.replace(/^[_-]+|[_-]+$/g, "");
14387
14387
  }
@@ -24557,9 +24557,6 @@ async function main() {
24557
24557
  process.exit(1);
24558
24558
  }
24559
24559
  }
24560
- if (import.meta.url === `file://${process.argv[1]}`) {
24561
- main();
24562
- }
24563
24560
  export {
24564
24561
  ApiClient,
24565
24562
  OpenAPIServer,
package/dist/cli.js CHANGED
@@ -14381,7 +14381,7 @@ function parseToolId(toolId) {
14381
14381
  return { method, path: "/" + path };
14382
14382
  }
14383
14383
  function sanitizeForToolId(input) {
14384
- let result = input.replace(/[^A-Za-z0-9_-]/g, "").replace(/_{3,}/g, "__");
14384
+ let result = input.replace(/[^A-Za-z0-9_.-]/g, "").replace(/_{3,}/g, "__");
14385
14385
  result = collapseExcessiveHyphens(result);
14386
14386
  return result.replace(/^[_-]+|[_-]+$/g, "");
14387
14387
  }
@@ -24557,9 +24557,6 @@ async function main() {
24557
24557
  process.exit(1);
24558
24558
  }
24559
24559
  }
24560
- if (import.meta.url === `file://${process.argv[1]}`) {
24561
- main();
24562
- }
24563
24560
 
24564
24561
  // src/cli.ts
24565
24562
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ivotoby/openapi-mcp-server",
3
- "version": "1.8.3",
3
+ "version": "1.9.0",
4
4
  "description": "An MCP server that exposes OpenAPI endpoints as resources",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,9 +9,7 @@
9
9
  "type": "git",
10
10
  "url": "https://github.com/ivo-toby/mcp-openapi-server"
11
11
  },
12
- "bin": {
13
- "mcp-server-openapi": "./bin/mcp-server.js"
14
- },
12
+ "bin": "./bin/mcp-server.js",
15
13
  "files": [
16
14
  "dist"
17
15
  ],