What problem does it solve? AI agents often invent incorrect SQL when querying data warehouses because they lack knowledge of approved metric definitions, joinable columns, and business context. ktx solves this by building a searchable context layer combining semantic metrics, wiki knowledge, and warehouse metadata that agents query through MCP tools. ## Core Features & Use Cases - Context Ingestion: Ingests dbt projects, Looker, Metabase, Notion, and wiki content, deduplicating knowledge and flagging contradictions across sources. - Semantic Layer & Search: Builds a join-graph semantic layer over PostgreSQL, Snowflake, BigQuery, ClickHouse, MySQL, SQL Server, and SQLite, with full-text and semantic search via CLI and MCP tools. - Agent Integration: Exposes MCP tools like ktx_search_semantic_layer and ktx_get_metric_sql so Claude Code, Codex, Cursor, and OpenCode fetch canonical SQL instead of guessing. - Use Case: A data team runs ktx setup against their Snowflake warehouse and dbt project, then asks Claude Code for monthly active users; the agent retrieves the approved metric definition and canonical SQL with fan traps resolved. ## Quick Start Ask your AI agent to install ktx globally with npm, run ktx setup to configure your warehouse and dbt sources, then start the MCP server so the agent can search the semantic layer for a revenue metric.