Ask Forge gives an AI assistant tools to read, review, generate and change your SchemaSmith schema packages. You reach them through an MCP server or the ask-forge command line.
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 is how AI agents such as Claude, Copilot and Cursor reach SchemaSmith'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. Its executable is ForgeBarrett.Mcp, and every tool name it uses carries the schemasmith_ prefix.
MCP Server Setup has the configuration for each MCP client.
The standalone command-line interface, ask-forge, works these ways:
Console & Commands covers the REPL, the subcommands and their options.
Ask Forge is a licensed add-on to SchemaSmith Community. It is not yet on sale. These pages describe how it is packaged and how it works.
Ask Forge's tools fall into these groups. The tools reference describes every tool in each one.
| Group | What it covers |
|---|---|
| Explore | Browse products, templates, tables, scripts, views, and connections |
| Analyze | Review schemas, plan migrations, trace dependencies, validate structure |
| Generate | Produce table definitions, migration scripts, change suggestions, and portable diagrams, and manage database connections |
| Modify | Create and delete templates; create packages, tables, enum and domain types, sequences and events; rename tables, columns and modeled objects; apply changes; configure delivery, rebuild policy, MySQL and MariaDB partitioning, MariaDB periods and PostgreSQL policies |
| Deploy | Extract from databases, apply schemas, pull table data, build patch packages |
| Learn | Search the knowledge base and view tool execution logs |
| Discover | Find and run any tool by name, including specialized tools not shown by default |
Every modification writes JSON that belongs in source control. The Deploy tools run SchemaTongs, SchemaQuench, DataTongs and SchemaShears with the same settings files you would use by hand. Over MCP, a tool is named with the prefix, as in schemasmith_review_schema. On the command line it is a kebab-case subcommand, as in ask-forge review-schema.
Ask Forge sorts its tools into four access tiers. The tiers control what the AI can do:
| Tier | What it can do | Over MCP |
|---|---|---|
| Tier 1: ReadOnly | Read, browse, analyze, review; cannot change anything | Runs without confirmation |
| Tier 2: Generate | Produce suggestions and schemas, manage connections | Runs without confirmation |
| Tier 3: Modify | Create, rename, and change schema package files | Requires confirm: true |
| Tier 4: External | Run SchemaTongs, SchemaQuench, DataTongs, SchemaShears as subprocesses | Requires confirm: true |
Over MCP, a Tier 3 or Tier 4 tool runs only when the call carries confirm: true, dry runs included. Reaching one through schemasmith_execute_tool does not skip the check. The guard checks the tool that will actually run, so confirm: true goes in the schemasmith_execute_tool arguments, next to tool_name.
Trust levels apply only to the conversational agent: the REPL and the one-shot question. Observer allows Tier 1 only, Assistant (the default) allows Tiers 1 and 2, and Operator allows every tier. The MCP server and the direct subcommands have none, so there a Tier 3 or Tier 4 tool is something you confirm rather than something you are refused. By default, a direct subcommand asks before it runs a Modify or External tool.
A valid Ask Forge license unlocks all four tiers. Without a license, Ask Forge exits at startup. Trust Levels covers the tiers, trust levels and confirmation in full.
Direct CLI subcommands and MCP tool invocations need no LLM provider. Only the conversational question-answering mode needs one, and none is active until you set one up. Ask Forge works with hosted APIs such as Anthropic, OpenAI and Azure OpenAI, with a local model through Ollama, and with any OpenAI-compatible endpoint. LLM Providers covers each one.
Free schema-as-code for SQL Server, PostgreSQL, MySQL, and MariaDB.
The source is on GitHub for anyone to read.
Get Started on GitHub