@dynatrace-oss/dynatrace-mcp-server 1.5.0-beta.4 → 1.5.1

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 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`;