Skip to content

Configuration properties

Every Java adapter — Spring MVC, Spring WebFlux, Micronaut, Quarkus and Helidon MP — reads the same properties, from wherever the framework reads its configuration (application.properties/.yml, microprofile-config.properties, environment variables…). The behaviour behind each one is implemented once, in Mateu’s core, so it is the same on every adapter.

PropertyDefaultWhat it does
mateu.cors.allowed-origins(empty: no CORS)Comma-separated origins allowed to call Mateu’s endpoints from another origin. * = any origin; https://*.example.com patterns are accepted.
mateu.cors.allow-credentialsfalseAdds Access-Control-Allow-Credentials: true for the listed origins. Never combined with *.
mateu.mcp.enabledfalseServes the native MCP endpoint at POST /mateu/mcp.
mateu.mcp.task-timeout-seconds120How long an MCP tool call waits for a LongTask it started; past it the task is cancelled and the agent told.
mateu.bundle.endpoint.enabledfalseServes the runtime bundle at GET /mateu/v3/bundle; off, it answers 404.
mateu.ui.modules(empty)Spring MVC / WebFlux: comma-separated packages of external Mateu UI modules to mount in-process (same as @EnableMateuUiModules). Quarkus, Micronaut and Helidon discover them per jar.
mateu.client-log.enabledtrueAccepts the renderers’ error reports at POST <baseUrl>/mateu/v3/client-log (client error log).
mateu.client-log.max-reports-per-minute60Reports one user (else one client address) may write per minute; the rest answer 429.
mateu.security.csrf-exemption.enabledtrueSpring: exempts Mateu’s JSON calls from Spring Security’s CSRF check (why it is safe).
mateu.static-assets.cachingtrueCaches Mateu’s frontend assets: /version_<n>/… immutable for a year, /assets/… revalidated (no-cache).
mateu.static-assets.compressiontrueSends Mateu’s text assets (the renderer bundles, CSS, SVG) gzipped to a browser that accepts it, compressed once per asset and kept in memory: the Vaadin renderer’s first load moves ~0.65 MB instead of ~2.6 MB. Micronaut’s Netty compresses on its own; set false when a proxy in front already compresses. On Spring it applies with mateu.static-assets.caching (the same handlers). The .NET and Python ports do the same when they serve the page (MATEU_UI).
mateu.debugfalseStarts the renderer in debug mode (<mateu-ui debug="true">).
mateu.helidon.authentication-requiredfalse (true when a JAX-RS application is @LoginConfig or a JAX-RS authentication filter is registered)Helidon MP: the routes Mateu serves outside Jersey (streamed actions, MCP, YAML mounts) refuse an unauthenticated call. Set it to false when your JAX-RS authentication filter lets anonymous callers in. Those routes see Helidon security’s principal with its roles and scopes, or your PrincipalResolver’s identity (details).
mateu.micronaut.replace-json-mappertrueMicronaut: Mateu replaces micronaut-serde’s JSON mapper with a plain Jackson one — the wire DTOs rely on Jackson polymorphism (the component tree), which micronaut-serde cannot encode. false keeps micronaut-serde (then the app must provide a mapper that can).

These are read by Mateu’s core, in this order: a JVM system property, then the framework’s configuration (application.properties/.yml and profiles on Spring and Micronaut, MicroProfile Config on Quarkus and Helidon), then the environment variable (mateu.self-base-url → MATEU_SELF_BASE_URL).

PropertyDefaultWhat it does
mateu.actions.stricttrueStrict action mode: an actionId only runs a marked or advertised method. false restores “every public method is an action”.
mateu.errors.detailedfalseShows the raw exception in the error toast instead of the generic text with a reference (development only).
mateu.remote.allowed-hosts, mateu.self-base-url, mateu.remote.timeout-seconds—Federated UIs: the hosts a remote menu or island may be fetched from, this app’s own base URL, the fetch timeout.
mateu.layout.inference.enabled, mateu.page.inference.enabledfalse, trueLayout and page inference.
mateu.mobile.*—The mobile manifest (name, icon, OIDC issuer and client…).
mateu.environment, mateu.sources.mock, mateu.i18n.fallback, mateu.documents.inline-max-bytes—The active environment, sample-data mode, the fallback locale, the inline document limit.
mateu.mcp.push.enabledfalseLive UI push: an agent paired with a browser tab can render screens and drive it. Needs mateu.mcp.enabled=true too.
mateu.mcp.push.rate-per-minute, mateu.mcp.push.max-sessions, mateu.mcp.push.max-sessions-per-owner30, 1000, 20Live UI push limits: messages per session per minute, registered sessions, sessions per signed-in user.
mateu.mcp.push.max-anonymous-sessions-per-address200Registered anonymous UI sessions per client address — the address the host framework resolves (behind a reverse proxy without the framework’s forwarded-header handling, every anonymous UI shares the proxy’s, hence the high default); an address the adapter cannot tell is limited only by max-sessions.

Before 3.0-alpha.426 these were read only from system properties and environment variables: a key written in application.properties was silently ignored.

What the framework’s configuration and the environment answer is remembered per key (settings are read many times per request), so a change made to the configuration while the app runs is not seen by itself. A Spring context refresh and Spring Cloud’s EnvironmentChangeEvent (/actuator/refresh) clear it for you; an app that changes its configuration some other way calls io.mateu.core.infra.MateuSettings.refresh(). A JVM system property is always read live and still wins.

A Mateu UI is normally served by the same origin as its API, and then the browser never asks for CORS. You only need it when the renderer runs somewhere else: a Visual Builder app served by vb-serve or VB Studio, a static bundle on a CDN, a dev server on another port.

mateu.cors.allowed-origins=https://ui.example.com,http://localhost:9006

The allow-list applies to Mateu’s own endpoints only — every path under a /mateu/ segment (<baseUrl>/mateu/v3/**, /mateu/mcp) — never to the application’s own controllers. A preflight from a listed origin is answered by Mateu before your security layer (so Spring Security, for one, needs no extra CORS configuration for it); a request from any other origin gets no CORS headers, so the browser refuses it.

On Micronaut, keep in mind its own drive-by-localhost protection: a server running on localhost refuses requests from a non-localhost origin before any application filter sees them, unless micronaut.server.cors.localhost-pass-through=true.

POST /mateu/mcp lets an agent discover and operate the screens of the app (see Agent operability). It is off by default — it gives any caller holding a valid token a programmatic way to drive every screen, which an application has to decide to expose:

mateu.mcp.enabled=true

Permissions are still enforced per request over the caller’s token, exactly as on the UI endpoints.

mateu.dev=true (or the environment variable MATEU_DEV=true) reads specs/ui/** from the source directory (mateu.dev.specs-dir, default src/main/resources/specs/ui), watches it, and serves GET /mateu/dev/events and POST /mateu/dev/reload, so the browsers re-render the open screen when a spec — or, after a HotSwap, the code — changes. Off by default (on Quarkus, on in the dev profile: %dev.mateu.dev=true); never in production. Every adapter reads it from its own configuration (Spring, MicroProfile Config on Quarkus/Helidon, Micronaut). See Live reload.

mateu.dev=true
mateu.dev.specs-dir=src/main/resources/specs/ui