OpenAPI to WebMCP in One Command

2026-10-13来源 dev.to JavaScriptEnglish

🚀 Introducing openapi-to-webmcp

I built openapi-to-webmcp, an open-source tool to generate WebMCP browser tools from OpenAPI specifications.

  • 📄 Supports JSON and YAML specifications
  • ⚡ JavaScript by default, with TypeScript support
  • 🌐 Browser ES module available via CDN
  • 🛠️ CLI and programmatic API

Quick start

npx openapi-to-webmcp openapi.yaml 

The package also provides a browser entry point for generating WebMCP modules from a normalized API object, without bundling the Node.js YAML parser.

📦 npm: https://www.npmjs.com/package/openapi-to-webmcp

💻 GitHub: https://github.com/aymen94/openapi-to-webmcp

Feedback and contributions are welcome😎!

原文:https://www.a8q9.cn/en/article/openapi-to-webmcp-in-one-command-091d65.html

相关文章