← Files Domino Data LabARCHIVED FILE
SETUP.md
6.75 KB · Nov 14, 2026 · 01:02 UTC
# Complete Modeling Assistant Setup Guide
This guide covers setup for the Domino modeling assistant. When the plugin is installed from the source repository (Claude Code, or Codex from a local marketplace), the Domino MCP Server is **bundled with the plugin** and starts automatically — no manual cloning, installation, or MCP configuration is required. Skills-only distributions (such as the ChatGPT plugin directory) don't include the server; see [Register the server manually](#register-the-server-manually).
**Inside a Domino workspace:** Everything is auto-detected (project, auth, DFS/Git mode). Skip straight to [Step 3: Test the Integration](#step-3-test-the-integration).
**Outside Domino (laptop):** You need to set two environment variables and create a project settings file. Follow the full guide below.
## Prerequisites
- Domino Data Lab account with API access
- An MCP-enabled coding assistant, such as Claude Code, Codex, or Cursor
- Python 3.11+
- `uv` package manager ([install guide](https://github.com/astral-sh/uv))
- Git
## Step 1: Set Domino Credentials (Laptop Only)
> **Skip this step if you are working inside a Domino workspace.** Authentication is handled automatically via ephemeral tokens.
### Generate API Key
1. Log into Domino
2. Go to **Account Settings** (click your profile icon)
3. Navigate to **API Keys**
4. Click **Generate New Key**
5. Copy and save the key securely
### Set Environment Variables
Add these to your shell profile (`~/.bashrc`, `~/.zshrc`, etc.):
```bash
export DOMINO_API_KEY="your_api_key_here"
export DOMINO_HOST="https://your-domino.company.com"
```
Then reload your shell:
```bash
source ~/.zshrc # or ~/.bashrc
```
The plugin's bundled MCP server reads these from its environment — no `.env` file is needed. If your assistant doesn't forward your shell environment to MCP servers, pass `DOMINO_API_KEY` and `DOMINO_HOST` explicitly when you register the server (see below).
## Step 2: Configure Your Project (Laptop Only)
> **Skip this step if you are working inside a Domino workspace.** The project owner, project name, and DFS/Git mode are auto-detected from platform environment variables.
### Create Project Settings
In your Domino project directory, create `domino_project_settings.md`:
```markdown
# Domino Project Settings
## Project Information
- **Project Owner**: your-username
- **Project Name**: your-project-name
## Default Configuration
- **Compute Environment**: Default Python 3.10
- **Hardware Tier**: small-k8s
## Data Locations
- Input data: /mnt/data/
- Imported datasets: /mnt/imported/data/
- Output artifacts: /mnt/artifacts/
## Notes
- Always commit changes before running Domino jobs
- Use MLflow for experiment tracking
```
## Step 3: Test the Integration
### Create a Test Script
In your project, create `test_domino.py`:
```python
import os
print("Hello from Domino!")
print(f"Project: {os.environ.get('DOMINO_PROJECT_NAME', 'unknown')}")
print(f"User: {os.environ.get('DOMINO_STARTING_USERNAME', 'unknown')}")
```
### Commit the Script
```bash
git add test_domino.py
git commit -m "Add test script for modeling assistant"
git push
```
### Run via Your AI Assistant
Prompt:
```
Run test_domino.py as a Domino job
```
The MCP server should:
1. Create a Domino job
2. Execute the script
3. Return the output
## Step 4: Set Up Domino Environment (Optional)
### Option A: Domino Standard Environment with AI Tools (Recommended)
If your Domino instance has the **Standard Environment with AI Tools** available, use that — it comes preconfigured with everything needed for the modeling assistant workflow. No additional setup required.
In your Domino project:
1. Go to **Settings** → **Compute Environment**
2. Select the **Standard Environment with AI Tools** from the list
### Option B: Custom Vibe Modeling Image (Fallback)
If you don't have access to the Standard Environment with AI Tools, use the custom Docker image instead.
In your Domino project:
1. Go to **Settings** → **Compute Environment**
2. Create new environment with base image:
```
quay.io/domino/field:vibe-modeling
```
This image includes:
- MCP server dependencies
- Common ML libraries
- Preconfigured for modeling assistant workflows
## Workflow Example
### Complete Modeling Assistant Session
1. **Start in your AI assistant** with your project open
2. **Analyze data** (prompt):
```
Load the sales data from /mnt/data/sales.csv and show me
a summary of the key metrics
```
3. **Assistant creates script**, commits, runs in Domino
4. **Review results** returned through MCP
5. **Iterate on analysis** (prompt):
```
Now create a visualization of sales by region and save it
to /mnt/artifacts/sales_by_region.png
```
6. **Train a model** (prompt):
```
Train a random forest model to predict sales using the
processed data. Log the results to MLflow.
```
7. **All work is tracked** in Domino's experiment manager
## Troubleshooting
### "MCP server not found" or tools not appearing
1. Ensure `uv` is installed and in your PATH
2. Restart your assistant after installing the plugin
3. Check the plugin and server are enabled:
- **Claude Code:** `/plugin` → Installed tab; run `claude --debug` to see MCP server initialization errors
- **Codex:** `/mcp` in a session, or `codex mcp list`, should show `domino_server`
4. If the server isn't listed at all, your plugin distribution may be skills-only; register it manually as described below
### Register the server manually
Clone the plugin repository, then point your assistant at `mcp-servers/domino_mcp_server`. For Codex:
```bash
codex mcp add domino_server \
--env DOMINO_API_KEY="$DOMINO_API_KEY" --env DOMINO_HOST="$DOMINO_HOST" \
-- uv --directory /path/to/domino-ai-plugin/mcp-servers/domino_mcp_server run domino_mcp_server.py
```
This stores the key in your personal Codex config, so never run it with a key you share. For other assistants, register a stdio server with the same `uv` command.
### "Unauthorized" errors
1. **Workspace:** This shouldn't happen — auth is automatic. Restart the workspace if it persists.
2. **Laptop:** Verify `DOMINO_API_KEY` and `DOMINO_HOST` are set in your shell environment (`echo $DOMINO_API_KEY`)
### "Project not found"
1. **Workspace:** Project info is auto-detected. Check that `DOMINO_PROJECT_OWNER` and `DOMINO_PROJECT_NAME` env vars are set.
2. **Laptop:** Check that `domino_project_settings.md` exists in your project root with the correct owner and project name.
### Jobs fail immediately
1. Check compute environment is available
2. Verify hardware tier is valid
3. Review Domino job logs for errors
## Next Steps
- [SKILL.md](./SKILL.md) - Overview of modeling assistant capabilities and MCP server tool reference
- [Domino Blueprints](https://domino.ai/resources/blueprints/vibe-modeling) - Official documentation
SHA-256: 0b7005b5a17c0df88ff2e587709b318d7ec30ddb247cafe3df94363d3a8b7dec