You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/middleware/jqschema.go
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,10 @@ var logMiddleware = logger.New("middleware:jqschema")
22
22
// This prevents malformed queries or large payloads from causing hangs
23
23
constDefaultJqTimeout=5*time.Second
24
24
25
+
// PayloadPreviewSize is the maximum number of characters to include in the payload preview
26
+
// This controls how much of the original payload is returned inline when a payload is stored to disk
27
+
constPayloadPreviewSize=500
28
+
25
29
// PayloadTruncatedInstructions is the message returned to clients when a payload
26
30
// has been truncated and saved to the filesystem
27
31
constPayloadTruncatedInstructions="The payload was too large for an MCP response. The complete original response data is saved as a JSON file at payloadPath. The file contains valid JSON that can be parsed directly. The payloadSchema shows the structure and types of fields in the full response, but not the actual values. To access the full data with all values, read and parse the JSON file at payloadPath."
0 commit comments