You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/docs/configuration/librechat_yaml/object_structure/mcp_servers.mdx
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ mcpServers:
8
8
everything:
9
9
# type: sse # type can optionally be omitted
10
10
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
11
14
puppeteer:
12
15
type: stdio
13
16
command: npx
@@ -47,6 +50,9 @@ mcpServers:
47
50
['command', 'String', '(For `stdio` type) The command or executable to run to start the MCP server.', 'command: "npx"'],
48
51
['args', 'Array of Strings', '(For `stdio` type) Command line arguments to pass to the `command`.', 'args: ["-y", "@modelcontextprotocol/server-puppeteer"]'],
49
52
['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'],
50
56
['iconPath', 'String', '(Optional) Defines the tool\'s display icon shown in the tool selection dialog.', 'iconPath: "/path/to/icon.svg"'],
51
57
['env', 'Object', '(Optional, `stdio` type only) Environment variables to use when spawning the process.', 'env:\n NODE_ENV: "production"'],
52
58
['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