Introducing Agent Safe Governance for the AI Era

Switch between output formats in the Liquibase AI Changelog Generator

Last updated: May 15, 2026

Procedure

1

Set these environment variables in your AI Changelog Generator configuration, not in your Liquibase project.

Output format is controlled by two environment variables:

Variable

Values

Default

Description

LIQUIBASE_MCP_OUTPUT_FORMAT

xml | formatted-sql

xml

Controls the output format of generated changesets.

LIQUIBASE_MCP_SQL_DATABASE

postgresql | mysql | mariadb | oracle | mssql | db2 | h2 | sqlite

postgresql

Target database dialect for Formatted SQL generation. Only applies when LIQUIBASE_MCP_OUTPUT_FORMAT=formatted-sql.

XML is the default. If you do not set LIQUIBASE_MCP_OUTPUT_FORMAT, the server generates XML. Existing configurations require no changes.

2

VS Code users: Add the environment variables to your AI Changelog Generator configuration in your VS Code settings.json.

Switch to Formatted SQL
loading
Switch back to XML
loading

Set LIQUIBASE_MCP_OUTPUT_FORMAT to xml, or remove the variable entirely. The LIQUIBASE_MCP_SQL_DATABASE variable has no effect when the output format is XML.

Restart required. After editing settings.json, restart the MCP server for the change to take effect.

3

Docker users: Pass the environment variables in your Docker run command.

Pass the environment variables using the -e flag in your Docker run command.

Switch to Formatted SQL
loading

Switch back to XML

Omit LIQUIBASE_MCP_OUTPUT_FORMAT or set it explicitly to xml:

docker run --rm -i \
    -e LIQUIBASE_MCP_OUTPUT_FORMAT=xml \
    liquibase/liquibase-mcp-server:latest

Change the target database

Update LIQUIBASE_MCP_SQL_DATABASE to match your target database. For example, to switch from PostgreSQL to MySQL:

docker run --rm -i \
    -e LIQUIBASE_MCP_OUTPUT_FORMAT=formatted-sql \
    -e LIQUIBASE_MCP_SQL_DATABASE=mysql \
    liquibase/liquibase-mcp-server:latest

For a full list of supported values, see Database Targeting for Formatted SQL.

4

Claude Desktop users: Add the environment variables to your Claude Desktop configuration file.

Add the environment variables to the AI Changelog Generator entry in your Claude Desktop configuration file.

Configuration file location:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Switch to Formatted SQL
loading
Switch back to XML
"env": {
    "LIQUIBASE_MCP_OUTPUT_FORMAT": "xml"
}

Restart required. After editing the configuration file, restart Claude Desktop for the change to take effect.