converse-mcp-server 3.2.2 → 3.2.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": "3.2.2",
3
+ "version": "3.2.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",
@@ -97,11 +97,10 @@
97
97
  "@anthropic-ai/sdk": "^0.115.0",
98
98
  "@github/copilot-sdk": "^1.0.8",
99
99
  "@google/genai": "^2.13.0",
100
- "@lydell/node-pty": "1.2.0-beta.12",
100
+ "@lydell/node-pty": "1.2.0-beta.14",
101
101
  "@mistralai/mistralai": "^2.5.0",
102
102
  "@modelcontextprotocol/sdk": "^1.29.0",
103
103
  "@openai/codex-sdk": "^0.145.0",
104
- "ai": "^7.0.37",
105
104
  "cors": "^2.8.6",
106
105
  "dotenv": "^17.4.2",
107
106
  "express": "^5.2.1",
@@ -35,7 +35,7 @@ export class JobRunner extends EventEmitter {
35
35
  * @param {object} dependencies.eventBus - EventBus instance (optional, uses global if not provided)
36
36
  * @param {object} options - Configuration options
37
37
  * @param {number} options.concurrency - Maximum concurrent jobs (default: 10)
38
- * @param {number} options.defaultTimeout - Default job timeout in ms (default: 30 minutes)
38
+ * @param {number} options.defaultTimeout - Default job timeout in ms (default: 90 minutes)
39
39
  */
40
40
  constructor(dependencies, options = {}) {
41
41
  super();
@@ -54,7 +54,7 @@ export class JobRunner extends EventEmitter {
54
54
 
55
55
  // Configuration
56
56
  this.concurrency = options.concurrency || 10;
57
- this.defaultTimeout = options.defaultTimeout || 30 * 60 * 1000; // 30 minutes
57
+ this.defaultTimeout = options.defaultTimeout || 90 * 60 * 1000; // 90 minutes
58
58
 
59
59
  // Create bounded concurrency limiter
60
60
  this.limiter = pLimit(this.concurrency);
package/src/config.js CHANGED
@@ -78,8 +78,8 @@ const CONFIG_SCHEMA = {
78
78
  },
79
79
  HTTP_REQUEST_TIMEOUT: {
80
80
  type: 'number',
81
- default: 300000,
82
- description: 'HTTP request timeout in milliseconds (5 minutes)',
81
+ default: 900000,
82
+ description: 'HTTP request timeout in milliseconds (15 minutes)',
83
83
  },
84
84
  HTTP_MAX_REQUEST_SIZE: {
85
85
  type: 'string',
@@ -768,7 +768,7 @@ export function getHttpTransportConfig(config) {
768
768
  // Server settings
769
769
  port: transport.port || 3157,
770
770
  host: transport.host || 'localhost',
771
- requestTimeout: transport.requesttimeout || 300000,
771
+ requestTimeout: transport.requesttimeout || 900000,
772
772
  maxRequestSize: transport.maxrequestsize || '10mb',
773
773
 
774
774
  // Session management
@@ -23,7 +23,7 @@ const SUPPORTED_MODELS = {
23
23
  supportsWebSearch: false,
24
24
  supportsThinking: true,
25
25
  supportsAdaptiveThinking: true, // Adaptive thinking is the only thinking mode
26
- timeout: 600000,
26
+ timeout: 1800000,
27
27
  supportsEffort: true,
28
28
  effortGA: true,
29
29
  supportsCompaction: true,
@@ -48,7 +48,7 @@ const SUPPORTED_MODELS = {
48
48
  supportsWebSearch: false,
49
49
  supportsThinking: true,
50
50
  supportsAdaptiveThinking: true, // Thinking is on by default; adaptive is the only on-mode
51
- timeout: 600000,
51
+ timeout: 1800000,
52
52
  supportsEffort: true,
53
53
  effortGA: true,
54
54
  supportsCompaction: true,
@@ -76,7 +76,7 @@ const SUPPORTED_MODELS = {
76
76
  supportsAdaptiveThinking: true,
77
77
  minThinkingTokens: 1024,
78
78
  maxThinkingTokens: 128000,
79
- timeout: 600000,
79
+ timeout: 1800000,
80
80
  supportsEffort: true,
81
81
  effortGA: true,
82
82
  supports1MContext: true,
@@ -106,7 +106,7 @@ const SUPPORTED_MODELS = {
106
106
  supportsAdaptiveThinking: true,
107
107
  minThinkingTokens: 1024,
108
108
  maxThinkingTokens: 128000,
109
- timeout: 600000,
109
+ timeout: 1800000,
110
110
  supportsEffort: true,
111
111
  effortGA: true,
112
112
  supports1MContext: true,
@@ -136,7 +136,7 @@ const SUPPORTED_MODELS = {
136
136
  supportsAdaptiveThinking: true,
137
137
  minThinkingTokens: 1024,
138
138
  maxThinkingTokens: 128000,
139
- timeout: 600000,
139
+ timeout: 1800000,
140
140
  supportsEffort: true,
141
141
  effortGA: true,
142
142
  supports1MContext: true,
@@ -165,7 +165,7 @@ const SUPPORTED_MODELS = {
165
165
  supportsThinking: true,
166
166
  minThinkingTokens: 1024,
167
167
  maxThinkingTokens: 64000,
168
- timeout: 300000,
168
+ timeout: 900000,
169
169
  supportsEffort: true, // Opus 4.5 effort parameter (requires beta header)
170
170
  description:
171
171
  'Claude Opus 4.5 - Previous most intelligent model combining maximum capability with practical performance',
@@ -191,7 +191,7 @@ const SUPPORTED_MODELS = {
191
191
  supportsThinking: true,
192
192
  minThinkingTokens: 1024,
193
193
  maxThinkingTokens: 32000,
194
- timeout: 300000,
194
+ timeout: 900000,
195
195
  description:
196
196
  'Claude Opus 4.1 - Highest level of intelligence and capability with extended thinking',
197
197
  aliases: [
@@ -220,7 +220,7 @@ const SUPPORTED_MODELS = {
220
220
  supportsAdaptiveThinking: true, // Sonnet 4.6: thinking: {type: "adaptive"} recommended
221
221
  minThinkingTokens: 1024,
222
222
  maxThinkingTokens: 64000,
223
- timeout: 300000,
223
+ timeout: 900000,
224
224
  supportsEffort: true,
225
225
  effortGA: true, // Effort is generally available, no beta header required
226
226
  supports1MContext: true, // Beta 1M context support
@@ -251,7 +251,7 @@ const SUPPORTED_MODELS = {
251
251
  supportsThinking: true,
252
252
  minThinkingTokens: 1024,
253
253
  maxThinkingTokens: 64000,
254
- timeout: 300000,
254
+ timeout: 900000,
255
255
  supports1MContext: true, // Beta 1M context support
256
256
  deprecated: true,
257
257
  description:
@@ -275,7 +275,7 @@ const SUPPORTED_MODELS = {
275
275
  supportsThinking: true,
276
276
  minThinkingTokens: 1024,
277
277
  maxThinkingTokens: 64000,
278
- timeout: 300000,
278
+ timeout: 900000,
279
279
  description:
280
280
  'Claude Haiku 4.5 - Fast and intelligent model with extended thinking',
281
281
  aliases: [
@@ -598,8 +598,8 @@ export const anthropicProvider = {
598
598
  // Initialize Anthropic client
599
599
  const anthropic = new Anthropic({
600
600
  apiKey: config.apiKeys.anthropic,
601
- // Increase timeout to 20 minutes for thinking models that may take longer
602
- timeout: 20 * 60 * 1000,
601
+ // Increase timeout to 60 minutes for thinking models that may take longer
602
+ timeout: 60 * 60 * 1000,
603
603
  });
604
604
 
605
605
  // Build beta features array for the request
@@ -29,7 +29,7 @@ const SUPPORTED_MODELS = {
29
29
  supportsStreaming: true,
30
30
  supportsImages: true, // Supported via streaming input mode
31
31
  supportsWebSearch: false, // SDK accesses files directly, not web
32
- timeout: 600000, // 10 minutes
32
+ timeout: 1800000, // 30 minutes
33
33
  description:
34
34
  'Claude Fable 5 via Agent SDK (default) - requires claude login authentication',
35
35
  aliases: [
@@ -50,7 +50,7 @@ const SUPPORTED_MODELS = {
50
50
  supportsStreaming: true,
51
51
  supportsImages: true, // Supported via streaming input mode
52
52
  supportsWebSearch: false, // SDK accesses files directly, not web
53
- timeout: 600000, // 10 minutes
53
+ timeout: 1800000, // 30 minutes
54
54
  description:
55
55
  'Claude Opus 5 via Agent SDK - requires claude login authentication',
56
56
  aliases: ['claude:opus', 'claude-opus-5'],
@@ -32,7 +32,7 @@ const SUPPORTED_MODELS = {
32
32
  // still advertises the pre-5.6 set — the backend is the authority, so the
33
33
  // accepted tiers are declared per model and requests are clamped onto them.
34
34
  supportedEfforts: ['none', 'low', 'medium', 'high', 'xhigh'],
35
- timeout: 600000, // 10 minutes
35
+ timeout: 1800000, // 30 minutes
36
36
  description:
37
37
  'OpenAI Codex agentic coding assistant with local file access and tool execution (GPT-5.6)',
38
38
  aliases: [
@@ -27,7 +27,7 @@ const SUPPORTED_MODELS = {
27
27
  supportsStreaming: true,
28
28
  supportsImages: false,
29
29
  supportsWebSearch: false,
30
- timeout: 600000,
30
+ timeout: 1800000,
31
31
  description:
32
32
  'GitHub Copilot via CLI SDK - uses default or env-configured model',
33
33
  aliases: ['copilot-sdk', 'github-copilot'],
@@ -48,7 +48,7 @@ const SUPPORTED_MODELS = {
48
48
  supportsImages: false,
49
49
  supportsWebSearch: false,
50
50
  supportsReasoningEffort: true,
51
- timeout: 600000,
51
+ timeout: 1800000,
52
52
  description: 'OpenAI GPT-5.6 Sol via Copilot subscription',
53
53
  aliases: ['gpt-5.6', 'gpt-5', 'gpt', 'codex'],
54
54
  },
@@ -61,7 +61,7 @@ const SUPPORTED_MODELS = {
61
61
  supportsImages: false,
62
62
  supportsWebSearch: false,
63
63
  supportsReasoningEffort: true,
64
- timeout: 600000,
64
+ timeout: 1800000,
65
65
  description: 'OpenAI GPT-5.6 Terra via Copilot subscription',
66
66
  aliases: [],
67
67
  },
@@ -74,7 +74,7 @@ const SUPPORTED_MODELS = {
74
74
  supportsImages: false,
75
75
  supportsWebSearch: false,
76
76
  supportsReasoningEffort: true,
77
- timeout: 600000,
77
+ timeout: 1800000,
78
78
  description: 'OpenAI GPT-5.6 Luna via Copilot subscription',
79
79
  aliases: [],
80
80
  },
@@ -88,7 +88,7 @@ const SUPPORTED_MODELS = {
88
88
  supportsStreaming: true,
89
89
  supportsImages: false,
90
90
  supportsWebSearch: false,
91
- timeout: 600000,
91
+ timeout: 1800000,
92
92
  description: 'Anthropic Claude Fable 5 via Copilot subscription',
93
93
  aliases: ['fable'],
94
94
  },
@@ -100,7 +100,7 @@ const SUPPORTED_MODELS = {
100
100
  supportsStreaming: true,
101
101
  supportsImages: false,
102
102
  supportsWebSearch: false,
103
- timeout: 600000,
103
+ timeout: 1800000,
104
104
  description: 'Anthropic Claude Sonnet 5 via Copilot subscription',
105
105
  aliases: ['sonnet'],
106
106
  },
@@ -112,7 +112,7 @@ const SUPPORTED_MODELS = {
112
112
  supportsStreaming: true,
113
113
  supportsImages: false,
114
114
  supportsWebSearch: false,
115
- timeout: 600000,
115
+ timeout: 1800000,
116
116
  description: 'Anthropic Claude Opus 5 via Copilot subscription',
117
117
  aliases: ['opus', 'claude'],
118
118
  },
@@ -124,7 +124,7 @@ const SUPPORTED_MODELS = {
124
124
  supportsStreaming: true,
125
125
  supportsImages: false,
126
126
  supportsWebSearch: false,
127
- timeout: 600000,
127
+ timeout: 1800000,
128
128
  description: 'Anthropic Claude Opus 4.8 via Copilot subscription',
129
129
  aliases: [],
130
130
  },
@@ -139,7 +139,7 @@ const SUPPORTED_MODELS = {
139
139
  supportsStreaming: true,
140
140
  supportsImages: false,
141
141
  supportsWebSearch: false,
142
- timeout: 600000,
142
+ timeout: 1800000,
143
143
  description: 'Google Gemini 3.1 Pro Preview via Copilot subscription',
144
144
  aliases: ['gemini', 'gemini-3.1-pro'],
145
145
  },
@@ -151,7 +151,7 @@ const SUPPORTED_MODELS = {
151
151
  supportsStreaming: true,
152
152
  supportsImages: false,
153
153
  supportsWebSearch: false,
154
- timeout: 600000,
154
+ timeout: 1800000,
155
155
  description: 'Google Gemini 3.5 Flash via Copilot subscription',
156
156
  aliases: ['gemini-flash'],
157
157
  },
@@ -553,7 +553,7 @@ async function checkReasoningSupport(client, modelId) {
553
553
  }
554
554
 
555
555
  async function* createStreamingGenerator(client, prompt, options, signal, config) {
556
- const { model, timeout = 600000, reasoning_effort } = options;
556
+ const { model, timeout = 1800000, reasoning_effort } = options;
557
557
 
558
558
  const sessionModel = resolveSessionModel(model, config);
559
559
  const accessLevel = getToolAccessLevel(config);
@@ -29,7 +29,7 @@ const SUPPORTED_MODELS = {
29
29
  supportsReasoning: true,
30
30
  supportsJsonOutput: true,
31
31
  supportsFunctionCalling: true,
32
- timeout: 600000, // Longer timeout for reasoning
32
+ timeout: 1800000, // Longer timeout for reasoning
33
33
  description:
34
34
  'DeepSeek V4 Pro - flagship MoE model with 1M context and thinking mode',
35
35
  aliases: ['deepseek', 'deepseek-pro'],
@@ -46,7 +46,7 @@ const SUPPORTED_MODELS = {
46
46
  supportsReasoning: true,
47
47
  supportsJsonOutput: true,
48
48
  supportsFunctionCalling: true,
49
- timeout: 600000, // Longer timeout for reasoning
49
+ timeout: 1800000, // Longer timeout for reasoning
50
50
  description:
51
51
  'DeepSeek V4 Flash - faster, lower-cost V4 tier with 1M context and thinking mode',
52
52
  aliases: ['deepseek-flash'],
@@ -37,7 +37,7 @@ import { ProviderError, ErrorCodes, StopReasons } from './interface.js';
37
37
  const ARGV_PROMPT_LIMIT = 24000;
38
38
 
39
39
  // Default print timeout (ms) when the tool layer passes none.
40
- const DEFAULT_TIMEOUT_MS = 600000;
40
+ const DEFAULT_TIMEOUT_MS = 1800000;
41
41
 
42
42
  // Extra wall-clock grace before the JS-side hard kill fires (ms).
43
43
  const HARD_KILL_GRACE_MS = 15000;
@@ -20,7 +20,7 @@ const SUPPORTED_MODELS = {
20
20
  supportsThinking: true,
21
21
  supportsWebSearch: true,
22
22
  maxThinkingTokens: 24576,
23
- timeout: 300000,
23
+ timeout: 900000,
24
24
  description:
25
25
  'Ultra-fast (1M context) - Quick analysis, simple queries, rapid iterations with grounding',
26
26
  aliases: [
@@ -45,7 +45,7 @@ const SUPPORTED_MODELS = {
45
45
  supportsThinking: true,
46
46
  supportsWebSearch: true,
47
47
  maxThinkingTokens: 24576,
48
- timeout: 300000,
48
+ timeout: 900000,
49
49
  description:
50
50
  'Lightweight fast model (1M context) - Efficient quick responses with grounding',
51
51
  aliases: [
@@ -68,7 +68,7 @@ const SUPPORTED_MODELS = {
68
68
  supportsImages: true,
69
69
  supportsThinking: true,
70
70
  maxThinkingTokens: 32768,
71
- timeout: 300000,
71
+ timeout: 900000,
72
72
  description:
73
73
  'Deep reasoning + thinking mode (1M context) - Complex problems, architecture, deep analysis',
74
74
  aliases: ['pro 2.5', 'gemini pro 2.5', 'gemini-2.5-pro-latest'],
@@ -84,7 +84,7 @@ const SUPPORTED_MODELS = {
84
84
  supportsWebSearch: true,
85
85
  thinkingMode: 'level',
86
86
  thinkingLevels: ['minimal', 'low', 'medium', 'high'],
87
- timeout: 300000,
87
+ timeout: 900000,
88
88
  description:
89
89
  'Gemini 3.1 Pro - Most advanced reasoning with expanded thinking levels (1M context)',
90
90
  aliases: [
@@ -113,7 +113,7 @@ const SUPPORTED_MODELS = {
113
113
  supportsWebSearch: true,
114
114
  thinkingMode: 'level',
115
115
  thinkingLevels: ['minimal', 'low', 'medium', 'high'],
116
- timeout: 300000,
116
+ timeout: 900000,
117
117
  description:
118
118
  'Gemini 3.5 Flash - Frontier-level agentic and coding performance at Flash speed (1M context)',
119
119
  aliases: [
@@ -21,7 +21,7 @@ const SUPPORTED_MODELS = {
21
21
  supportsImages: true,
22
22
  supportsWebSearch: false,
23
23
  supportsReasoning: true,
24
- timeout: 300000,
24
+ timeout: 900000,
25
25
  description:
26
26
  'Mistral Medium 3.5 - Frontier-class multimodal model with adjustable reasoning',
27
27
  aliases: [
@@ -40,7 +40,7 @@ const SUPPORTED_MODELS = {
40
40
  supportsImages: true,
41
41
  supportsWebSearch: false,
42
42
  supportsReasoning: true,
43
- timeout: 180000,
43
+ timeout: 540000,
44
44
  description:
45
45
  'Mistral Small 4 - Hybrid multimodal model unifying instruct, reasoning, and coding',
46
46
  aliases: ['mistral-small', 'mistral-small-latest'],
@@ -54,7 +54,7 @@ const SUPPORTED_MODELS = {
54
54
  supportsImages: true,
55
55
  supportsWebSearch: false,
56
56
  supportsReasoning: false,
57
- timeout: 300000,
57
+ timeout: 900000,
58
58
  description:
59
59
  'Mistral Large 3 - Open-weight MoE flagship (no adjustable reasoning)',
60
60
  aliases: ['mistral-large', 'mistral-large-latest'],
@@ -20,7 +20,7 @@ const SUPPORTED_MODELS = {
20
20
  supportsWebSearch: true,
21
21
  supportsResponsesAPI: true,
22
22
  supportsNoneReasoningEffort: true,
23
- timeout: 3600000, // 1 hour
23
+ timeout: 10800000, // 3 hours
24
24
  description:
25
25
  'Flagship GPT-5.6 model (1M context, 128K output) - Frontier reasoning, coding, agentic workflows. Most token-efficient flagship',
26
26
  aliases: [
@@ -45,7 +45,7 @@ const SUPPORTED_MODELS = {
45
45
  supportsWebSearch: true,
46
46
  supportsResponsesAPI: true,
47
47
  supportsNoneReasoningEffort: true,
48
- timeout: 1800000, // 30 minutes
48
+ timeout: 5400000, // 90 minutes
49
49
  description:
50
50
  'Lower-cost GPT-5.6 (400K context, 128K output) - Performance competitive with GPT-5.5 at half the flagship price',
51
51
  aliases: ['gpt5.6-terra', 'gpt-5.6terra', 'gpt 5.6 terra', 'terra'],
@@ -60,7 +60,7 @@ const SUPPORTED_MODELS = {
60
60
  supportsWebSearch: true,
61
61
  supportsResponsesAPI: true,
62
62
  supportsNoneReasoningEffort: true,
63
- timeout: 600000, // 10 minutes
63
+ timeout: 1800000, // 30 minutes
64
64
  description:
65
65
  'Fastest, most affordable GPT-5.6 (400K context, 128K output) - High-volume, latency-sensitive workloads',
66
66
  aliases: ['gpt5.6-luna', 'gpt-5.6luna', 'gpt 5.6 luna', 'luna'],
@@ -75,7 +75,7 @@ const SUPPORTED_MODELS = {
75
75
  supportsWebSearch: true,
76
76
  supportsResponsesAPI: true,
77
77
  supportsNoneReasoningEffort: true,
78
- timeout: 3600000, // 1 hour
78
+ timeout: 10800000, // 3 hours
79
79
  description:
80
80
  'Latest flagship model (1M context, 128K output) - Superior reasoning, coding, agentic workflows, computer use. Most token-efficient reasoning model',
81
81
  aliases: [
@@ -92,7 +92,7 @@ const SUPPORTED_MODELS = {
92
92
  supportsImages: true,
93
93
  supportsWebSearch: true,
94
94
  supportsResponsesAPI: true,
95
- timeout: 1800000, // 30 minutes
95
+ timeout: 5400000, // 90 minutes
96
96
  description:
97
97
  'Faster, cost-efficient GPT-5 (400K context, 128K output) - Well-defined tasks, precise prompts',
98
98
  aliases: ['gpt5-mini', 'gpt-5mini', 'gpt 5 mini', 'gpt-5-mini-2025-08-07'],
@@ -106,7 +106,7 @@ const SUPPORTED_MODELS = {
106
106
  supportsImages: true,
107
107
  supportsWebSearch: false, // GPT-5-nano doesn't support web search
108
108
  supportsResponsesAPI: true,
109
- timeout: 600000, // 10 minutes
109
+ timeout: 1800000, // 30 minutes
110
110
  description:
111
111
  'Fastest, most cost-efficient GPT-5 (400K context, 128K output) - Summarization, classification',
112
112
  aliases: ['gpt5-nano', 'gpt-5nano', 'gpt 5 nano', 'gpt-5-nano-2025-08-07'],
@@ -120,7 +120,7 @@ const SUPPORTED_MODELS = {
120
120
  supportsImages: true,
121
121
  supportsWebSearch: true,
122
122
  supportsResponsesAPI: true,
123
- timeout: 1800000, // 30 minutes
123
+ timeout: 5400000, // 90 minutes
124
124
  description:
125
125
  'Fast, efficient GPT-5.4 (400K context, 128K output) - Coding, subagents, computer use, tool use. 2x faster than GPT-5 mini',
126
126
  aliases: [
@@ -139,7 +139,7 @@ const SUPPORTED_MODELS = {
139
139
  supportsImages: true,
140
140
  supportsWebSearch: false,
141
141
  supportsResponsesAPI: true,
142
- timeout: 600000, // 10 minutes
142
+ timeout: 1800000, // 30 minutes
143
143
  description:
144
144
  'Smallest, cheapest GPT-5.4 (400K context, 128K output) - Classification, data extraction, ranking, coding subagents',
145
145
  aliases: [
@@ -159,7 +159,7 @@ const SUPPORTED_MODELS = {
159
159
  supportsWebSearch: true,
160
160
  supportsResponsesAPI: true,
161
161
  supportsDeepResearch: false,
162
- timeout: 3600000, // 60 minutes
162
+ timeout: 10800000, // 180 minutes
163
163
  description:
164
164
  'Maximum performance reasoning model (1M context, 272K output) - Most complex tasks, extended compute time (EXPENSIVE)',
165
165
  aliases: [
@@ -179,7 +179,7 @@ const SUPPORTED_MODELS = {
179
179
  supportsImages: true,
180
180
  supportsWebSearch: true,
181
181
  supportsResponsesAPI: true,
182
- timeout: 600000, // 10 minutes
182
+ timeout: 1800000, // 30 minutes
183
183
  description:
184
184
  'Strong reasoning (200K context) - Logical problems, code generation, systematic analysis',
185
185
  aliases: ['o3-2025-01-31'],
@@ -193,7 +193,7 @@ const SUPPORTED_MODELS = {
193
193
  supportsImages: true,
194
194
  supportsWebSearch: true,
195
195
  supportsResponsesAPI: true,
196
- timeout: 3600000, // 60 minutes
196
+ timeout: 10800000, // 180 minutes
197
197
  description:
198
198
  'Professional-grade reasoning (200K context) - EXTREMELY EXPENSIVE: Only for the most complex problems',
199
199
  aliases: ['o3-pro', 'o3pro', 'o3 pro'],
@@ -207,7 +207,7 @@ const SUPPORTED_MODELS = {
207
207
  supportsImages: true,
208
208
  supportsWebSearch: true,
209
209
  supportsResponsesAPI: true,
210
- timeout: 180000, // 3 minutes
210
+ timeout: 540000, // 9 minutes
211
211
  description:
212
212
  'Latest reasoning model (200K context) - Optimized for shorter contexts, rapid reasoning',
213
213
  aliases: ['o4mini', 'o4', 'o4 mini', 'o4-mini-2025-01-30'],
@@ -221,7 +221,7 @@ const SUPPORTED_MODELS = {
221
221
  supportsImages: true,
222
222
  supportsWebSearch: true,
223
223
  supportsResponsesAPI: true,
224
- timeout: 300000,
224
+ timeout: 900000,
225
225
  description:
226
226
  'GPT-4.1 (1M context) - Advanced reasoning model with large context window',
227
227
  aliases: ['gpt4.1', 'gpt-4.1', 'gpt 4.1', 'gpt-4.1-latest'],
@@ -236,7 +236,7 @@ const SUPPORTED_MODELS = {
236
236
  supportsWebSearch: true,
237
237
  supportsResponsesAPI: true,
238
238
  supportsDeepResearch: true,
239
- timeout: 7200000, // 120 minutes for deep research
239
+ timeout: 21600000, // 360 minutes for deep research
240
240
  description:
241
241
  'Deep research model (200K context) - In-depth synthesis, comprehensive reports, multi-source analysis (30-90 min runtime)',
242
242
  aliases: [
@@ -256,7 +256,7 @@ const SUPPORTED_MODELS = {
256
256
  supportsWebSearch: true,
257
257
  supportsResponsesAPI: true,
258
258
  supportsDeepResearch: true,
259
- timeout: 3600000, // 60 minutes for faster deep research
259
+ timeout: 10800000, // 180 minutes for faster deep research
260
260
  description:
261
261
  'Fast deep research model (200K context) - Lightweight research, faster results, latency-sensitive analysis (15-60 min runtime)',
262
262
  aliases: [
@@ -90,7 +90,7 @@ export function metadataToModelConfig(raw) {
90
90
  supportsReasoning,
91
91
  // Structured capability object consumed by the OpenRouter reasoning mapper.
92
92
  reasoning,
93
- timeout: 300000,
93
+ timeout: 900000,
94
94
  isDynamic: true,
95
95
  };
96
96
  }
@@ -54,7 +54,7 @@ const SUPPORTED_MODELS = {
54
54
  supported_efforts: ['xhigh', 'high'],
55
55
  default_effort: 'high',
56
56
  },
57
- timeout: 300000,
57
+ timeout: 900000,
58
58
  description:
59
59
  'Z.ai GLM 5.2 — large-scale reasoning model with a 1M-token context',
60
60
  aliases: ['glm-5.2', 'glm5.2', 'glm'],
@@ -74,7 +74,7 @@ const SUPPORTED_MODELS = {
74
74
  supported_efforts: ['xhigh', 'high'],
75
75
  default_effort: 'high',
76
76
  },
77
- timeout: 300000,
77
+ timeout: 900000,
78
78
  description: 'DeepSeek V4 Pro reasoning model (via OpenRouter)',
79
79
  aliases: [],
80
80
  },
@@ -93,7 +93,7 @@ const SUPPORTED_MODELS = {
93
93
  supported_efforts: ['xhigh', 'high'],
94
94
  default_effort: 'high',
95
95
  },
96
- timeout: 300000,
96
+ timeout: 900000,
97
97
  description: 'DeepSeek V4 Flash — faster, lower-cost DeepSeek V4 tier',
98
98
  aliases: [],
99
99
  },
@@ -108,7 +108,7 @@ const SUPPORTED_MODELS = {
108
108
  supportsReasoning: true,
109
109
  // Enable/disable-only — no effort tiers exposed.
110
110
  reasoning: { mandatory: false, default_enabled: true },
111
- timeout: 300000,
111
+ timeout: 900000,
112
112
  description: 'Qwen3.7 Max — flagship Qwen with a 1M-token context',
113
113
  aliases: ['qwen3.7-max'],
114
114
  },
@@ -123,7 +123,7 @@ const SUPPORTED_MODELS = {
123
123
  supportsReasoning: true,
124
124
  // Enable/disable-only — no effort tiers exposed.
125
125
  reasoning: { mandatory: false, default_enabled: true },
126
- timeout: 300000,
126
+ timeout: 900000,
127
127
  description: 'Qwen3.7 Plus — image-capable Qwen with a 1M-token context',
128
128
  aliases: ['qwen3.7-plus'],
129
129
  },
@@ -138,7 +138,7 @@ const SUPPORTED_MODELS = {
138
138
  supportsReasoning: true,
139
139
  // Mandatory reasoning — cannot be disabled.
140
140
  reasoning: { mandatory: true, default_enabled: true },
141
- timeout: 300000,
141
+ timeout: 900000,
142
142
  description: 'Moonshot Kimi K2.7 Code — coding model with mandatory reasoning',
143
143
  aliases: ['kimi-k2.7-code'],
144
144
  },
@@ -153,7 +153,7 @@ const SUPPORTED_MODELS = {
153
153
  supportsReasoning: true,
154
154
  // Enable/disable-only — no effort tiers exposed.
155
155
  reasoning: { mandatory: false, default_enabled: true },
156
- timeout: 300000,
156
+ timeout: 900000,
157
157
  description: 'Moonshot Kimi K2.6 — image-capable general model',
158
158
  aliases: ['kimi-k2.6'],
159
159
  },
@@ -169,7 +169,7 @@ const SUPPORTED_MODELS = {
169
169
  // Router selects the underlying model (and its effort) — do not fabricate a
170
170
  // reasoning field.
171
171
  reasoning: { passthrough: true },
172
- timeout: 300000,
172
+ timeout: 900000,
173
173
  description: 'Auto-selects the best model for your prompt via OpenRouter',
174
174
  aliases: ['auto-router', 'openrouter-auto'],
175
175
  },
@@ -489,7 +489,7 @@ function createConservativeModelConfig(modelName) {
489
489
  maxOutputTokens: 8192,
490
490
  supportsStreaming: true,
491
491
  supportsWebSearch: false,
492
- timeout: 300000,
492
+ timeout: 900000,
493
493
  isDynamic: true,
494
494
  };
495
495
  }
@@ -36,7 +36,7 @@ const SUPPORTED_MODELS = {
36
36
  supportsImages: true,
37
37
  supportsWebSearch: true,
38
38
  supportsReasoning: true,
39
- timeout: 300000, // 5 minutes
39
+ timeout: 900000, // 15 minutes
40
40
  description:
41
41
  'Grok 4.5 (500K context) - Flagship X.AI model with image input, reasoning content, and native web/X search via Agent Tools',
42
42
  aliases: ['grok', 'grok-4.5', 'grok-4.5-latest', 'grok-build-latest'],
@@ -28,7 +28,7 @@ export class HTTPTransportServer {
28
28
  // Server settings
29
29
  port: config.port || 3157,
30
30
  host: config.host || 'localhost',
31
- requestTimeout: config.requestTimeout || 300000,
31
+ requestTimeout: config.requestTimeout || 900000,
32
32
  maxRequestSize: config.maxRequestSize || '10mb',
33
33
 
34
34
  // Session management