@anyshift/mcp-proxy 0.4.1 → 0.4.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.
@@ -5,6 +5,10 @@ import { generateQueryAssistSchema, generateJsonlQueryAssistSchema } from './sch
5
5
  import { parseDynatraceDqlResponse, isDynatraceDqlTool, } from './dynatrace.js';
6
6
  // Default minimum character count to trigger file writing
7
7
  const DEFAULT_MIN_CHARS = 1000;
8
+ // Message to include when data is written to file, guiding the LLM on how to use the result
9
+ const FILE_WRITTEN_MESSAGE = `To read this file, use the "execute_jq_query" tool (for JSON/JSONL data extraction and transformation) or "detect_timeseries_anomalies" tool (for time series analysis, if available).
10
+
11
+ IMPORTANT for supporting facts: This tool_id CANNOT be used as the proxy_tool_id in your output's supporting_facts evidence. You must read the file using one of the tools above and use THAT tool's tool_id as the proxy_tool_id to support facts in your output.`;
8
12
  /**
9
13
  * Detect whether content is JSON, JSONL, or plain text
10
14
  */
@@ -251,6 +255,7 @@ async function handleDynatraceDqlResponse(config, tool_id, parsedDql) {
251
255
  wroteToFile: true,
252
256
  filePath: filepath,
253
257
  fileSchema,
258
+ message: FILE_WRITTEN_MESSAGE,
254
259
  };
255
260
  }
256
261
  catch (error) {
@@ -388,6 +393,7 @@ export async function handleToolResponse(config, toolName, args, responseData) {
388
393
  wroteToFile: true,
389
394
  filePath: filepath,
390
395
  fileSchema,
396
+ message: FILE_WRITTEN_MESSAGE,
391
397
  };
392
398
  }
393
399
  catch (error) {
@@ -74,4 +74,6 @@ export interface UnifiedToolResponse {
74
74
  isRetryAttempt?: boolean;
75
75
  /** The original tool_id this call is retrying */
76
76
  originalToolId?: string;
77
+ /** Informational message for the LLM (e.g., guidance on how to use the file) */
78
+ message?: string;
77
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anyshift/mcp-proxy",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Generic MCP proxy that adds truncation, file writing, and JQ capabilities to any MCP server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",