Skip to content

context setup

The setup command is the fastest way to get started with RunContext. It opens a 6-step wizard in your browser that creates a semantic plane from scratch.

Terminal window
context setup
context setup --port 4040 # custom port (default: 4040)
context setup --no-browser # don't auto-open the browser

The setup wizard opens at http://localhost:4040/setup and walks through six steps:

Connect to your database. Data sources are auto-detected from environment variables (DATABASE_URL, POSTGRES_URL, etc.), local database files (.duckdb, .sqlite), and MCP configs from your IDE.

Name your semantic plane and provide a description. Set the owner name, team, and email. Choose a sensitivity level (public, internal, confidential, or restricted). The name becomes the directory under context/products/.

Introspect the database schema and generate Bronze-tier OSI YAML files. This reads tables, columns, types, primary keys, and relationships.

Review the scaffolded metadata before enrichment. Edit any field before proceeding.

Agent-driven curation enriches your metadata from Bronze through Silver and Gold:

  1. Enrich to Silver — add glossary, lineage, sample values, trust status
  2. Enrich to Gold — suggest semantic roles, aggregation rules, guardrails
  3. Verify — lint and validate the result
  4. Auto-fix — apply automatic fixes for common issues
  5. Agent Instructions — generate AGENT_INSTRUCTIONS.md for AI curation

Start the MCP server and configure your AI tools to connect. The wizard generates the appropriate config snippets for Claude Code, Cursor, VS Code, and other MCP clients.

The wizard saves a Context Brief at context/products/{name}/context-brief.yaml and scaffolds all associated metadata files for the semantic plane.

context-brief.yaml
product_name: sales-analytics
description: "Revenue and order metrics for the analytics team"
owner:
name: Alice Chen
team: Analytics
email: alice@company.com
sensitivity: internal
created_at: "2026-03-08T..."
ScenarioRecommendation
First time with RunContextcontext setup (browser wizard)
Adding a new database sourcecontext introspect --db <url>
Upgrading existing context to Goldcontext dev --studio (visual editor)
CI/CD pipelinecontext lint && context build
Let an AI agent build itTell the agent: “Install @runcontext/cli and build a semantic plane”