-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
119 lines (100 loc) · 4.13 KB
/
.env.example
File metadata and controls
119 lines (100 loc) · 4.13 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Countly MCP Server - Environment Configuration
# Copy this file to .env and configure your settings
# ==============================================================================
# REQUIRED CONFIGURATION
# ==============================================================================
# Countly Server URL
# The base URL of your Countly server instance
# Example: https://your-countly-instance.com or https://api.count.ly
COUNTLY_SERVER_URL=https://api.count.ly
# ==============================================================================
# AUTHENTICATION (Choose ONE of the following methods)
# ==============================================================================
# Method 1: Direct Auth Token (recommended for development)
# Provide the authentication token directly as an environment variable
# COUNTLY_AUTH_TOKEN=your-auth-token-here
# Method 2: Auth Token File (recommended for production/Docker)
# Provide a path to a file containing the authentication token
# Useful for Docker secrets, Kubernetes secrets, or secure file storage
# COUNTLY_AUTH_TOKEN_FILE=/run/secrets/countly_token
# Note: If neither is set, credentials can be provided:
# - Via HTTP headers (X-Countly-Auth-Token) for HTTP/SSE transport
# - Via tool arguments (countly_auth_token) in individual tool calls
# ==============================================================================
# OPTIONAL CONFIGURATION
# ==============================================================================
# Request Timeout (in milliseconds)
# Maximum time to wait for Countly API responses
# Default: 30000 (30 seconds)
COUNTLY_TIMEOUT=30000
# Analytics Tracking (optional)
# Enable anonymous usage analytics to help improve the MCP server
# All data is aggregated under device ID "mcp" - completely anonymous
# NO authentication tokens, server URLs, or personal data is collected
# Default: false (disabled)
# ENABLE_ANALYTICS=true
# ==============================================================================
# AUTHENTICATION PRIORITY
# ==============================================================================
# The server uses the following priority for authentication:
# 1. HTTP headers (X-Countly-Auth-Token) - for HTTP/SSE transport
# 2. Tool argument (countly_auth_token) - per-request override
# 3. Environment variable (COUNTLY_AUTH_TOKEN)
# 4. Token file (COUNTLY_AUTH_TOKEN_FILE)
#
# Client-provided tokens (1-2) will override server-level tokens (3-4)
# This allows multi-tenant setups where different clients use different tokens
# ==============================================================================
# DOCKER DEPLOYMENT EXAMPLE
# ==============================================================================
# For Docker deployments with secrets:
#
# docker run -d \
# -e COUNTLY_SERVER_URL=https://your-countly-instance.com \
# -e COUNTLY_AUTH_TOKEN_FILE=/run/secrets/countly_token \
# -v /path/to/token/file:/run/secrets/countly_token:ro \
# countly-mcp-server
#
# Or using Docker Compose:
#
# services:
# countly-mcp:
# image: countly-mcp-server
# environment:
# COUNTLY_SERVER_URL: https://your-countly-instance.com
# COUNTLY_AUTH_TOKEN_FILE: /run/secrets/countly_token
# secrets:
# - countly_token
# secrets:
# countly_token:
# file: ./countly_token.txt
# ==============================================================================
# MCP CLIENT CONFIGURATION EXAMPLES
# ==============================================================================
# STDIO Transport (Claude Desktop, local clients):
# {
# "mcpServers": {
# "countly": {
# "command": "node",
# "args": ["/path/to/countly-mcp-server/build/index.js"],
# "env": {
# "COUNTLY_SERVER_URL": "https://your-countly-instance.com",
# "COUNTLY_AUTH_TOKEN": "your-auth-token-here"
# }
# }
# }
# }
#
# HTTP/SSE Transport (VS Code, web clients):
# {
# "servers": {
# "countly-docker": {
# "type": "sse",
# "url": "http://localhost:3000/mcp",
# "headers": {
# "X-Countly-Server-Url": "https://your-countly-instance.com",
# "X-Countly-Auth-Token": "your-auth-token-here"
# }
# }
# }
# }