Skip to main content
Version: 2.0.0

Install / Deploy

Enterprise AI Agent Deployment

Prerequisites

RequirementDetails
Python3.8 or higher
OSWindows or Linux
RAMMinimum 8 GB (16 GB recommended for production)
SAP AI CoreAccess credentials required
HANA DatabaseConnection per tenant
SharePointIntegration credentials (optional)
Microsoft Graph APIRequired for calendar features

Step 1 — Set Up Python Environment

python -m venv venv

# Windows
.\venv\Scripts\Activate.ps1

# Linux
source venv/bin/activate

pip install -r requirements.txt

Step 2 — Initialize Database

python -c "from database import init_all_engines; init_all_engines()"

Step 3 — Build & Push Docker Image to Azure Container Registry

# Login to Azure
az login
az acr login -n wblnd

# Build and push image
docker build -t wblnd.azurecr.io/agent-cherry-backend:v3.0.1 .
docker push wblnd.azurecr.io/agent-cherry-backend:v3.0.1

Step 4 — Deploy to Cloud Foundry (SAP BTP)

# Login to Cloud Foundry (SSO)
cf8 login --sso

# If API endpoint is not shown, set it manually
cf8 api https://api.cf.eu10-004.hana.ondemand.com

# A URL will be displayed — paste it in your browser to get the SSO passcode
# (Use default origin or token-based login as applicable)

# Set Docker registry password
set CF_DOCKER_PASSWORD=your_password

# Push the application
cf8 push

Step 5 — Verify Deployment

CheckURL
API Documentationhttp://localhost:8000/docs
Health Endpointhttp://localhost:8000/health
Metrics Endpointhttp://localhost:8000/metrics

Alternative — Run Locally Without Docker

# Development
uvicorn main:app --host 0.0.0.0 --port 8000 --reload

# Production (direct)
gunicorn main:app -w 4 -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000

MCP Server Install/Deployment

Prerequisites

RequirementWho Provides It
Python 3.8+Developer workstation / CI environment
requirements.txtAvailable in the project repository
Environment variables (API keys, DB connection, FAISS path)DevOps / Platform team
FAISS index file (.faiss)Data / ML team
Backend service URLs (dev / qa / prod)Integration / Infrastructure team

Step 1 — Create & Activate Virtual Environment

python -m venv venv

# Windows
.\venv\Scripts\Activate.ps1

# macOS / Linux
source venv/bin/activate

Step 2 — Install Dependencies

pip install -r requirements.txt

Step 3 — Set Minimum Required Environment Variables

FAISS_INDEX_PATH=faiss_index/soa_dev/index.faiss
DB_CONN=<your-database-connection-string>

See Section 2 (How to Configure) for the full list of supported variables.

Step 4 — Start the Server

python main.py

Key Files to Know

FilePurpose
main.pyApplication entry point
requirements.txtPython dependency list
manifest.yamlTool and service metadata
db_config.pyDatabase configuration

Verify the Server is Running

CheckEndpoint
Health / StatusGET /status
Tool DiscoveryPOST /mcp/{env} with tools/list method