Why it matters

Data Hopper EDW ships an optional AI advisor: open a model, ask a question, and the answer is grounded in the model and the plugin’s own schema knowledge instead of general Data Vault advice. The plugin also publishes a public MCP server, so AI coding assistants can read the same project knowledge — coding rules, model schemas, documentation, plugin lookups — while someone edits files outside Hop GUI.

Both features are optional, and knowing their limits prevents wasted trust. The advisor is advisory: a fluent answer can still name a table that does not exist, and proposals are never applied to your model automatically. Without that boundary in mind, "the AI said so" becomes a data warehouse.

This module shows where the advisor appears, what it may read, how proposals are reviewed, and how to point a coding assistant at the MCP server. Budget 20-30 minutes. No warehouse load is needed: everything here works from model files. The prerequisites are Apache Hop 2.20 with the AI Assistant plugin (plugins/tech/ai), a named AI Provider under Metadata, and AI enabled under Configuration → Plugins → AI Assistant. hopper-edw itself still loads without the AI Assistant plugin — AI Help is simply a no-op.

Concepts

Where the advisors appear

hopper-edw’s advisors are Hop 2.20 plugins implementing Hop’s IAiAdvisor interface; the Hop AI Assistant workbench drives them. The Data Vault, Business Vault and dimensional modelers open that workbench bound to the open model: click AI Help on the modeler toolbar (next to Check model), or right-click the canvas and choose AI Help under Help. An advisory Scenario (for example Data Vault Modeling, Source Analysis or Type Mapping) tunes the answer to your goal.

Surface What the advisor does

Data Vault, Business Vault and dimensional modelers (.hdv, .hbv, .hdm)

Explains, analyzes, and can propose changes that you review and apply

Source model (.hsm), lineage view (.hlv), execution map (.hem), EDW Journey

Chat only — explains the open artifact, never edits it

Pipelines (.hpl) and workflows (.hwf)

Hop’s own AI Help (part of Hop 2.20, not this plugin)

Proposals are reviewed, never applied automatically

When a response contains actionable edits, a Review N proposed change(s) button appears in the conversation. It opens the Proposal Review Dialog, where you select the changes to keep, read a structural preview, see a LOW / MEDIUM / HIGH risk level, and skip the ones that would invalidate the model — blocked proposals are unchecked automatically, with the reason shown. Only Apply writes your selection into the open modeler, and it registers an undo point.

Proposal types cover every modeler: add a hub, link or satellite; set business keys or a record source; rename or move a table; add a note; change a configuration property such as targetTableParallelCopies; add an SCD2 or PIT table or a business table to a Business Vault; add a dimension, fact, bridge or junk dimension to a dimensional model. The complete table is in the AI advisory guide.

What the advisor may read

The model file is not the only input, and the prompt is not the only output. Before sending, you choose the Context Inclusions that travel with the prompt:

  • Include model check results — runs Check model on the open model and appends the result.

  • Include catalog sources — the catalog record definitions you explicitly select.

  • Include full model XML — the whole model file, sent on the first turn only.

  • Include load-run metrics and insights — recent load_run data and rule-based insights from the OPS catalog; auto-enabled by the Performance tuning scenario.

A sibling .hsm next to the open .hdv also contributes a compact classification JSON, so the advisor can talk about sources without you attaching anything. Privacy follows the same logic: API keys never travel in prompts, database connection descriptions are redacted to name, type, database name and host (usernames, passwords, ports and URLs are excluded), and only the catalog schemas and model components you explicitly approve are uploaded.

The MCP server: project knowledge for coding assistants

The repository’s mcp/README.md documents the public Model Context Protocol server, which gives AI coding assistants a standard way to read the project’s knowledge. The endpoint is https://mcp.data-hopper.com/mcp; supported clients include Claude Desktop, Cursor, Antigravity, VS Code (Roo Code / Cline / Continue) and Goose. Five tools are exposed:

  • get_coding_rules(topic) — coding rules such as HopVfs usage, Lombok, i18n escaping and the Java 21 pin.

  • get_model_schema(file_type) — specification, schema text, anti-patterns and sample paths for the model file types.

  • search_knowledge_base(query, category) — short snippets across docs, rules, schemas and code.

  • lookup_plugin_component(keyword, plugin_type) — transforms, actions, metadata and GUI classes.

  • query_knowledge_graph(cypher) — one read-only Cypher statement against the knowledge graph.

Only the last tool needs Neo4j; if it is down, the other four still answer. A client is configured with a small block — the same one that ships in .mcp.json and .cursor/mcp.json at the repository root:

{
  "mcpServers": {
    "datahopper": {
      "url": "https://mcp.data-hopper.com/mcp"
    }
  }
}

The AI file-schema pack for external agents

Not every edit happens in Hop GUI. The repository ships a portable context pack under docs/ai-file-schemas/: XSD and JSON Schema plus purpose markdown for the .hdv, .hbv, .hdm and .hsm model files, project metadata JSON, and catalog record definitions. Start with conventions.md and cross-references.md, attach the file-type docs that match the edit, and prefer editing an existing sample under retail-example/ or integration-tests/ over inventing structure. After structural edits, open the file in Hop GUI and run Check model.

