converse-mcp-server 2.4.0 → 2.4.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/docs/API.md CHANGED
@@ -101,9 +101,9 @@ MCP_TRANSPORT=stdio npm start
101
101
  },
102
102
  "media_resolution": {
103
103
  "type": "string",
104
- "enum": ["low", "medium", "high"],
105
- "default": "high",
106
- "description": "Control image/PDF/video processing quality (Gemini 3.0 only). Defaults to 'high' for Gemini 3.0. Examples: 'low' (faster, less detail), 'medium' (balanced), 'high' (maximum detail)"
104
+ "enum": ["MEDIA_RESOLUTION_LOW", "MEDIA_RESOLUTION_MEDIUM", "MEDIA_RESOLUTION_HIGH", "MEDIA_RESOLUTION_UNSPECIFIED"],
105
+ "default": "MEDIA_RESOLUTION_HIGH",
106
+ "description": "Control image/PDF/video processing quality (Gemini 3.0). Defaults to 'MEDIA_RESOLUTION_HIGH' for Gemini 3.0. Examples: 'MEDIA_RESOLUTION_LOW' (faster, less detail), 'MEDIA_RESOLUTION_MEDIUM' (balanced), 'MEDIA_RESOLUTION_HIGH' (maximum detail)"
107
107
  },
108
108
  "async": {
109
109
  "type": "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "converse-mcp-server",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
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",
@@ -553,14 +553,28 @@ export const googleProvider = {
553
553
 
554
554
  // Add media resolution for Gemini 3.0 models
555
555
  if (modelConfig.thinkingMode === 'level') {
556
- // Default to "high" for Gemini 3.0 if not specified
557
- const resolution = media_resolution || 'high';
558
- if (['low', 'medium', 'high'].includes(resolution)) {
556
+ // Default to MEDIA_RESOLUTION_HIGH for Gemini 3.0 if not specified
557
+ const resolution = media_resolution || 'MEDIA_RESOLUTION_HIGH';
558
+ const validResolutions = [
559
+ 'MEDIA_RESOLUTION_LOW',
560
+ 'MEDIA_RESOLUTION_MEDIUM',
561
+ 'MEDIA_RESOLUTION_HIGH',
562
+ 'MEDIA_RESOLUTION_UNSPECIFIED',
563
+ ];
564
+ if (validResolutions.includes(resolution)) {
559
565
  generationConfig.mediaResolution = resolution;
560
566
  }
561
- } else if (media_resolution && ['low', 'medium', 'high'].includes(media_resolution)) {
567
+ } else if (media_resolution) {
562
568
  // For other models, only add if explicitly specified
563
- generationConfig.mediaResolution = media_resolution;
569
+ const validResolutions = [
570
+ 'MEDIA_RESOLUTION_LOW',
571
+ 'MEDIA_RESOLUTION_MEDIUM',
572
+ 'MEDIA_RESOLUTION_HIGH',
573
+ 'MEDIA_RESOLUTION_UNSPECIFIED',
574
+ ];
575
+ if (validResolutions.includes(media_resolution)) {
576
+ generationConfig.mediaResolution = media_resolution;
577
+ }
564
578
  }
565
579
 
566
580
  // Add web search grounding if requested and model supports it