How Ask Forge installs and finds its license, what it needs from SchemaSmith Community, and your first steps from the command line and from an AI assistant over MCP.
By the SchemaSmith Team · Last reviewed
Once configured, your AI assistant has access to every SchemaSmith tool.
Ask Forge gives any AI agent a registry of specialized tools for reading, analyzing, generating, and modifying database schemas on every platform SchemaSmith supports. You reach those tools in two ways.
The MCP server. ForgeBarrett.Mcp is how an AI assistant reaches Ask Forge's tools. Connect it once, and your AI assistant can chain tools on its own: explore your schema, identify issues, generate fixes, and plan migrations, all in a single conversation. Every tool is exposed with the schemasmith_ prefix.
The ask-forge CLI. It works three ways. In the interactive REPL you have a conversation: the AI chains tools together, asks clarifying questions, and remembers context across turns. As direct subcommands, every tool is available as a command of its own, no LLM required, which is useful in scripts, CI pipelines, or when you know exactly what you want. And a question in quotes after ask-forge is answered once, and the CLI exits.
The tools reference describes every tool, grouped by tier.
Ask Forge is a licensed add-on to SchemaSmith Community. It is not yet on sale. The install and license steps below describe how it is packaged.
On Windows, Ask Forge comes as an MSI: AskForge-x64.msi or AskForge-arm64.msi. It installs to C:\Program Files\SchemaSmith\AskForge\ unless you choose another folder during setup, and it offers two features, both selected by default:
PATH, so the CLI is available from the command line.Open a new terminal after setup so it picks up the new PATH.
Every operating system also has a ZIP package:
| Operating system | x64 | Arm64 |
|---|---|---|
| Windows | AskForge-win-x64.zip |
AskForge-win-arm64.zip |
| macOS | AskForge-osx-x64.zip |
AskForge-osx-arm64.zip |
| Linux | AskForge-linux-x64.zip |
AskForge-linux-arm64.zip |
Each package contains the CLI and the MCP server. On Windows they are ask-forge.exe and ForgeBarrett.Mcp.exe; on macOS and Linux they have no extension. Each package also includes the files that ship with them, such as appsettings.json and LICENSE.txt. Both executables are self-contained, so there is no .NET runtime to install. Extract the package to a folder, add that folder to your PATH, and keep the files together: the MCP server reads only the appsettings.json installed beside it.
The MCP server prints its version before it checks for a license, so this works before your license is in place. It prints the release, then + and the commit it was built from, and exits:
ForgeBarrett.Mcp --version
Ask Forge needs a license file. A path you give it directly can name any file; wherever it searches a folder, it looks for SchemaSmith License.lic. The CLI and the MCP server look in this order and use the first one they find:
--LicenseFile:<path> on the command line, ahead of any subcommand.SCHEMASMITH_LICENSE environment variable, which can name the file itself or the folder that holds it.ASKFORGE_LICENSE, an older name for the same variable that is still read.The simplest place for it is beside the executables. For an MSI install, that is the install folder.
Without a valid license, the CLI and the MCP server both exit at startup. A license nearing its expiration date, or within the 30-day grace period after it, prints a warning at startup instead. --quiet does not hide that warning.
The CLI checks the license before it prints its version, so this command confirms the file is found. A missing or unreadable license, or one expired beyond its grace period, prints LICENSE ERROR and exits with code 2:
ask-forge --version
The Deploy tools (run_schema_quench, run_schema_tongs, run_data_tongs and run_schema_shears) run SchemaQuench, SchemaTongs, DataTongs and SchemaShears as subprocesses, using the same settings files you would use by hand. The SchemaSmith Community tools ship separately from Ask Forge. Install them from the downloads page before you use the Deploy tools. Every other Ask Forge tool works without them.
Ask Forge looks for each tool by name, in this order, and runs the first one it finds:
SchemaSmithPath environment variable, when it is set.C:\Program Files\SchemaSmith\SchemaSmith, then C:\Program Files\SchemaSmith. On macOS, /Applications/SchemaSmith/SchemaSmith.Ask Forge looks for each tool under its own name: SchemaQuench.exe on Windows, SchemaQuench elsewhere, and likewise for the others. If a tool is not found, the call stops before anything runs and reports Could not find 'SchemaQuench' executable, naming the tool it looked for.
Start the REPL from your schema package's folder, or name the package with --product:
ask-forge --product C:\path\to\my-product
ask-forge --product /path/to/my-product
Inside the REPL, anything that is not a command is a question for Ask Forge, and answering one needs an LLM provider (below). help shows every command, and exit leaves.
Ask Forge keeps its settings in ~/.schemasmith/askforge.json. It is the single location used by the CLI, the MCP server, and its tools. The file does not have to exist yet: a missing file is normal, and Ask Forge writes it the first time you save a setting, such as an LLM provider or a database connection. On the CLI, --config <path> reads and writes another file instead.
Direct CLI subcommands and MCP tool invocations work without any LLM provider; only the conversational question-answering mode requires one. No provider is active until you set one up, and the REPL says so at launch with LLM: Not configured. Type llm setup in the REPL to run the interactive setup wizard. LLM Providers covers each provider type.
This one needs no LLM provider and no schema package. It searches the built-in knowledge base:
ask-forge search-knowledge --query "migration scripts"
The connections section of askforge.json stores the details the Deploy tools use when they run SchemaTongs, SchemaQuench or DataTongs against a database, one connection per platform. MariaDB has its own connection, separate from MySQL's. SchemaShears works from files, so it needs no connection.
From an AI assistant, ask it to connect to your database. manage_connection is not in the server's curated tool list (see Find a tool, below), so the assistant reaches it through schemasmith_execute_tool, passing action: "set" and your connection details as the arguments for manage_connection. From the command line:
ask-forge manage-connection --action set --platform sqlserver `
--server localhost --database MyDb --user sa
ask-forge manage-connection --action set --platform sqlserver \
--server localhost --database MyDb --user sa
Run set again with only the fields you want to change. The others are kept. A password you supply is not written to the file. It goes to your operating system's credential store, and the file records only a token that refers to it. In CI, or on a host with no credential store, use a ${ENV_VAR} reference instead. The file keeps the reference as written, and the value is read from the environment each time the connection is used, so the password itself is never stored. Configuration lists the connection fields.
On the command line, every tool is a subcommand, and discover-tools searches all of them by keyword or description:
ask-forge discover-tools --query "rename"
Add --help to any command to see its options.
Over MCP, the server lists a curated set of tools to keep token cost low. The others are reached through schemasmith_discover_tools, which finds a tool by keyword or description, and schemasmith_execute_tool, which runs it by name. A tool run that way keeps its safeguards: a Modify or External tool still needs confirm: true, given alongside tool_name.
Add the MCP server to your AI assistant's MCP configuration. MCP Server Setup has the client settings. An MSI install puts the server at C:\Program Files\SchemaSmith\AskForge\ForgeBarrett.Mcp.exe, and it talks to your client over stdio. Setting SCHEMASMITH_PRODUCT_PATH in its environment preloads a schema package. That is optional: schemasmith_navigate_context loads or switches packages at any time.
Then ask in plain language. The AI chains tools naturally based on what you ask:
| You ask | What the AI does |
|---|---|
| "What's in this product?" | Calls schemasmith_show_context for the product name, platform, and templates, then schemasmith_list_tables. |
| "Show me the Customers table." | Calls schemasmith_show_table, which returns the columns, primary key, foreign keys, indexes, and check constraints. |
| "Are there any schema issues?" | Calls schemasmith_review_schema, which returns a health score out of 100 and findings ranked by severity. |
| "Add an Email column to Customers." | Calls schemasmith_apply_change, which updates the table's JSON file on disk. |
| "Deploy in dry-run mode." | Calls schemasmith_run_schema_quench with dry_run: true, the default when no settings file is named, so you see what would happen to the target database without touching it. |
Over MCP, a Modify or External tool runs only when the call carries confirm: true, a dry run included. The dry run also needs the SchemaSmith Community tools and a connection, as described above.
Free schema-as-code for SQL Server, PostgreSQL, MySQL, and MariaDB.
The source is on GitHub for anyone to read.
Get Started on GitHub