AI Assistant & MCP

This guide covers the AI assistant and MCP integration. You will query data using natural language, connect AI coding tools to Loxtep, and use scoped skills for governed agent access.

To connect an AI coding tool, paste this into the agent and let it follow the playbook:

Set up Loxtep for this AI tool by following instructions:
https://docs.loxtep.io/docs/setup.md

Per-client install steps are in Quickstart.

AI Assistant Queries

The Loxtep AI assistant answers questions about your data products, schemas, and documentation using knowledge graph retrieval. It works within the consumer AI interface.

Ask questions in natural language and the assistant retrieves relevant context:

User: What fields does the orders data product contain?
Assistant: The orders data product (dp_orders) has the following fields:
- order_id (string) — Unique order identifier
- customer_email (string, PII) — Customer email address
- total_amount (number) — Order total in cents
- created_at (datetime) — Order creation timestamp

Documentation Questions

The assistant also retrieves information from ingested documentation chunks. When you ask about platform capabilities, it draws from the knowledge graph:

User: How do I mark a data product Ready?
Assistant: To mark a data product Ready, request governance sign-off...

If no documentation matches your question, the assistant explicitly states that no matching documentation was found rather than generating an answer without source context.

Connect via MCP

The Model Context Protocol (MCP) connects AI coding tools directly to Loxtep. Once connected, your IDE agent can build and operate Loxtep entirely through tool calls.

Each AI tool has a native install method that gives you MCP connectivity plus scoped skills:

ClientInstall method
CursorMarketplace plugin loxtep — or Settings → Plugins → Install from Git → https://github.com/LoxtepInc/loxtep-plugins-skills (path: cursor/)
KiroInstall as a Kiro Power from kiro/power/ in the Powers panel — includes steering workflow guides
Claude Codeclaude plugin install https://github.com/LoxtepInc/loxtep-plugins-skills --path claude/
CodexAdd [mcp_servers.loxtep] with url = "https://mcp.loxtep.io/ai/mcp/stream" to ~/.codex/config.toml
OpenCodeUnder mcp.servers.loxtep in opencode.json: type remote and url https://mcp.loxtep.io/ai/mcp/stream. Do not set enabled. Or opencode mcp add loxtep --url https://mcp.loxtep.io/ai/mcp/stream, then opencode mcp auth loxtep if the list needs authentication.
AntigravityAdd "loxtep": { "serverUrl": "https://mcp.loxtep.io/ai/mcp/stream" } under mcpServers in ~/.gemini/config/mcp_config.json or workspace .agents/mcp_config.json
Grok Buildgrok mcp add --transport http loxtep https://mcp.loxtep.io/ai/mcp/stream, then grok mcp doctor loxtep. Or [mcp_servers.loxtep] with url = "https://mcp.loxtep.io/ai/mcp/stream" in ~/.grok/config.toml
Grok BotIn the Bot chat: Add a custom MCP server called loxtep at https://mcp.loxtep.io/ai/mcp/stream. Confirm, finish browser sign-in, then attach it with @
Grok (grok.com)grok.com/connectors → New Connector → Custom → https://mcp.loxtep.io/ai/mcp/stream

For any other client with native MCP OAuth support, add the hosted server directly:

{
  "mcpServers": {
    "loxtep": {
      "url": "https://mcp.loxtep.io/ai/mcp/stream"
    }
  }
}

Authentication uses OAuth 2.1 with PKCE. The browser-based flow runs on first connection and tokens refresh automatically in the background.

Antigravity

Antigravity uses serverUrl in mcp_config.json. Do not use mcp-remote. Official page checked 2026-10-27: Antigravity MCP. Global file: ~/.gemini/config/mcp_config.json. Workspace file: .agents/mcp_config.json. Antigravity runs OAuth when the server supports dynamic client registration. Loxtep does. Do not put a bearer token in the file.

{
  "mcpServers": {
    "loxtep": {
      "serverUrl": "https://mcp.loxtep.io/ai/mcp/stream"
    }
  }
}

See the loxtep-plugins-skills repo for full per-client documentation, skills bundles, and install instructions.

Skills-only install (npx skills)

Plugins remain the recommended full install for Cursor and Claude Code because they include the MCP server and rules. The vercel-labs skills CLI installs skills only and does not configure MCP — after installing skills, connect the Loxtep MCP server using the MCP setup instructions.

