This file contains instructions for deploying the Union v2 MCP server.
Clone the repo:
git clone https://github.com/unionai-oss/union-mcpInstall uv and the union-mcp package:
pip install uvDISABLE_AUTH=1 uv run --with '.[v2]' mcp run examples/v2/server.py --transport sseCreate a config file:
uv run --with union union create login --host <host>Then export environment variables:
export FLYTE_ENDPOINT=dns:///demo.hosted.unionai.cloud
export FLYTE_ORG=demo # use custom org name
export FLYTE_PROJECT=union-mcp # use custom project name
export FLYTE_DOMAIN=development # use custom domain name
export APP_PORT=8000 # use custom app port
export APP_NAME=union-mcp-v2 # use custom app name
export APP_SUBDOMAIN=mcp-v2 # use custom app subdomain
# for testing thea pp
export APP_NAME=union-mcp-v2-test # use custom app name
export APP_SUBDOMAIN=union-mcp-v2-test # use custom app subdomainCreate a Flyte v2 config file:
uv run --with '.[v2]' flyte create config --endpoint $FLYTE_ENDPOINT --project $FLYTE_PROJECT --domain $FLYTE_DOMAINRegister dummy workflows for testing (optional):
uv run --with '.[v2]' flyte deploy --project $FLYTE_PROJECT --domain $FLYTE_DOMAIN examples/v2/workflows.py envRegister the build and run tasks:
uv run --with '.[v2]' flyte deploy --project $FLYTE_PROJECT --domain $FLYTE_DOMAIN app_v2_tasks.pyThen deploy the app:
uv run --with '.[v2]' flyte deploy --project $FLYTE_PROJECT --domain $FLYTE_DOMAIN app_v2.py app