-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.env.template
More file actions
82 lines (80 loc) · 3.01 KB
/
Copy path.env.template
File metadata and controls
82 lines (80 loc) · 3.01 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
## Dynatrace Managed Configuration
#
# NOTE ON HTTP MODE (--http): the server uses NO server-side tokens. Each user passes their own
# per-environment tokens in the X-Dynatrace-Tokens request header (alias=token;alias=token), so
# the config only needs alias + URLs (no apiToken). The methods below apply to stdio/local mode.
# See examples/dt-config-http.yaml and examples/mcp-config-http.json for HTTP setup.
#
# Choose ONE of the following configuration methods (stdio/local mode):
#
# METHOD 1 (RECOMMENDED): Use a configuration file
# - Clean, readable format (JSON or YAML)
# - Support for comments (YAML)
# - Environment variable interpolation with ${VAR_NAME}
# - Version control friendly (commit config, not tokens)
#
# DT_CONFIG_FILE=./dt-config.yaml
# DT_PROD_TOKEN=dt0c01.ABC123...
# DT_STAGING_TOKEN=dt0c01.XYZ789...
#
# See examples/dt-config.yaml or examples/dt-config.json for config file examples
#
# METHOD 2: Use JSON string (useful for Kubernetes/Docker)
# - Cumbersome for local development (quote escaping required)
# - Mandatory keys: "apiEndpointUrl", "environmentId", "alias", "apiToken"
#
# DT_ENVIRONMENT_CONFIGS='[
# {
# "dynatraceUrl": "https://my-dashboard-endpoint.com/",
# "apiEndpointUrl": "https://my-api-endpoint.com/",
# "environmentId": "my-env-id-1",
# "alias": "alias-env",
# "apiToken": "my-api-token",
# "httpProxyUrl": "",
# "httpsProxyUrl": ""
# },
# {
# "dynatraceUrl": "https://my-dashboard2-endpoint.com/",
# "apiEndpointUrl": "https://my-api2-endpoint.com/",
# "environmentId": "my-env-id-2",
# "alias": "alias-env-2",
# "apiToken": "my-api-token-2",
# "httpProxyUrl": "",
# "httpsProxyUrl": ""
# }
# ]'
#
# Priority: DT_CONFIG_FILE > DT_ENVIRONMENT_CONFIGS
# Proxy configuration optional (for corporate environments)
# Mandatory keys are: "apiEndpointUrl", "environmentId", "alias" and "apiToken"
## Logging Configuration (optional)
# LOG_LEVEL: Log verbosity level (debug, info, warn, error). Default: info
# LOG_OUTPUT: Where to send logs. Options:
# - file (default): Write to log file
# - stdout / console: Write to standard output
# - stderr: Write errors/warnings to standard error
# - stderr-all: Write all logs to standard error
# - file+console / file+stdout: Write to both file and stdout
# - file+stderr: Write to file and errors/warnings to stderr
# - disabled: No logging
# LOG_FILE: Path to log file (only used when LOG_OUTPUT includes 'file'). Default: dynatrace-managed-mcp.log
DT_ENVIRONMENT_CONFIGS='[
{
"dynatraceUrl": "https://my-dashboard-endpoint.com/",
"apiEndpointUrl": "https://my-api-endpoint.com/",
"environmentId": "my-env-id-1",
"alias": "alias-env",
"apiToken": "my-api-token",
"httpProxyUrl": "",
"httpsProxyUrl": ""
},
{
"dynatraceUrl": "https://my-dashboard2-endpoint.com/",
"apiEndpointUrl": "https://my-api2-endpoint.com/",
"environmentId": "my-env-id-2",
"alias": "alias-env-2",
"apiToken": "my-api-token-2",
"httpProxyUrl": "",
"httpsProxyUrl": ""
}
]'