union-mcp-v2

union-mcp-v2 is a cursor rule for Cursor from unionai-oss/union-mcp. It costs 1,872 tokens per session, scanned A, original, Apache-2.0.

Rules for sending demanding workloads to Union's remote Flyte cluster. Flyte is a system for running data and computing jobs on remote workers instead of a developer's laptop.

In plain words
What is it for?
It is for large batch processing, machine-learning inference or training, embeddings, memory-heavy data work, long computations, and parallel parameter experiments.
Why use it?
It helps when a task needs more CPU, memory, GPUs, parallel workers, or runtime than a typical laptop can provide.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for large batch processing, machine-learning inference or training, embeddings, memory-heavy data work, long computations, and parallel parameter experiments.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/unionai-oss/union-mcp/union-mcp-v2
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/unionai-oss/union-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for union-mcp-v2

README.md
[![agentmods](https://agentmods.dev/badge/rules/unionai-oss/union-mcp/union-mcp-v2/github.svg)](https://agentmods.dev/rules/unionai-oss/union-mcp/union-mcp-v2)
Your own site
<a href="https://agentmods.dev/rules/unionai-oss/union-mcp/union-mcp-v2"><img src="https://agentmods.dev/badge/rules/unionai-oss/union-mcp/union-mcp-v2/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for union-mcp-v2

Your own site · 80×15
<a href="https://agentmods.dev/rules/unionai-oss/union-mcp/union-mcp-v2"><img src="https://agentmods.dev/badge/rules/unionai-oss/union-mcp/union-mcp-v2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,872 This file is loaded in full into every session.
When invoked 1,872 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01872 $0.01872
Opus 5 $0.00936 $0.00936
Sonnet 5 $0.00374 $0.00374
Haiku 4.5 $0.00187 $0.00187

Measured 9d ago against content hash 06209303249d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

union-mcp-v2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/union-mcp-v2.mdc · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Union MCP v2

This file contains rules for using the Union MCP v2 server to run compute- or io-intensive workloads on a remote Flyte cluster.

When to Use Union MCP v2

Explicit Requests

If the user explicitly asks to run a workload on Flyte or Union, use the Union MCP v2 server.

Implicit Compute Needs

If a task requires compute resources beyond what a consumer laptop can handle, proactively suggest and use the Union MCP v2 server. This includes:

  • Large-scale parallel processing: Tasks that benefit from fan-out patterns (e.g., processing millions of items)
  • GPU workloads: Deep learning inference, embeddings, model training
  • Memory-intensive tasks: Processing large datasets that exceed typical RAM (8-16GB)
  • Long-running computations: Tasks that would take more than a few minutes on a laptop
  • Hyperparameter optimization: Parallel training runs across parameter combinations
  • Batch data processing: ETL jobs, data transformations on large datasets

Examples of When to Use Flyte

  • "Compute the sum of squares for 1 million numbers" → Fan-out to parallel workers
  • "Embed this 100k document dataset" → GPU batch inference
  • "Train models with different hyperparameters" → Parallel hyperparameter search
  • "Process this 50GB CSV file" → Distributed data processing
  • "Generate embeddings using a transformer model" → GPU acceleration

Examples of When NOT to Use Flyte

  • Simple calculations that complete in seconds
  • Reading/writing small files
  • Basic API calls
  • Local development tasks
  • Quick data exploration on small datasets

Workflow for Running Flyte Scripts

Follow these steps when running a workload on Flyte:

Step 1: Search for Examples

Before writing a script, search for relevant examples:

  1. Search the local workspace for existing Flyte examples
  2. Use search_flyte_sdk_examples for bleeding-edge SDK features
  3. Use search_flyte_docs_examples for common use cases and patterns
  4. Use search_full_docs for Flyte documentation and API reference

Read the full file on GitHub · 219 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 219 lines · 1,872 tokens per session scan A 06209303249d

Subscribe to this mod's changes

union-mcp-v2 is a cursor rule published in the GitHub repository unionai-oss/union-mcp (7 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 1,872 tokens to every session, about $0.0094 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.