-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·36 lines (30 loc) · 1.05 KB
/
run.sh
File metadata and controls
executable file
·36 lines (30 loc) · 1.05 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
#!/bin/bash
# Google Ad Manager MCP Server Startup Script
# Required environment variables (no defaults - must be set by user)
if [ -z "$GAM_CREDENTIALS_PATH" ]; then
echo "Error: GAM_CREDENTIALS_PATH environment variable is required."
echo "Set it to the path of your Google Ad Manager service account JSON file."
echo ""
echo "Example:"
echo " export GAM_CREDENTIALS_PATH=/path/to/your/credentials.json"
exit 1
fi
if [ -z "$GAM_NETWORK_CODE" ]; then
echo "Error: GAM_NETWORK_CODE environment variable is required."
echo "Set it to your Google Ad Manager network code."
echo ""
echo "Example:"
echo " export GAM_NETWORK_CODE=12345678"
exit 1
fi
# Optional configuration with defaults
export GAM_MCP_HOST="${GAM_MCP_HOST:-0.0.0.0}"
export GAM_MCP_PORT="${GAM_MCP_PORT:-8000}"
echo "Starting Google Ad Manager MCP Server..."
echo " Credentials: $GAM_CREDENTIALS_PATH"
echo " Network Code: $GAM_NETWORK_CODE"
echo " Host: $GAM_MCP_HOST"
echo " Port: $GAM_MCP_PORT"
echo ""
# Run the server
python -m gam_mcp.server