Skip to main content
Glama
deployment_v2.md1.62 kB
# Union v2 MCP deployment This file contains instructions for deploying the Union v2 MCP server. ## Setup Clone the repo: ```bash git clone https://github.com/unionai-oss/union-mcp ``` Install `uv` and the `union-mcp` package: ```bash pip install uv ``` ## Running a local server ```bash DISABLE_AUTH=1 uv run --with '.[v2]' union run mcp run examples/v2/server.py --transport sse ``` ## Deploy app to Union Create a config file: ```bash uv run --with union union create login --host <host> ``` Then export environment variables: ```bash export UNION_CONFIG=... # path to union config file export UNION_ORG=union-internal # use custom org name export UNION_PROJECT=union-mcp # use custom project name export UNION_DOMAIN=development # use custom domain name export APP_NAME=union-mcp-v2 # use custom app name export APP_SUBDOMAIN=mcp-v2 # use custom app subdomain export APP_PORT=8000 # use custom app port ``` Create a Flyte v2 config file: ```bash uv run --with '.[v2]' flyte create config --endpoint <endpoint> --project $UNION_PROJECT --domain $UNION_DOMAIN ``` Register dummy workflows for testing (optional): ```bash uv run --with '.[v2]' flyte deploy --project $UNION_PROJECT --domain $UNION_DOMAIN examples/v2/workflows.py env ``` Create a secret for the authentication token: ```bash uv run --with union union create secret \ --project $UNION_PROJECT \ --domain $UNION_DOMAIN \ UNION_MCP_AUTH_TOKEN \ --value <your-token> ``` Then deploy the app: ```bash uv run --with union union deploy apps --project $UNION_PROJECT --domain $UNION_DOMAIN app_v2.py $APP_NAME ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/unionai-oss/union-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server