OpenAPI规范扩展生成工具

用于生成和更新带有x-mcp供应商扩展的OpenAPI规范文件的命令行工具。

  • by redocly-demo
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 redocly-demo/generate-x-mcp

使用说明

生成x-mcp

使用此工具来生成和更新OpenAPI规范文件 x-mcp 供应商扩展。

用法

npx @redocly/generate-x-mcp \
  --server-url https://example.com/mcp \
  --openapi-file api-spec/openapi.yaml \
  -H "Auth-Header: <header-value>"

选项:

    --version       Show version number                              [boolean]
-f, --openapi-file  Path to the OpenAPI specification file
                                            [string] [default: "openapi.yaml"]
-s, --server-url    URL of the MCP server                  [string] [required]
-H, --header        Headers to pass to the MCP server                  [array]
-h, --help          Show help