Starter command for the four core skills:

npx skills add LoxtepInc/loxtep-plugins-skills --skill loxtep-mcp-session --skill loxtep-auth --skill connect-external-system --skill data-workflows

Full set (all 29 skills; heavier):

npx skills add LoxtepInc/loxtep-plugins-skills --skill '*'

Add -a <agent> to target specific agents (for example claude-code, cursor, codex, opencode) and -y to skip prompts. The CLI supports many other agents; see vercel-labs/skills.

Updates: npx skills update pulls from git (not a pinned version like the plugins). Pick one install path per machine to avoid duplicate skills. Requires Node 22.20+. Telemetry is on by default; turn it off with DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1.

MCP Tool Operations

The MCP server exposes 11 MCP tools (all prefixed loxtep_*). Each call specifies an operation plus that operation's parameters. You do not need to write JSON yourself — just tell your agent what you want in plain English.

For a complete catalog of natural-language prompts for every operation, see Prompting Your AI Agent.

Orient Your Session

Start by checking your current user context and RBAC grants:

Say to your agent:

Who am I in Loxtep? What's my organization and what permissions do I have?

The agent calls:

{ "operation": "get_current_user" }

This returns your organization, roles, and which projects you can access. Always orient before performing project-scoped operations.

Create Resources via MCP

Create data products, workflows, and connections directly from your AI coding tool:

Say to your agent:

Create a source data product called "orders" in the proj_commerce project.

The agent calls:

{
  "operation": "create_data_product",
  "project_id": "proj_commerce",
  "name": "orders",
  "kind": "source"
}

Query via MCP

Execute analytics queries from your agent:

Say to your agent:

How many orders have we received since January 2024?

The agent calls:

{
  "operation": "execute_query",
  "query": "SELECT count(*) as total_orders FROM orders WHERE created_at >= '2024-01-01'"
}

Scoped Skills

Skills are scoped integration bundles that declare which platform resources and operations an agent may reach. Skills enforce boundaries so AI agents operate within governed limits.

How Skills Work

Each skill declares a set of allowed tools and resource patterns. Operations outside scope return SCOPE_VIOLATION errors. This provides fail-closed security for agent access.

Available skills include:

SkillFocus
data-product-modelingModel source/consumer data products
data-workflowsAuthor and deploy workflows
discover-govern-lineageDiscovery, governance, lineage
loxtep-analyticsAnalytics queries
org-semantics-qualitySemantic layer and quality rules

Attribute Skill Usage

MCP tool calls require a resolvable skill name. Prefer _metadata: { skill_name: '<slug>' }; otherwise the server infers from the operation map (or X-Skill-Name). Unresolvable calls are denied (MISSING_SKILL_ATTRIBUTION). The skill name also drives scope checks:

{
  "operation": "create_data_product",
  "project_id": "proj_commerce",
  "name": "orders",
  "kind": "source",
  "_metadata": { "skill_name": "data-product-modeling" }
}

Semantic Layer Queries

The AI assistant can query the organization's semantic layer to resolve canonical field names, find related concepts, and understand ontology relationships:

Say to your agent:

Search the semantic layer for "revenue" — what does that mean across our organization?

The agent calls:

{ "operation": "search_semantic_layer", "query": "revenue" }

This returns matching semantic artifacts — glossary terms, ontology concepts, and their relationships — helping agents understand the business meaning of data fields.

Resolve Canonical Keys

When working with fields that may have multiple names across source systems, resolve to the canonical key:

Say to your agent:

What's the canonical name for "customer_email"? Does it have aliases in other systems?

The agent calls:

{ "operation": "resolve_canonical_key", "key_or_alias": "customer_email" }

The resolution returns the canonical concept ID, any aliases, and the vocabulary pack it belongs to.

Agent Orchestration

For complex multi-agent workflows, Loxtep provides an agent workspace with issues, goals, and agent coordination:

Say to your agent:

Create a Loxtep issue: "Onboard payments data source from Stripe."

The agent calls:

{ "operation": "create_issue", "title": "Onboard payments data source" }

Issues track work items that agents can claim, goals set high-level objectives, and the orchestration layer coordinates which agents work on what.