feat: expand MCP server functionality with customer, catalogue, marketing, and user tools and integrate new health indicators and configuration models.

This commit is contained in:
2026-08-11 16:31:52 +07:00
parent 9a26c6ce2d
commit 8ecd27dd0e
188 changed files with 5672 additions and 983 deletions

View File

@@ -1,7 +1,47 @@
# ========================================
# Loyalty Agent Service — Environment Variables
# Copy to .env and fill in real values
# ========================================
# --- MCP Server (loyalty-mcp-server :9331) ---
KEYCLOAK_CLIENT_ID=ols-cli
KEYCLOAK_CLIENT_SECRET=your_client_secret_here
KEYCLOAK_TOKEN_URI=http://192.168.99.235/auth/realms/ols-cn-sit/protocol/openid-connect/token
LOYALTY_CORE_BASE_URL=http://192.168.99.242:8081
KEYCLOAK_TOKEN_URI=http://your-keycloak-host/auth/realms/your-realm/protocol/openid-connect/token
LOYALTY_CORE_BASE_URL=http://localhost:8081
# --- Agent (loyalty-agent :9332) ---
MCP_SERVER_URL=http://localhost:9331/sse
# Database
SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5433/loyalty_agent
SPRING_DATASOURCE_USERNAME=postgres
SPRING_DATASOURCE_PASSWORD=your_db_password_here
# Ollama (LLM)
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=qwen3.5:4b
# Agent model routing (optional overrides)
CHAT_OLLAMA_BASE_URL=http://localhost:11434
CHAT_MODEL=qwen2.5:1.5b
CHAT_MODEL_TEMPERATURE=0.7
CHAT_MODEL_NUM_CTX=8192
CHAT_MODEL_DISABLE_THINKING=true
QUERY_OLLAMA_BASE_URL=http://localhost:11434
QUERY_MODEL=qwen3.5:4b
QUERY_MODEL_TEMPERATURE=0.3
QUERY_MODEL_NUM_CTX=32768
QUERY_MODEL_DISABLE_THINKING=false
CREATOR_OLLAMA_BASE_URL=http://localhost:11434
CREATOR_MODEL=qwen3.5:4b
CREATOR_MODEL_TEMPERATURE=0.3
CREATOR_MODEL_NUM_CTX=32768
CREATOR_MODEL_DISABLE_THINKING=false
AGENT_REQUEST_TIMEOUT=120
# --- Frontend (React/Vite :9333) ---
VITE_AGENT_HTTP_URL=http://localhost:9332
VITE_AGENT_WS_URL=ws://localhost:9332