Files
pos-system/services/goodgo-mcp-server/.env.example
Ho Ngoc Hai 20cf8781b8 fix: MCP server audit — correct API routing through Traefik gateway
CTO Audit findings and fixes:
- Port config: all 4 services were using wrong localhost ports (5002/5003/5004/5019).
  All services run behind Traefik on port 80 — consolidated to single gateway client.
- Route fix: /shops/{shopId}/products → /products?shopId= (Traefik routes /shops to merchant-service)
- Response parsing: dashboard API uses "revenue"/"popularItems" (not "totalRevenue"/"topItems")
- Added .gitignore to prevent .env with JWT tokens from being committed

Verified all 12 tools against live Docker services via Traefik gateway.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 17:03:18 +07:00

13 lines
393 B
Plaintext

# GoodGo MCP Server Configuration
# API Gateway URL (Traefik routes all services by path prefix)
# Docker local: http://localhost/api/v1 (port 80 via Traefik)
# Staging: https://api.staging.goodgo.vn/api/v1
API_GATEWAY_URL=http://localhost/api/v1
# Default shop for convenience (Cobic Coffee)
DEFAULT_SHOP_ID=e1f392af-fe95-4c7f-8656-5b74ad5fd0a9
# JWT token (get from IAM login)
API_TOKEN=