Dagster Vide Coding Cursor Setup
April 9, 2025 ยท View on GitHub
This project contains Dagster components for data engineering workflows, including Sling replication and CSV ingestion capabilities.
Development Setup
Prerequisites
- Python 3.11 or higher
- UV package manager (
pip install uv)
Setting up the Development Environment
- Create and activate a virtual environment using UV:
# Create a new virtual environment
uv venv
# Activate the virtual environment
# On Unix/macOS:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate
- Install dependencies using UV:
# Install the project and development dependencies
uv pip install ".[dev]"
This will install:
- All core dependencies from
pyproject.toml - Development dependencies (testing, linting, etc.)
- The project in editable mode
Clone Dagster Repository
After setting up your environment, you'll need to clone the Dagster repository for reference and development:
- Run the clone utility:
# From the project root
python utils/clone_dagster.py
This will:
- Create a
context/dagsterdirectory - Clone the latest version of Dagster into this directory
- The directory is gitignored, so it won't be tracked in version control
- Verify the clone:
# Check that the repository was cloned successfully
ls context/dagster
You should see the Dagster repository contents in the context/dagster directory.
Note: The cloned repository is used for:
- Reference implementation
- Development guidance
- Documentation access
- Component patterns and examples
To Install Repomix and Generate MCP Server
- Prerequisites:
- Node.js installed (Download from nodejs.org)
- npm (comes with Node.js)
- Install Repomix globally:
npm install -g repomix
- Verify installation:
repomix --version
- MCP Server: Navigate to the dagster folder and then start the MCP server with
repomix --mcp
- Update Cursor Settings
Edit the cline_mcp_settings.json file:
{
"mcpServers": {
"repomix": {
"command": "npx",
"args": [
"-y",
"repomix",
"--mcp"
]
}
}
}
In Cursor, add a new MCP server from Cursor Settings > MCP > + Add new global MCP server