/dynatrace-managed-mcp:dynatrace-managedfrom Dynatrace Managed
Configures and queries Dynatrace Managed (self-hosted) via MCP server: cluster connections, API tokens, environment selection, and entity selectors for logs, metrics, events, problems, security vulnerabilities, and SLOs.
Ships in Dynatrace Managed. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guidance for driving the dynatrace-managed MCP server. The server sends its own detailed tool
instructions on connect - this skill covers what it cannot: getting it configured, and adapting
queries to this repository's own components and tagging strategy.
The server exits at startup unless exactly one configuration source is present. If tool calls fail
with Configuration not found, or dynatrace_managed_get_environments_info reports configuration
errors, the user needs to supply credentials - no amount of retrying will fix it.
When installed as a plugin, the client prompts for DT_ENVIRONMENT_CONFIGS up front and injects it
into the server, so this is usually already handled. Outside that flow there are two mutually
exclusive options, in priority order:
DT_CONFIG_FILE - path to a JSON or YAML file describing the environments. Preferred for more
than one cluster. Write apiToken: ${DT_PROD_TOKEN} and the loader interpolates that variable at
runtime, so the file itself stays free of secrets and can be committed.DT_ENVIRONMENT_CONFIGS - a JSON array as a single environment variable. Preferred for one
cluster and for containerized setups.Setting both logs a warning and DT_CONFIG_FILE wins.
Minimal DT_ENVIRONMENT_CONFIGS value:
[
{
"alias": "production",
"apiEndpointUrl": "https://dynatrace.example.com",
"environmentId": "abc12345-1234-1234-1234-123456789abc",
"apiToken": "dt0c01...."
}
]
The API token needs read-only scopes. Point the user at docs/api_token_scopes.md rather than guessing which scopes a given tool requires, and at docs/environment_variables.md for the full variable list.
Never write a real API token into a file that is tracked by git, and never echo one back in chat.
Call dynatrace_managed_get_environments_info before any other tool. It returns the configured
aliases along with per-environment connection and configuration errors. Report those errors to the
user before doing anything else - a partially reachable cluster produces silently incomplete
answers.
Every subsequent tool call takes an environment_alias. Use ALL_ENVIRONMENTS only when the user
genuinely wants every cluster fanned out; it multiplies load on self-hosted infrastructure.
Two ambiguities cause most wrong answers here:
alias from the configuration, and state in the
answer which environment the data came from. Do not average or merge results across environments
without saying so.Dynatrace Managed is self-hosted, so an expensive query degrades the user's own cluster.
now-1h, now-24h. Reach for now-7d or wider only when the
question is explicitly historical.entitySelector instead of retrieving broadly and post-filtering.limit - do not approximate with
searchText.dynatrace_managed_list_problems, not the P-XXXXX display IDs.dynatrace_managed_discover_entities always requires an entitySelector, and a selector may name
exactly one entity type. Comma-separated criteria are ANDed.
type("SERVICE"),entityName.contains("checkout")
type("SERVICE"),tag("environment:production"),tag("app:checkout")
type("HOST"),healthState("HEALTHY"),mzName("Production")
type("AWS_LAMBDA_FUNCTION"),tag("AWS_REGION:us-west-2")
entityId("SERVICE-123","SERVICE-456")
Invalid, and worth recognizing before the API rejects them:
type(SERVICE),type(PROCESS_GROUP) # only one type per query
entityName("my-service") # type() required unless entityId() is used
entityId("ID1") or entityId("ID2") # no OR; pass both IDs to one entityId()
Replace the placeholders below with the components and tags actually in use, and keep the list next to whatever else describes this system. A selector tuned to real tags is the single biggest quality win available here.
Services: type("SERVICE"),tag("app:<your-app>")
Process groups: type("PROCESS_GROUP"),entityName.contains("<your-app>")
Containers: type("CONTAINER_GROUP_INSTANCE"),entityName.contains("<your-app>")
Hosts: type("HOST"),tag("environment:production"),tag("app:<your-app>")
If the tagging strategy is unknown, discover it first with
dynatrace_managed_list_entity_types and dynatrace_managed_get_entity_type_details rather than
inventing tag keys.
Simple form: a case-insensitive text search, e.g. error.
Structured form, which can be combined with AND:
content="error" AND dt.entity.host="HOST-94A1B472D04D89D9"
| Goal | Sequence |
|---|---|
| Incident investigation | list_problems -> get_problem_details |
| Security assessment | list_security_problems -> get_security_problem_details |
| SLO / error budget | list_slos -> get_slo_details |
| Entity exploration | list_entity_types -> discover_entities -> get_entity_details -> list_problems or list_events scoped by that entity ID |
All tool names carry the dynatrace_managed_ prefix. Each response ends with a Next Steps footer -
read it, it names the tool that usefully follows.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dynatrace, observability, mcp-server, self-hosted, monitoring
npx claudepluginhub dynatrace-oss/dynatrace-managed-mcp --plugin dynatrace-managed-mcpOther plugins' skills for the same job