LakeLogic
Loading…

How-to

Connect your AI assistant (MCP)

Use Claude, Cursor or Copilot with your governed estate. The assistant suggests; LakeLogic tests the change and a person approves it.

Connect the AI assistant your team already uses to LakeLogic over MCP (Model Context Protocol). It can read your contracts and their quality gaps, and propose a rule. LakeLogic tests the rule in a sandbox, and a person approves or rejects it with the test result in front of them.

The assistant never publishes a change or runs anything on your platform. Everything is limited to the organisation of the API key it connects with, and every call is recorded in your audit trail. Calls from your own assistant use no Zeus credits.

What the assistant can do

ToolWhat it doesScope
get_contractThe contract as published, never a draftmcp:read
assess_qualityQuality gaps with evidence: fields no rule checks, a key with no uniqueness check, foreign keys with no orphan check, untagged personal datamcp:read
blast_radiusWhat sits downstream of a dataset, and how confident that ismcp:read
propose_ruleAdds one quality rule as a draft of the contract, for a person to review. The live contract does not change.mcp:propose
test_changeRuns the draft in the sandbox on generated data with deliberately broken rows. Never your data.mcp:test
proposal_statusWhether a proposal is tested, approved or rejectedmcp:read
get_evidenceThe record: the change, who proposed it, the test, who decided and whenmcp:read

Without a plan (read-only workspace): the read tools. Trial and paid plans: all of them.

Create an API key

  1. In LakeLogic, go to Settings → API Keys and create a key.
  2. Name it so you will recognise it on proposals and in the audit trail, for example claude-code-alex.
  3. Choose AI assistant (MCP) read. Add propose and test if the assistant should propose rules.
  4. Copy the key. It is shown once; keep it out of source control.

Connect your assistant

The endpoint is https://<your-lakelogic-host>/api/v1/mcp (MCP over HTTP), with the key in the X-API-Key header.

Claude Code

claude mcp add --transport http lakelogic https://<your-lakelogic-host>/api/v1/mcp \
  --header "X-API-Key: <your key>"

Cursor, Claude Desktop and other MCP clients

{
  "mcpServers": {
    "lakelogic": {
      "type": "http",
      "url": "https://<your-lakelogic-host>/api/v1/mcp",
      "headers": { "X-API-Key": "<your key>" }
    }
  }
}

Close a quality gap

Ask your assistant, for example:

Assess the dataset silver_trips, find the most important missing check, propose the rule and test it. Show me the results before I approve the change.

It reports how many generated rows were tested, passed and rejected, what the new rule caught, and example rejected rows. For a rule that checks the whole table, such as uniqueness, the test plants data that breaks it (duplicate keys) and reports whether the rule failed on it.

Approve or reject in LakeLogic

Open the contract. The Changes proposed by an AI assistant card shows the rule, who proposed it and the test result.

  • Approving needs a test result. An untested proposal says so, next to the button.
  • Only a signed-in person with an editor role or above can decide. An API key never can.
  • Approving records your decision. It does not publish. The change is a draft, published the usual way: Create PR on the contract, with the same change checks and evidence as any other change.

Your assistant can then call get_evidence for an audit summary of the whole change.

Good to know

  • One open draft per contract. An assistant cannot propose on a contract that has someone else's unpublished draft.
  • A rule needs a name, so reviewers and run results can refer to it.
  • Adding a rule bumps the contract's minor version (1.0.0 to 1.1.0), as a person editing it would.
  • Every call appears under AI → Usage & Cost → Assistant (MCP) calls.
  • No LakeLogic account? The open-source lakelogic-mcp runs on your machine against contract files: validate, lint, generate test data and run a contract locally.

See LakeLogic in action.