Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
83 lines (70 loc) · 3.26 KB
/
Copy path.env.example
File metadata and controls
83 lines (70 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
###############################################
# Amazon Ads MCP — .env example (complete)
# Copy to .env and customize for your setup
###############################################
# ------------------------
# Server/runtime settings
# ------------------------
# These are consumed by docker-compose to pass CLI args to the server.
# The server reads LOG_LEVEL directly; PORT is also used for OAuth redirect.
TRANSPORT=http # stdio | http | streamable-http
HOST=0.0.0.0
PORT=9080
LOG_LEVEL=INFO # DEBUG | INFO | WARNING | ERROR | CRITICAL
CODE_MODE=true # FastMCP code mode (search/get_schema/execute)
ENABLE_TASKS=true # Background task execution for long-running tools
# OpenAPI parser mode (automatically set by server, but can be overridden)
# FASTMCP_EXPERIMENTAL_ENABLE_NEW_OPENAPI_PARSER=true
# ------------------------
# Authentication selection
# ------------------------
# Choose one provider: direct (BYOA), openbridge, or kuudo
AUTH_METHOD=direct # direct | openbridge | kuudo
# Direct Amazon Ads API authentication (BYOA)
# Supply all three to enable direct auth. You may also set a default
# profile scope for API requests.
#
# AMAZON_AD_API_CLIENT_ID=amzn1.application-oa2-client.xxxxx
# AMAZON_AD_API_CLIENT_SECRET=xxxxxxxxxxxxxxxx
# AMAZON_AD_API_REFRESH_TOKEN=Atzr|IwEBxxxxxxxxxxxxxxxx
# Optional default scope/profile id (also accepts AD_API_PROFILE_ID or AMAZON_ADS_PROFILE_ID)
# AMAZON_AD_API_PROFILE_ID=1234567890
# OpenBridge authentication
# Provide a refresh token in key:secret format. Optionally set a default
# remote identity id to auto-select after startup.
# OPENBRIDGE_REFRESH_TOKEN=xxxxxx
#
# Token resolution priority (runtime):
# 1. X-Openbridge-Token header — preferred for gateway deployments
# 2. Authorization: Bearer — backward compat (direct mode only;
# pattern guard rejects gateway OAuth JWTs)
# 3. OPENBRIDGE_REFRESH_TOKEN — env var fallback (set above)
# Kuudo authentication
# KUUDO_API_BASE_URL=https://amazon-spapi-dev.kuudo.ai/
# KUUDO_API_KEY=sk_xxxxxx
# KUUDO_PROVIDER=amazon_ads
# KUUDO_REMOTE_IDENTITY_ID=connection-id # optional default identity
# ------------------------
# Region & API base
# ------------------------
# Regional routing for direct auth; OpenBridge routes per identity at runtime.
# AMAZON_ADS_REGION=na # na | eu | fe (sets a default region on startup)
# ------------------------
# Amnazon Ads API resources control
# ------------------------
# Restrict loaded API namespaces via allowlist. Accepts comma-separated namespaces
# Examples: "ads-accounts,profiles" or alias groups like "sponsored"
# AMAZON_AD_API_PACKAGES="ads-accounts,profiles"
# ------------------------
# Token persistence
# ------------------------
# Enable persistent refresh token storage (recommended). Change cache dir for Docker.
AMAZON_ADS_TOKEN_PERSIST=true
# Docker typical: /app/.cache/amazon-ads-mcp; Local default: ~/.amazon-ads-mcp/tokens.json
# AMAZON_ADS_CACHE_DIR=/app/.cache/amazon-ads-mcp
# ------------------------
# Downloads (exports/reports)
# ------------------------
# Base directory for downloaded exports/reports. Defaults to ./data when unset.
# For Docker, mount a volume and point this there.
# AMAZON_ADS_DOWNLOAD_DIR=/app/data