Quick Start
The fastest path: tell your AI agent
Section titled “The fastest path: tell your AI agent”In Claude Code, Cursor, or any agentic coding platform:
“Install @runcontext/cli and build a semantic layer for my database.”
The agent will run context setup, introspect your database, and start asking you questions about your data — metrics, ownership, business rules. It reads the generated context/AGENT_INSTRUCTIONS.md and knows exactly what to do.
Or do it yourself
Section titled “Or do it yourself”-
Install the CLI
Terminal window npm install -g @runcontext/cli -
Run the setup wizard
Terminal window context setupThe wizard auto-detects your database, introspects tables, scaffolds metadata, enriches to Silver, and generates agent instruction files — all in one interactive flow.
-
Check your tier
Terminal window context tierYou should see your model at Silver tier. Gold requires human or agent curation.
-
Curate to Gold
Tell your AI agent: “Read context/AGENT_INSTRUCTIONS.md and get this project to Gold.”
The agent will go back and forth with you, asking about your data as it builds. Or use the visual editor:
Terminal window context dev --studio -
Serve to AI agents
Terminal window context serve --stdioYour MCP server is live. AI agents now have full semantic context.
From a new project
Section titled “From a new project”npx create-contextkit my-projectcd my-projectcontext lintcontext tierFrom an existing project
Section titled “From an existing project”npm install -D @runcontext/cli
# Scaffold metadata from a databasecontext introspect --db duckdb://warehouse.duckdb
# Auto-enrich to Silvercontext enrich --target silver --apply --source default
# Check what Gold requirescontext tierWhat just happened?
Section titled “What just happened?”The setup wizard performed these steps:
- Detected your database (DuckDB, PostgreSQL, MySQL, SQL Server, SQLite, Snowflake, BigQuery, ClickHouse, or Databricks — including databases configured in your MCP server configs)
- Introspected every table — generated OSI YAML with columns, types, descriptions
- Scaffolded governance files — ownership, security classification, grain statements
- Enriched to Silver — added lineage, sample values, glossary links, trust status
- Linted the result — flagged anything that still needs attention
Your metadata now lives in YAML files under context/. Edit them directly or let AI agents help curate them toward Gold.