@dynatrace-oss/dynatrace-mcp-server 1.7.2-dev.20260323073349 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.js +11 -4
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased Changes
4
4
 
5
+ ## 1.7.2
6
+
7
+ - Fixed: Empty string values for `OAUTH_CLIENT_ID`, `OAUTH_CLIENT_SECRET`, and `DT_PLATFORM_TOKEN` environment variables are now treated as unset, preventing authentication failures when tools like Claude Desktop set blank fields to `""`. A warning is logged when an empty string is detected.
8
+
5
9
  ## 1.7.1
6
10
 
7
11
  - Fixed MCPB bundle file not working on Claude Desktop
package/index.js CHANGED
@@ -115306,7 +115306,7 @@ var {
115306
115306
  } = import_index2.default;
115307
115307
 
115308
115308
  // package.json
115309
- var version2 = "1.7.2-dev.20260323073349";
115309
+ var version2 = "1.7.2";
115310
115310
 
115311
115311
  // src/utils/version.ts
115312
115312
  function getPackageJsonVersion() {
@@ -116512,10 +116512,17 @@ var chatWithDavisCopilot = async (dtClient, text, context, annotations, state) =
116512
116512
  };
116513
116513
 
116514
116514
  // src/getDynatraceEnv.ts
116515
+ function normalizeOptionalEnvVar(name, value) {
116516
+ if (value === "") {
116517
+ console.warn(`\u26A0\uFE0F ${name} is set to an empty string \u2013 ignoring it and treating it as unset.`);
116518
+ return void 0;
116519
+ }
116520
+ return value;
116521
+ }
116515
116522
  function getDynatraceEnv(env = process.env) {
116516
- const oauthClientId = env.OAUTH_CLIENT_ID;
116517
- const oauthClientSecret = env.OAUTH_CLIENT_SECRET;
116518
- const dtPlatformToken = env.DT_PLATFORM_TOKEN;
116523
+ const oauthClientId = normalizeOptionalEnvVar("OAUTH_CLIENT_ID", env.OAUTH_CLIENT_ID);
116524
+ const oauthClientSecret = normalizeOptionalEnvVar("OAUTH_CLIENT_SECRET", env.OAUTH_CLIENT_SECRET);
116525
+ const dtPlatformToken = normalizeOptionalEnvVar("DT_PLATFORM_TOKEN", env.DT_PLATFORM_TOKEN);
116519
116526
  const dtEnvironment = env.DT_ENVIRONMENT;
116520
116527
  const slackConnectionId = env.SLACK_CONNECTION_ID || "fake-slack-connection-id";
116521
116528
  let grailBudgetGB = parseFloat(env.DT_GRAIL_QUERY_BUDGET_GB || "1000");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace-oss/dynatrace-mcp-server",
3
- "version": "1.7.2-dev.20260323073349",
3
+ "version": "1.7.2",
4
4
  "mcpName": "io.github.dynatrace-oss/Dynatrace-mcp",
5
5
  "description": "Model Context Protocol (MCP) server for Dynatrace",
6
6
  "keywords": [