diff --git a/pages/docs/configuration/librechat_yaml/object_structure/mcp_servers.mdx b/pages/docs/configuration/librechat_yaml/object_structure/mcp_servers.mdx index ef1338d32..3b2419399 100644 --- a/pages/docs/configuration/librechat_yaml/object_structure/mcp_servers.mdx +++ b/pages/docs/configuration/librechat_yaml/object_structure/mcp_servers.mdx @@ -8,6 +8,9 @@ mcpServers: everything: # type: sse # type can optionally be omitted url: http://localhost:3001/sse + maxReconnectAttempts: 3 # retries in case of disconnection, default is 3 + maxBackoffMs: 30000 # max Backoff between reconnection attempts, default is 30000 + reconnectBackoffMs: 1000 # Initial backoff time between reconnection attemps, doubled until maxBackoffMs, default is 1000 googlesheets: type: sse url: https://mcp.composio.dev/googlesheets/some-endpoint @@ -67,6 +70,9 @@ mcpServers: ['command', 'String', '(For `stdio` type) The command or executable to run to start the MCP server.', 'command: "npx"'], ['args', 'Array of Strings', '(For `stdio` type) Command line arguments to pass to the `command`.', 'args: ["-y", "@modelcontextprotocol/server-puppeteer"]'], ['url', 'String', '(For `websocket`, `streamable-http`, or `sse` type) The URL to connect to the MCP server.', 'url: "http://localhost:3001/sse"'], + ['maxReconnectAttempts', 'Number', '(Optional, `websocket` or `sse` type) Maximum number of reconnection attempts in case of disconnection. Defaults to `3`.', 'maxReconnectAttempts: 3'], + ['maxBackoffMs', 'Number', '(Optional, `websocket` or `sse` type) Maximum backoff time in milliseconds between reconnection attempts. Defaults to `30000` (30 seconds).', 'maxBackoffMs: 30000'], + ['reconnectBackoffMs', 'Number', '(Optional, `websocket` or `sse` type) Initial backoff time in milliseconds between reconnection attempts. This value is doubled after each failed attempt until `maxBackoffMs` is reached. Defaults to `1000` (1 second).', 'reconnectBackoffMs: 1000'], ['headers', 'Object', '(Optional, for `sse` and `streamable-http` types) Custom headers to send with the request. Supports dynamic user field substitution with `{{LIBRECHAT_USER_*}}` placeholders and environment variables with `${ENV_VAR}`.', 'headers:\n X-User-ID: "{{LIBRECHAT_USER_ID}}"\n X-API-Key: "${SOME_API_KEY}"'], ['iconPath', 'String', '(Optional) Defines the tool\'s display icon shown in the tool selection dialog.', 'iconPath: "/path/to/icon.svg"'], ['chatMenu', 'Boolean', '(Optional) When set to `false`, excludes the MCP server from the chatarea dropdown (MCPSelect) for quick and easy access. Defaults to `true`.', 'chatMenu: false'],