Guided walkthrough

  1. Open models/retail-360.hdv from the retail-example project in the modeler.

  2. Click AI Help on the modeler toolbar (next to Check model).

  3. Keep the General scenario, or select Data Vault Modeling, and ask about link satellites — the advisor explains LSAT semantics and cites tables from your open model.

  4. Read the answer and note which of your model’s tables it names; you will verify one of them in Try it yourself.

    The AI advisor explaining link satellites
  5. Use the workbench controls for the next question: the scenario, the Context Inclusions and the prompt field are all part of the conversation, and Send runs the prompt in the background while the transcript updates when the answer is ready.

    The Data Vault AI Help workbench

Suggest a model from catalog sources

test/ai-modeling-test.hdv in retail-example is empty and already lists the E2E catalog sources on the Coach panel.

  1. Open that model and click AI Help.

  2. Choose Data Vault modeling. Check Include catalog sources, click Select…, and include the E2E feeds. Check Include full model XML so the advisor can see that the canvas has no tables yet.

  3. Ask it to suggest a Data Vault model for the included sources.

    The question running with 13 catalog sources selected
  4. Read the hubs, links, and satellites in the answer. load_date and record_source are load metadata, not business attributes.

    Modeling advice for the selected E2E sources
  5. Press Review N proposed change(s).

    Review 20 proposed changes in the transcript
  6. Apply only the checked hubs. Links and satellites that name a missing hub stay blocked.

    First proposal review — hubs checked
  7. Open Review again. The hubs are blocked because they now exist. Apply the links and satellites that are checked. A satellite on a link stays blocked until that link is on the model.

    Second proposal review — links and satellites ready
  8. One more pass applies what is still new, including the order-line satellite and a note on the canvas.

    Last proposal review — remaining satellite and model note
  9. The canvas shows the raw vault. Undo is on the modeler toolbar if you want the empty model back.

    Data Vault canvas after the proposals were applied

The same sequence is written up in AI advisory.

Review a proposal before you apply it

  1. Ask for a change — for example, in the Data Vault Modeling scenario, review one satellite and suggest what it is missing.

  2. When the response contains proposed changes, press Review N proposed change(s) in the transcript.

    The Proposal Review Dialog
  3. Read the risk level, the warnings and the preview of each change; blocked entries stay unchecked. Select only what you want, then press Apply — or close the dialog and change nothing. If you apply, undo is available on the modeler toolbar.

  4. Optional: on a modeler with load history, select the Performance tuning scenario, enable Include load-run metrics and insights, and ask how to speed up a load. A proposal may raise the parallel copies of a target table; read it in the review dialog before you apply it.

    A reviewed proposal that raises the target table parallel copies

Optional: connect a coding assistant to the MCP server

  1. Optional: copy the client block from the Concepts section (or mcp/README.md) into your MCP-capable client’s configuration — the same block ships in .mcp.json and .cursor/mcp.json.

  2. Call get_coding_rules with a topic, or search_knowledge_base with a question, and read the snippets that come back. This runs outside Hop GUI; nothing in the GUI changes.

Try it yourself

Ask the advisor one question about your own model and check whether the answer cites model elements you can verify:

  1. Open one of your own .hdv files (or use retail-360.hdv again) in the modeler.

  2. Before sending, write down the Context Inclusions you enabled — that list is what the advisor can see.

  3. Ask a specific question about one table, for example which fields a satellite carries or which hubs a link connects.

  4. For every table or field the answer names, open the modeler and confirm that it exists.

Check your work: you can name which parts of the model the advisor read (the open model plus your inclusions), and every claim you checked holds. If the answer names something that does not exist, the model is right and the answer is wrong — the advisor is advisory, and Check model is the validation that counts.

Questionnaire

Answer the eight questions. Every answer comes with its reasoning, and Copy my results gives you a text summary to keep.

1. Which AI Help surface can apply changes to the open artifact after you review them?

2. A response proposes changes to your model. What happens immediately?

3. What may the advisor read before it answers?

4. What is the MCP server for in this project?

5. Which MCP tool returns the specification, schema text and anti-patterns for a file type such as .hdv?

6. Where does the AI file-schema pack live?

7. Scenario: an advisor answer contradicts what Check model reports. Which one wins?

8. Do AI Help and the MCP server need a loaded warehouse (tables in the Vault database)?

Where to go next

  • AI help and advisory — prerequisites, providers, scenarios, context inclusions, proposal types and the privacy rules

  • The AI file-schema pack (XSD and JSON Schema plus purpose docs for external agents) lives in the repository under docs/ai-file-schemas/ — it is not part of this offline documentation bundle.

  • https://mcp.data-hopper.com/mcp — the public MCP server; tool list and client configuration in mcp/README.md

  • Training index — the other modules in this curriculum