From 00ae0a078a008243fa5ba6cf3e74af733bb6fe33 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 2 May 2025 11:48:58 +0530 Subject: [PATCH] change `timeout` to `connectionTimeout` in yaml --- core/config/yaml/loadYaml.ts | 4 ++-- docs/docs/reference.md | 2 +- packages/config-yaml/src/schemas/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 23185d7cd..95a4bdc30 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -72,7 +72,7 @@ function convertYamlMcpToContinueMcp( args: server.args ?? [], env: server.env, }, - timeout: server.timeout + timeout: server.connectionTimeout }; } @@ -445,7 +445,7 @@ async function configYamlToContinueConfig(options: { args: [], ...server, }, - timeout: server.timeout + timeout: server.connectionTimeout })), false, ); diff --git a/docs/docs/reference.md b/docs/docs/reference.md index c62dd441b..3221f66bb 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -380,7 +380,7 @@ prompts, context, and tool use. Continue supports any MCP server with the MCP co - `command` (**required**): The command used to start the server. - `args`: An optional array of arguments for the command. - `env`: An optional map of environment variables for the server process. -- `timeout`: An optional connection timeout number to the server in milliseconds. +- `connectionTimeout`: An optional connection timeout number to the server in milliseconds. **Example:** diff --git a/packages/config-yaml/src/schemas/index.ts b/packages/config-yaml/src/schemas/index.ts index 99ae40d64..35e110206 100644 --- a/packages/config-yaml/src/schemas/index.ts +++ b/packages/config-yaml/src/schemas/index.ts @@ -15,7 +15,7 @@ const mcpServerSchema = z.object({ faviconUrl: z.string().optional(), args: z.array(z.string()).optional(), env: z.record(z.string()).optional(), - timeout: z.number().gt(0).optional() + connectionTimeout: z.number().gt(0).optional() }); export type MCPServer = z.infer;