1
0
Эх сурвалжийг харах

fix: Reduce codegraph_explore output limit to stay under MCP client token limits

Decreases maximum output from 50,000 to 35,000 characters to prevent exceeding ~10k token limits in MCP clients that could cause truncation or errors when processing exploration results.
Colby McHenry 2 сар өмнө
parent
commit
0d6f460b15
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      src/mcp/tools.ts

+ 2 - 2
src/mcp/tools.ts

@@ -601,8 +601,8 @@ export class ToolHandler {
     return this.textResult(this.truncateOutput(formatted));
   }
 
-  /** Maximum output for explore tool (much larger than standard tools) */
-  private static readonly EXPLORE_MAX_OUTPUT = 50000;
+  /** Maximum output for explore tool — sized to stay under MCP client token limits (~10k tokens) */
+  private static readonly EXPLORE_MAX_OUTPUT = 35000;
 
   /**
    * Handle codegraph_explore — deep exploration in a single call