生成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: "选项:
--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 