@dynatrace-oss/dynatrace-mcp-server 1.7.7-dev.20260408064607 → 1.7.7-dev.20260408070049
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.
- package/index.js +35 -25
- package/package.json +1 -1
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.7-dev.
|
|
115309
|
+
var version2 = "1.7.7-dev.20260408070049";
|
|
115310
115310
|
|
|
115311
115311
|
// src/utils/version.ts
|
|
115312
115312
|
function getPackageJsonVersion() {
|
|
@@ -117029,35 +117029,45 @@ var main = async () => {
|
|
|
117029
117029
|
dtPlatformToken
|
|
117030
117030
|
);
|
|
117031
117031
|
};
|
|
117032
|
-
|
|
117033
|
-
|
|
117034
|
-
|
|
117035
|
-
|
|
117036
|
-
|
|
117032
|
+
const isDemoEnvironment = dtEnvironment.includes("abc12345");
|
|
117033
|
+
if (isDemoEnvironment) {
|
|
117034
|
+
console.error(
|
|
117035
|
+
`\u26A0\uFE0F Demo configuration detected (${dtEnvironment}). Skipping connection tests. Tool calls will not work until a real Dynatrace environment is configured.`
|
|
117036
|
+
);
|
|
117037
|
+
} else {
|
|
117038
|
+
console.error(`Testing connection to Dynatrace environment: ${dtEnvironment}...`);
|
|
117039
|
+
try {
|
|
117040
|
+
const response = await fetch(`${dtEnvironment}`).then((response2) => response2.text());
|
|
117041
|
+
if (response && response.length > 0) {
|
|
117042
|
+
if (response.includes("Authentication required")) {
|
|
117043
|
+
} else {
|
|
117044
|
+
console.error(`\u26A0\uFE0F Tried to contact ${dtEnvironment}, got the following response: ${response}`);
|
|
117045
|
+
}
|
|
117037
117046
|
} else {
|
|
117038
|
-
|
|
117047
|
+
throw new Error("No response received");
|
|
117039
117048
|
}
|
|
117040
|
-
}
|
|
117041
|
-
throw new Error("No response received");
|
|
117042
|
-
}
|
|
117043
|
-
} catch (error46) {
|
|
117044
|
-
console.error(`\u274C Failed to connect to Dynatrace environment ${dtEnvironment}:`, error46.message);
|
|
117045
|
-
console.error(error46);
|
|
117046
|
-
process.exit(3);
|
|
117047
|
-
}
|
|
117048
|
-
try {
|
|
117049
|
-
const dtClient = await createAuthenticatedHttpClient(scopesBase);
|
|
117050
|
-
const environmentInformationClient = new import_client_platform_management_service.EnvironmentInformationClient(dtClient);
|
|
117051
|
-
await environmentInformationClient.getEnvironmentInformation();
|
|
117052
|
-
console.error(`\u2705 Successfully connected to the Dynatrace environment at ${dtEnvironment}.`);
|
|
117053
|
-
} catch (error46) {
|
|
117054
|
-
if ((0, import_shared_errors.isClientRequestError)(error46)) {
|
|
117055
|
-
console.error(`\u274C Failed to connect to Dynatrace environment ${dtEnvironment}:`, handleClientRequestError(error46));
|
|
117056
|
-
} else {
|
|
117049
|
+
} catch (error46) {
|
|
117057
117050
|
console.error(`\u274C Failed to connect to Dynatrace environment ${dtEnvironment}:`, error46.message);
|
|
117058
117051
|
console.error(error46);
|
|
117052
|
+
process.exit(3);
|
|
117053
|
+
}
|
|
117054
|
+
try {
|
|
117055
|
+
const dtClient = await createAuthenticatedHttpClient(scopesBase);
|
|
117056
|
+
const environmentInformationClient = new import_client_platform_management_service.EnvironmentInformationClient(dtClient);
|
|
117057
|
+
await environmentInformationClient.getEnvironmentInformation();
|
|
117058
|
+
console.error(`\u2705 Successfully connected to the Dynatrace environment at ${dtEnvironment}.`);
|
|
117059
|
+
} catch (error46) {
|
|
117060
|
+
if ((0, import_shared_errors.isClientRequestError)(error46)) {
|
|
117061
|
+
console.error(
|
|
117062
|
+
`\u274C Failed to connect to Dynatrace environment ${dtEnvironment}:`,
|
|
117063
|
+
handleClientRequestError(error46)
|
|
117064
|
+
);
|
|
117065
|
+
} else {
|
|
117066
|
+
console.error(`\u274C Failed to connect to Dynatrace environment ${dtEnvironment}:`, error46.message);
|
|
117067
|
+
console.error(error46);
|
|
117068
|
+
}
|
|
117069
|
+
process.exit(2);
|
|
117059
117070
|
}
|
|
117060
|
-
process.exit(2);
|
|
117061
117071
|
}
|
|
117062
117072
|
console.error(`Starting Dynatrace MCP Server v${getPackageJsonVersion()}...`);
|
|
117063
117073
|
const createConfiguredMcpServer = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace-oss/dynatrace-mcp-server",
|
|
3
|
-
"version": "1.7.7-dev.
|
|
3
|
+
"version": "1.7.7-dev.20260408070049",
|
|
4
4
|
"mcpName": "io.github.dynatrace-oss/Dynatrace-mcp",
|
|
5
5
|
"description": "Model Context Protocol (MCP) server for Dynatrace",
|
|
6
6
|
"keywords": [
|