converse-mcp-server 2.20.1 → 2.20.3
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 +3 -3
- package/src/providers/copilot.js +4 -4
- package/src/providers/openai.js +19 -37
- package/src/utils/pathParser.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "converse-mcp-server",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.3",
|
|
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",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@google/genai": "^1.43.0",
|
|
101
101
|
"@mistralai/mistralai": "^1.14.1",
|
|
102
102
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
103
|
-
"@openai/codex-sdk": "^0.
|
|
103
|
+
"@openai/codex-sdk": "^0.110.0",
|
|
104
104
|
"ai": "^6.0.108",
|
|
105
105
|
"ai-sdk-provider-gemini-cli": "^2.0.1",
|
|
106
106
|
"cors": "^2.8.6",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"express": "^5.2.1",
|
|
109
109
|
"lru-cache": "^11.2.6",
|
|
110
110
|
"nanoid": "^5.1.6",
|
|
111
|
-
"openai": "^6.
|
|
111
|
+
"openai": "^6.26.0",
|
|
112
112
|
"p-limit": "^7.3.0",
|
|
113
113
|
"vite": "^7.3.1"
|
|
114
114
|
},
|
package/src/providers/copilot.js
CHANGED
|
@@ -115,9 +115,9 @@ const SUPPORTED_MODELS = {
|
|
|
115
115
|
description: 'OpenAI GPT-5.1 Codex Max via Copilot subscription',
|
|
116
116
|
aliases: [],
|
|
117
117
|
},
|
|
118
|
-
'gpt-5.
|
|
119
|
-
modelName: 'gpt-5.
|
|
120
|
-
friendlyName: 'GPT-5.
|
|
118
|
+
'gpt-5.4': {
|
|
119
|
+
modelName: 'gpt-5.4',
|
|
120
|
+
friendlyName: 'GPT-5.4 (via Copilot)',
|
|
121
121
|
contextWindow: 1047576,
|
|
122
122
|
maxOutputTokens: 32768,
|
|
123
123
|
supportsStreaming: true,
|
|
@@ -126,7 +126,7 @@ const SUPPORTED_MODELS = {
|
|
|
126
126
|
supportsWebSearch: false,
|
|
127
127
|
supportsReasoningEffort: true,
|
|
128
128
|
timeout: 120000,
|
|
129
|
-
description: 'OpenAI GPT-5.
|
|
129
|
+
description: 'OpenAI GPT-5.4 via Copilot subscription',
|
|
130
130
|
aliases: ['gpt-5'],
|
|
131
131
|
},
|
|
132
132
|
'gpt-5.2-codex': {
|
package/src/providers/openai.js
CHANGED
|
@@ -10,45 +10,28 @@ import { debugLog, debugError } from '../utils/console.js';
|
|
|
10
10
|
|
|
11
11
|
// Define supported models with their capabilities
|
|
12
12
|
const SUPPORTED_MODELS = {
|
|
13
|
-
'gpt-5.
|
|
14
|
-
modelName: 'gpt-5.
|
|
15
|
-
friendlyName: 'OpenAI (GPT-5.
|
|
16
|
-
contextWindow:
|
|
13
|
+
'gpt-5.4': {
|
|
14
|
+
modelName: 'gpt-5.4',
|
|
15
|
+
friendlyName: 'OpenAI (GPT-5.4)',
|
|
16
|
+
contextWindow: 1000000,
|
|
17
17
|
maxOutputTokens: 128000,
|
|
18
18
|
supportsStreaming: true,
|
|
19
19
|
supportsImages: true,
|
|
20
|
-
supportsTemperature: false,
|
|
20
|
+
supportsTemperature: false,
|
|
21
21
|
supportsWebSearch: true,
|
|
22
22
|
supportsResponsesAPI: true,
|
|
23
|
-
supportsNoneReasoningEffort: true,
|
|
23
|
+
supportsNoneReasoningEffort: true,
|
|
24
24
|
timeout: 3600000, // 1 hour
|
|
25
25
|
description:
|
|
26
|
-
'Latest flagship model (
|
|
26
|
+
'Latest flagship model (1M context, 128K output) - Superior reasoning, coding, agentic workflows, computer use. Most token-efficient reasoning model',
|
|
27
27
|
aliases: [
|
|
28
28
|
'gpt-5',
|
|
29
29
|
'gpt5',
|
|
30
30
|
'gpt 5',
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'gpt 5.2',
|
|
31
|
+
'gpt5.4',
|
|
32
|
+
'gpt 5.4',
|
|
34
33
|
],
|
|
35
34
|
},
|
|
36
|
-
'gpt-5-2025-08-07': {
|
|
37
|
-
modelName: 'gpt-5-2025-08-07',
|
|
38
|
-
friendlyName: 'OpenAI (GPT-5.0)',
|
|
39
|
-
contextWindow: 400000,
|
|
40
|
-
maxOutputTokens: 128000,
|
|
41
|
-
supportsStreaming: true,
|
|
42
|
-
supportsImages: true,
|
|
43
|
-
supportsTemperature: false, // GPT-5 doesn't support temperature
|
|
44
|
-
supportsWebSearch: true,
|
|
45
|
-
supportsResponsesAPI: true,
|
|
46
|
-
supportsNoneReasoningEffort: false, // GPT-5.0 does not support "none" reasoning
|
|
47
|
-
timeout: 3600000, // 1 hour
|
|
48
|
-
description:
|
|
49
|
-
'GPT-5.0 model (400K context, 128K output) - Previous version, accessible via fully qualified name',
|
|
50
|
-
aliases: ['gpt-5.0', 'gpt5.0', 'gpt 5.0'],
|
|
51
|
-
},
|
|
52
35
|
'gpt-5-mini': {
|
|
53
36
|
modelName: 'gpt-5-mini',
|
|
54
37
|
friendlyName: 'OpenAI (GPT-5-mini)',
|
|
@@ -79,27 +62,26 @@ const SUPPORTED_MODELS = {
|
|
|
79
62
|
'Fastest, most cost-efficient GPT-5 (400K context, 128K output) - Summarization, classification',
|
|
80
63
|
aliases: ['gpt5-nano', 'gpt-5nano', 'gpt 5 nano', 'gpt-5-nano-2025-08-07'],
|
|
81
64
|
},
|
|
82
|
-
'gpt-5.
|
|
83
|
-
modelName: 'gpt-5.
|
|
84
|
-
friendlyName: 'OpenAI (GPT-5.
|
|
85
|
-
contextWindow:
|
|
65
|
+
'gpt-5.4-pro': {
|
|
66
|
+
modelName: 'gpt-5.4-pro',
|
|
67
|
+
friendlyName: 'OpenAI (GPT-5.4 Pro)',
|
|
68
|
+
contextWindow: 1000000,
|
|
86
69
|
maxOutputTokens: 272000,
|
|
87
70
|
supportsStreaming: false, // GPT-5 Pro doesn't support streaming
|
|
88
71
|
supportsImages: true,
|
|
89
|
-
supportsTemperature: false,
|
|
72
|
+
supportsTemperature: false,
|
|
90
73
|
supportsWebSearch: true,
|
|
91
74
|
supportsResponsesAPI: true,
|
|
92
|
-
supportsDeepResearch: false,
|
|
93
|
-
timeout: 3600000, // 60 minutes
|
|
75
|
+
supportsDeepResearch: false,
|
|
76
|
+
timeout: 3600000, // 60 minutes
|
|
94
77
|
description:
|
|
95
|
-
'
|
|
78
|
+
'Maximum performance reasoning model (1M context, 272K output) - Most complex tasks, extended compute time (EXPENSIVE)',
|
|
96
79
|
aliases: [
|
|
97
80
|
'gpt-5-pro',
|
|
98
81
|
'gpt5-pro',
|
|
99
82
|
'gpt-5pro',
|
|
100
83
|
'gpt 5 pro',
|
|
101
84
|
'gpt-5 pro',
|
|
102
|
-
'gpt-5.2-pro-2025-12-11',
|
|
103
85
|
],
|
|
104
86
|
},
|
|
105
87
|
o3: {
|
|
@@ -450,7 +432,7 @@ export const openaiProvider = {
|
|
|
450
432
|
) {
|
|
451
433
|
// GPT-5 Pro only supports 'high' reasoning effort
|
|
452
434
|
const effectiveEffort =
|
|
453
|
-
resolvedModel
|
|
435
|
+
resolvedModel.endsWith('-pro') && resolvedModel.startsWith('gpt-5') ? 'high' : reasoning_effort;
|
|
454
436
|
requestPayload.reasoning = {
|
|
455
437
|
effort: effectiveEffort,
|
|
456
438
|
summary: 'auto', // Enable reasoning summaries
|
|
@@ -490,7 +472,7 @@ export const openaiProvider = {
|
|
|
490
472
|
) {
|
|
491
473
|
// GPT-5 Pro only supports 'high' reasoning effort
|
|
492
474
|
const effectiveEffort =
|
|
493
|
-
resolvedModel
|
|
475
|
+
resolvedModel.endsWith('-pro') && resolvedModel.startsWith('gpt-5') ? 'high' : reasoning_effort;
|
|
494
476
|
requestPayload.reasoning_effort = effectiveEffort;
|
|
495
477
|
}
|
|
496
478
|
|
package/src/utils/pathParser.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* Captures: (filePath)(startLine)(endLine)
|
|
17
17
|
* Pattern: ^(.*)\{(\d*):(\d*)\}$
|
|
18
18
|
*/
|
|
19
|
-
const RANGE_PATTERN = /^(.*)\{(\d*)
|
|
19
|
+
const RANGE_PATTERN = /^(.*)\{(\d*)[:\-,;](\d*)\}$/;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Parse a file path that may contain a line range specifier.
|