@dynatrace-oss/dynatrace-mcp-server 1.5.0-beta.4 ā 1.5.0
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/dist/index.js +3 -1
- package/dist/utils/version.js +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -624,6 +624,9 @@ const main = async () => {
|
|
|
624
624
|
}
|
|
625
625
|
result += `\nš **Query Results**: (${response.records?.length || 0} records) ā rendered by the MCP App UI below.\n`;
|
|
626
626
|
result += `\n> ā¹ļø The MCP App is rendering the results interactively. Do NOT generate Mermaid diagrams, ASCII charts, or markdown tables from this data.`;
|
|
627
|
+
if (response.records && response.records.length > 0) {
|
|
628
|
+
result += `\n\`\`\`json\n${JSON.stringify(response.records, null, 2)}\n\`\`\`\n`;
|
|
629
|
+
}
|
|
627
630
|
// Return structured data in _meta for MCP App UI instead of embedding in text
|
|
628
631
|
return {
|
|
629
632
|
text: result,
|
|
@@ -745,7 +748,6 @@ const main = async () => {
|
|
|
745
748
|
}
|
|
746
749
|
const response = await (0, davis_copilot_1.chatWithDavisCopilot)(dtClient, text, conversationContext);
|
|
747
750
|
let resp = `š¤ Davis CoPilot Response:\n\n`;
|
|
748
|
-
resp += `**Your Question:** "${text}"\n\n`;
|
|
749
751
|
if (response.text) {
|
|
750
752
|
// Typically, text is empty if status is FAILED
|
|
751
753
|
resp += `**Answer:**\n${response.text}\n\n`;
|
package/dist/utils/version.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.getPackageJsonVersion = getPackageJsonVersion;
|
|
|
4
4
|
const package_json_1 = require("../../package.json");
|
|
5
5
|
/**
|
|
6
6
|
* Gets the current version of the Dynatrace MCP Server from package.json
|
|
7
|
-
* Note: package.json
|
|
7
|
+
* Note: we have package.json listed in exports, such that we can ensure it's always part of the bundle
|
|
8
8
|
* @returns The version string from package.json
|
|
9
9
|
*/
|
|
10
10
|
function getPackageJsonVersion() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace-oss/dynatrace-mcp-server",
|
|
3
|
-
"version": "1.5.0
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"mcpName": "io.github.dynatrace-oss/Dynatrace-mcp",
|
|
5
5
|
"description": "Model Context Protocol (MCP) server for Dynatrace",
|
|
6
6
|
"keywords": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"main": "./dist/index.js",
|
|
13
13
|
"type": "commonjs",
|
|
14
14
|
"bin": {
|
|
15
|
-
"mcp-server-dynatrace": "dist/index.js"
|
|
15
|
+
"mcp-server-dynatrace": "./dist/index.js"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
"./package.json": "./package.json",
|
|
22
22
|
".": {
|
|
23
|
-
"
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"default": "./index.js"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
"bugs": {
|