Quick Start
Option A: Browser Wizard (Recommended)
Section titled “Option A: Browser Wizard (Recommended)”-
Create a new project
Terminal window npx create-runcontext my-project && cd my-project && context setup -
The 6-step wizard runs
The setup wizard opens in your browser and walks you through:
- Connect — choose your database (auto-detected from environment, or enter a connection URL)
- Define — name your semantic plane (e.g.
sales-analytics), set owner, choose sensitivity level - Scaffold — RunContext introspects your schema and generates Bronze-tier metadata
- Checkpoint — review what was generated (tables, columns, types, initial descriptions)
- Curate — enrich toward Silver (sample values, tags, glossary links, lineage)
- Serve — MCP server configuration is generated
-
Curate to Gold
Gold requires agent-driven curation — your AI agent queries the actual database to add semantic roles, golden queries, guardrails, and business rules. Copy the MCP config into your IDE (Claude Code, Cursor, or Copilot) and paste the curation prompt:
“Read context/AGENT_INSTRUCTIONS.md and curate this semantic plane to Gold.”
The agent connects to your database via MCP, inspects real data, and fills in everything needed for Gold: semantic roles on all fields, 3+ golden queries, guardrails, business rules, and hierarchies.
-
Serve to AI agents
Terminal window context serve --stdioYour MCP server is live. Add it to your AI tool’s config:
{"mcpServers": {"runcontext": {"command": "npx","args": ["@runcontext/cli", "serve", "--stdio"]}}}
Option B: Tell Your AI Agent
Section titled “Option B: 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 runs context setup, introspects your database, and queries real data via MCP to curate your semantic plane. It reads the generated context/AGENT_INSTRUCTIONS.md and knows exactly what to do — all the way to Gold.
Option C: Manual Pipeline
Section titled “Option C: Manual Pipeline”# Installnpm install -g @runcontext/cli
# Scaffold from a databasecontext introspect --db postgres://user:pass@host/db --select
# Auto-enrich to Silvercontext enrich --target silver --apply
# Check tier progresscontext tier
# Serve via MCPcontext serve --stdioWhat Just Happened?
Section titled “What Just Happened?”The setup wizard performed these steps:
- Connect — connected to your database (PostgreSQL, DuckDB, MySQL, SQL Server, SQLite, Snowflake, BigQuery, ClickHouse, or Databricks)
- Define — captured your semantic plane’s name, owner, and sensitivity level
- Scaffold — introspected every table, generated OSI YAML with columns, types, primary keys, and governance files (Bronze tier)
- Checkpoint — presented the scaffolded metadata for your review
- Curate — enriched toward Silver with sample values, tags, glossary links, and lineage
- Serve — generated MCP server configuration and
AGENT_INSTRUCTIONS.mdfor agent-driven curation to Gold
Your metadata now lives in YAML files under context/. Edit them in the visual studio, let AI agents curate them, or modify the YAML directly.
Next Steps
Section titled “Next Steps”- Check your tier:
context tierto see Bronze/Silver/Gold scores - Open the studio:
context dev --studioto curate in the browser - Export a blueprint:
context blueprintfor portable OSI YAML - Generate docs:
context sitefor a browsable documentation site - Read the CLI reference for all 16 commands