数据智能体上下文层配置
自动执行 ktx 命令行配置,连接数据库与业务上下文源,构建语义元数据并接入智能体工作流。
功能与用途
本工具专为数据智能体(Data Agent)开源上下文层 ktx 提供自动化安装与配置能力。用户提供数据库连接、LLM/Embedding 后端及可选上下文源(如 dbt、Metabase、Notion 等)后,AI 会以非交互脚本模式自动完成环境初始化、凭证安全管理、元数据提取(ingest)与语义层构建,并一键接入 Claude Code、Cursor 等开发环境,最后通过 MCP 服务提供给 Agent 使用。需要 Node.js 22 及以上运行环境。
适用场景
- 数据库上下文接入:将 PostgreSQL、MySQL 等数据库架构和数据字典非交互式导入 ktx 上下文。
- BI 与文档源增强:关联 dbt 模型、Metabase 指标库或 Notion 文档,丰富智能体业务语义。
- 开发工具 Agent 规则配置:一键生成 Cursor、Claude Code 等工具的集成规则并启动本地 MCP 服务。
适用人群
- AI 应用开发者
- 数据工程师
- 数据分析师
- Agent 开发者
使用步骤
- 确认 Node.js 环境并收集数据库与 LLM/Embedding 配置参数。
- 运行非交互式 ktx setup 命令初始化项目并写入安全凭证。
- 针对数据库与业务源(dbt/Metabase 等)执行 ktx ingest 构建上下文。
- 配置目标智能体集成规则(如 Claude/Cursor)并启动 MCP 守护进程。
开始使用
将需求和 Skill 名称发送给已连接 SkillPX MCP 的 AI 助手,核对适用工具和安装要求。
技术信息
- 分类
- AI工作流
- 适用工具
- Codex、Claude Code、OpenClaw、Hermes Agent、国内 Agent
- 使用难度
- 进阶
- 版本
- main
- 最近更新
- 2026-09-30
- 文件数
- 3
- 安装包大小
- 自动生成 ZIP
- 安全检查
- 基础检查通过
Installs and configures ktx, the open-source context layer for data agents — runs ktx setup non-interactively with hidden CLI flags, configures database connections and embeddings, installs agent integration, and verifies readiness. Use when the user asks an agent to add ktx to a project, connect data sources, install agent rules, ingest schema, or troubleshoot a local ktx install.
依赖与权限
- ANTHROPIC_API_KEY
- OPENAI_API_KEY