← Files Dataiku HeadlessARCHIVED FILE

skills/dataiku-headless-setup/SKILL.md

7.66 KB · Nov 27, 2026 · 19:32 UTC

↓ Download file

See the change to this file →

---
name: dataiku-headless-setup
description: Set up Dataiku Headless after plugin installation. Use when the user asks to install, set up, connect, configure, or repair Dataiku Headless; when its MCP tools are unavailable; or when uv may be missing. Check the runtime, offer the official platform installer with explicit approval, then configure and verify a Dataiku instance.
---

# Set Up Dataiku Headless

Bring a new or broken plugin installation to a verified Dataiku connection. A request to set up Dataiku Headless is not approval to install software: obtain explicit approval immediately before running an installer.

## Workflow

1. First run `list_instances`. If it succeeds, the local plugin and runtime are already available; skip directly to instance configuration and verification below (step 8).
2. If the Dataiku MCP tools are unavailable, check the runtime. Run `uv --version` when local commands are available; ask the user to run it only when they are not. Dataiku Headless requires uv 0.12.0 or later.
3. If uv is missing or too old, explain briefly that it supplies the isolated Python runtime and pinned dependencies used by the local MCP server. Detect the operating system and offer the matching official Astral installer:
   - macOS or Linux: `curl -LsSf https://astral.sh/uv/install.sh | sh`
   - Windows PowerShell: `powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"`
4. Obtain explicit approval, run only the selected installer, and verify with `uv --version`. Do not substitute a third-party package manager or edit shell startup files unless the user asks.
5. If the current agent process cannot see the newly installed executable, use the installer's reported location to confirm it exists, then ask the user to fully restart or reload the agent. Stop and resume setup in the new session; the already-running MCP process cannot repair its own launch environment.
6. Once uv is suitable, warm the runtime by running the server once with stdin closed. Locate the absolute path of this `SKILL.md`; the plugin root is its ancestor containing both `skills/` and `runtime/` (this file is at `<plugin_root>/skills/dataiku-headless-setup/SKILL.md`). Do not assume the current working directory is the plugin root.
   - macOS or Linux: `uv run --quiet --locked --script "<plugin_root>/runtime/run_mcp.py" --transport stdio < /dev/null`
   - Windows PowerShell: `$null | uv run --quiet --locked --script "<plugin_root>\runtime\run_mcp.py" --transport stdio`

   A startup line on stderr followed by exit status 0 is expected. This checks standalone runtime startup, not the agent's MCP registration or connection. Do not substitute `uv sync --locked --script`: it caches downloads but leaves environment creation for the first server launch.
7. Retry `list_instances`. If the tools are still unavailable, reload the plugin or restart the agent once, then retry. If they are still missing, inspect the agent's MCP registration and startup error; do not repeat the warm-up/restart loop. Check the executable, script path, working directory, and any organization policy error before diagnosing a Dataiku connection problem.
8. When `list_instances` succeeds, if no instance is configured, run `configure_instance` and have the user add an instance in the local browser manager, test it when supported, save it, and select **Done**. Design, Automation and Deployer require a successful connection test. Agent Management and Govern testing is unavailable; save their locally validated profiles directly. Select **Switch to this instance after saving** to make it active. The manager stays open across operations; saving alone does not complete URL elicitation. If multiple instances exist without an active one, ask which to use and run `switch_instance`.
9. Verify the active profile with `get_current_instance`. If its `connection_status` is `failed`, inspect the returned `error` before continuing. For SSL/TLS or certificate failures, follow [HTTPS certificate trust](#https-certificate-trust) before changing the profile. For other failures, diagnose the reported cause and use `configure_instance` when the profile needs correction; do not treat it as set up. If it is `unsupported`, the Agent Management or Govern profile is configured but its API tools are not implemented; explain this and offer to switch to a supported instance instead of repeating setup or probing DSS. When it is `connected`, validate access with a read allowed on that type: use the shared operation interface with `deployer.list_stages` for Deployer and `list_projects` for Design or Automation. Never request or repeat the API key in chat.

Report completion with the active instance name, URL, and configured type, Dataiku version when available, and whether the Dataiku read succeeded or the selected node type has no API tools yet. Include the uv version only when runtime recovery was needed. If a restart is required, say that setup is incomplete and give the single next action.

## HTTPS certificate trust

The standard launcher trusts CAs in the operating system certificate store. If
HTTPS verification fails, diagnose the cause before recommending a configuration
change. Inspect the certificate and chain presented by the Dataiku endpoint for
hostname mismatches, expired or not-yet-valid certificates, and missing
intermediate certificates. Consider whether a corporate proxy is presenting its
own certificate.

When the failure points to an untrusted issuer, inspect the relevant trust
configuration on the machine or container running the MCP server. If local tools
or access are unavailable, explain what remains unknown.

Report the finding and a concrete next step: for example, ask the Dataiku
administrator to renew the certificate or correct its chain, or ask IT to verify
that the required CA is installed and trusted. Do not install certificates or
change trust settings without authorization.

If immediate access is needed, explain that **Skip certificate verification** is
available as a temporary workaround, but is discouraged because it prevents
reliable server authentication and could expose credentials and data to
interception. Do not enable it automatically. After the certificate issue is
resolved, re-enable verification, test, and save the profile.

## Manage existing instances

Use `configure_instance` to reopen the local instance manager. It groups instances
by type and supports create, edit, delete, **Use now**, and **Set default**. **Use now**
changes the target of later tool calls; **Set default** selects the saved startup
profile and does not switch the active instance. Environment and Code Studio
instances remain read-only and take precedence at startup. HTTP instances remain
platform-managed and cannot use this local manager.

When editing, a saved API key is indicated by a `**********` placeholder; the
input itself remains blank. Leave it blank to preserve the saved key or ticket. A new
API key replaces the credential. For Design and Automation, a successful connection test is required before
saving; changing URL, credential, certificate policy, or type requires a new test.
Connection-test failures appear in the editor's connection-status area. Expand **Error details**
to inspect the underlying exception before retrying; for SSL/TLS failures, follow
[HTTPS certificate trust](#https-certificate-trust).
Deleting an active/default profile requires choosing another saved profile when
one is available. It removes only the saved instance configuration. The Dataiku
instance and its data stay in place.
After **Done**, verify the active instance with `get_current_instance`; never
infer activation from saving or choosing a default. Changes are applied immediately
and survive page expiry. The manager expires after ten minutes; reopen it if needed.

SHA-256: 424c87b701d7a84a793d10ec742664fd73bc6c21109d9fb27042f73658f166a0