converse-mcp-server 2.8.2 → 2.8.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "converse-mcp-server",
3
- "version": "2.8.2",
3
+ "version": "2.8.4",
4
4
  "description": "Converse MCP Server - Converse with other LLMs with chat and consensus tools",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -686,8 +686,11 @@ export const anthropicProvider = {
686
686
 
687
687
  const startTime = Date.now();
688
688
 
689
- // Make the API call
690
- const response = await anthropic.messages.create(requestPayload);
689
+ // Make the API call - use beta endpoint when beta features are enabled
690
+ const hasBetaFeatures = betas && betas.length > 0;
691
+ const response = hasBetaFeatures
692
+ ? await anthropic.beta.messages.create(requestPayload)
693
+ : await anthropic.messages.create(requestPayload);
691
694
 
692
695
  const responseTime = Date.now() - startTime;
693
696
  debugLog(`[Anthropic] Response received in ${responseTime}ms`);
@@ -848,8 +851,11 @@ export const anthropicProvider = {
848
851
  // Enable streaming in request payload
849
852
  const streamingPayload = { ...requestPayload, stream: true };
850
853
 
851
- // Create the streaming request
852
- const stream = await anthropic.messages.create(streamingPayload);
854
+ // Create the streaming request - use beta endpoint when beta features are enabled
855
+ const hasBetaFeatures = requestPayload.betas && requestPayload.betas.length > 0;
856
+ const stream = hasBetaFeatures
857
+ ? await anthropic.beta.messages.create(streamingPayload)
858
+ : await anthropic.messages.create(streamingPayload);
853
859
 
854
860
  // Process stream events
855
861
  for await (const event of stream) {
@@ -224,7 +224,8 @@ async function* createStreamingGenerator(
224
224
  // Build query options
225
225
  // Use higher maxTurns to allow for file reading operations
226
226
  const queryOptions = {
227
- maxTurns: 10, // Allow multiple turns for file operations
227
+ model: 'claude-opus-4-5', // Use Opus 4.5 for best quality
228
+ maxTurns: 20, // Allow multiple turns for file operations
228
229
  permissionMode: 'bypassPermissions', // Don't prompt for permissions
229
230
  };
230
231