Skip to content

Commit b001a66

Browse files
committed
docs: add mcp reconnection parameters
1 parent ed6a4d6 commit b001a66

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pages/docs/configuration/librechat_yaml/object_structure/mcp_servers.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ mcpServers:
88
everything:
99
# type: sse # type can optionally be omitted
1010
url: http://localhost:3001/sse
11+
maxReconnectAttempts: 3 # retries in case of disconnection, default is 3
12+
maxBackoffMs: 30000 # max Backoff between reconnection attempts, default is 30000
13+
reconnectBackoffMs: 1000 # Initial backoff time between reconnection attemps, doubled until maxBackoffMs, default is 1000
1114
puppeteer:
1215
type: stdio
1316
command: npx
@@ -47,6 +50,9 @@ mcpServers:
4750
['command', 'String', '(For `stdio` type) The command or executable to run to start the MCP server.', 'command: "npx"'],
4851
['args', 'Array of Strings', '(For `stdio` type) Command line arguments to pass to the `command`.', 'args: ["-y", "@modelcontextprotocol/server-puppeteer"]'],
4952
['url', 'String', '(For `websocket` or `sse` type) The URL to connect to the MCP server.', 'url: "http://localhost:3001/sse"'],
53+
['maxReconnectAttempts', 'Number', '(Optional, `websocket` or `sse` type) Maximum number of reconnection attempts in case of disconnection. Defaults to `3`.', 'maxReconnectAttempts: 3'],
54+
['maxBackoffMs', 'Number', '(Optional, `websocket` or `sse` type) Maximum backoff time in milliseconds between reconnection attempts. Defaults to `30000` (30 seconds).', 'maxBackoffMs: 30000'],
55+
['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'],
5056
['iconPath', 'String', '(Optional) Defines the tool\'s display icon shown in the tool selection dialog.', 'iconPath: "/path/to/icon.svg"'],
5157
['env', 'Object', '(Optional, `stdio` type only) Environment variables to use when spawning the process.', 'env:\n NODE_ENV: "production"'],
5258
['stderr', 'String or Stream or Number', '(Optional, `stdio` type only) How to handle `stderr` of the child process. Defaults to `"inherit"`.', 'stderr: "inherit"'],

0 commit comments

Comments
 (0)