v0.1.0

MCP server and agent skill

Let an AI agent look at, change and check a database design through tool profiles that grow in power only when you ask.

databee mcp serve runs a Model Context Protocol server over stdio on one project. The tools call the same core operations as the CLI.

claude mcp add databee -- databee mcp serve --transport stdio --project <path-to-project> --profile designer

Any MCP client that can start a stdio server works the same way: the command is databee, the arguments are mcp serve --transport stdio --project <path> and one --profile per profile.

Profiles

Every profile includes the reader tools. Tools that are not in the server’s profiles do not exist for the agent.

Profile Adds
reader (default) schema_summary, schema_validate, schema_visualize, schema_diff, schema_get
designer schema_apply_changeset, schema_undo, schema_add_entity, schema_add_field, schema_add_foreign_key
generator generate_ddl, generate_dbml, generate_code
planner schema_snapshot, plan_generate_alter, plan_show, schema_transform, schema_analyze, migration_plan, migration_preview, migration_verify
operator plan_apply, migration_execute, migration_resume
exporter export_list, export_check, export_profile_save, export_run

Repeat the flag to combine profiles: --profile designer --profile generator.

What the server will not do

  • No tool approves a plan. A human approves with databee plan approve or databee migrate approve in a terminal. plan_apply, migration_execute and migration_resume run only a plan whose current hash has such an approval.
  • No tool takes a URL or a password. Database tools take connection profile names from connections.toml.
  • Writes stay in known places. schema_visualize with output: true writes only below diagrams/, generate_code below generated/, exports below out/, a transformation below out/transform/<name>/. Other locations are rejected.
  • Database text is data. Every reply that carries names, comments or defaults from a model or a database is marked "content_origin": "data", so an instruction hidden in a table comment is not an instruction.

The agent skill

skills/databee/SKILL.md in the repository tells an agent which tool answers which question, how to build a changeset (schema_get for the revision, a dry_run first, then the real call), and what it must pass on to you instead of smoothing over: lossy conversions, diagnostics, anything a plan lists as destructive. Copy the folder into your agent’s skills directory.

A typical exchange

An agent asked to add a table calls schema_get for the model and its revision, sends the changeset with dry_run: true and reads the diagnostics, sends it for real, then calls schema_validate and schema_visualize with view: diff so you see what changed. If you do not like it, schema_undo takes it back, as long as nobody changed the model since.

Edit this page on GitHub · Docs for v0.1.0