Skip to content

Configuration ​

All options live under the webMcp key of the Swagger UI config and are re-read on every use — Swagger UI has not finished merging user configuration when a plugin's afterLoad runs, so anything captured at construction time would silently be a default. It also means changes after startup take effect on the next call.

OptionTypeDefaultEffect
enabledbooleantruefalse skips the plugin entirely.
exposureread | write | hiddenwritePage-level default for every operation. hidden is an absolute kill switch no annotation can override.
trustSpecAnnotationsbooleanfalsetrue makes x-webmcp authoritative in both directions instead of tighten-only. Only for publishers who own both page and document.
maxDirectOperationToolsnumber64Above this, no direct tools; discovery and generic execution remain.
maxBatchStepsnumber10Maximum steps accepted by openapi_execute_batch.
operationFilter(op) => booleannonefalse removes an operation from search, inspection, execution, and registration.
policyResolver(op) => Policy | undefinednonePage-supplied per-operation policy. Composes with x-webmcp; may only tighten.