Formio Uag
by form.io · v2.0.1 · updated Nov 16, 2026
The Universal Agent Gateway (UAG) enables in-process agentic automation using Form.io.
Run it locally
Install the package and point your AI client at it.
npm
npx -y @formio/[email protected]Environment variables
PROJECTrequiredAPI endpoint to Enterprise project or OSS server
PROJECT_KEYsecretProject API Key (Enterprise) or ADMIN_KEY (OSS)
ADMIN_KEYsecretServer admin key for Form.io Open Source. Not required for Enterprise deployment.
LICENSE_KEYsecretForm.io license for a self-hosted Enterprise deployment; when it includes the UAG it also enables the Agent API. Not required for Form.io Open Source, or for a project on Form.io's hosted service (https://*.form.io).
UAG_LICENSEsecretDeprecated: use LICENSE_KEY. Still read until UAG 3.0.
JWT_SECRETrequiredsecretSecret used to generate and validate JWT tokens
PORTServer port (default: 3200)
PROJECT_TTLProject cache refresh interval in seconds (default: 900)
TEMPLATE_SYNCWhen a module's template is installed into the project: boot, refresh or off (default: boot)
JWT_EXPIRE_TIMELifetime of the tokens the UAG issues, in minutes (default: 60)
PORTAL_SECRETsecretEnterprise Portal connection secret
MONGOsecretOptional. The UAG's own database (only uag-* collections, never submissions): run records, runs that survive a restart, remote MCP sign-in. Needs a license that includes the UAG.
MONGO_CONFIGMongoDB driver configuration (JSON)
UAG_DATABASEThe database to use on the MONGO connection. Default uag.
TASK_RUN_RETENTION_DAYSDays run records are kept. Default 90; 0 keeps them forever.
BASE_URLOptional. The URL clients reach the UAG at, for the OAuth discovery documents remote MCP clients read. Derived from each request when unset.
MCP_OAUTHtrue turns on OAuth sign-in for remote MCP clients. Needs MONGO.
TRUST_PROXYExpress's trust proxy (true, a number of hops, or addresses). Set it behind a reverse proxy, so the UAG reads its public URL from the forwarded headers.
LOGIN_FORMPublic URL to login form JSON endpoint
CORStrue (the default) allows every origin, false turns CORS off, any other value is the allowed origin, or several separated by commas
DEBUGDebug logging filter (e.g. formio.*)
More from form.io
More MCP servers
Formeo
formeo.io
Build and publish Formeo forms, read and export submissions, and get embed code from AI agents
Formule
formule.io
Real estate CRM for Claude and ChatGPT: find leads and listings, report on pipeline, log follow-ups.
Forthcast Inventory
forthcast.io
Reorder points, order quantities, demand forecasts and stock health, from your numbers or Shopify.
ForthClear Liquidation Marketplace
forthclear.io
Search surplus and overstock inventory, request bulk quotes, and check out.
Forthmatch 3PL Directory
forthmatch.io
Search a free 3PL directory and send quote requests that Forthmatch forwards. No sign-in.
ForthRoute Returns
forthroute.io
Search, review, approve and decline Shopify returns in ForthRoute (OAuth, merchant account).