From 6820157cfeb8a29cc1a975004c97605d177ed9d2 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 24 Mar 2026 19:33:40 +0100 Subject: [PATCH 1/3] Add LibreChat's Railway custom configuration file --- librechat.railway.yaml | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 librechat.railway.yaml diff --git a/librechat.railway.yaml b/librechat.railway.yaml new file mode 100644 index 0000000..6c9fe54 --- /dev/null +++ b/librechat.railway.yaml @@ -0,0 +1,56 @@ +# LibreChat Configuration File +# For more information, see: https://www.librechat.ai/docs/configuration/librechat_yaml + +version: 1.3.1 + +# Cache settings +cache: true + +# Interface configuration +interface: + fileCitations: true + + # MCP Servers configuration + # Controls user permissions for MCP (Model Context Protocol) server management + mcpServers: + use: true # Allow users to use configured MCP servers + share: false # Allow users to share MCP servers with other users + create: true # Allow users to create and manage new MCP servers + public: false # Allow users to share MCP servers publicly (with everyone) + +allowedDomains: + - "*.railway.internal" + +endpoints: + agents: + capabilities: + [ + 'hide_sequential_outputs', + 'end_after_tools', + 'execute_code', + 'file_search', + 'web_search', + 'artifacts', + 'actions', + 'context', + 'tools', + 'chain', + 'ocr', + ] + openAI: + fetch: true + + anthropic: + fetch: true + + google: + fetch: true + + +mcpServers: + clickhouse-mcp: + type: streamable-http + url: http://clickhouse-mcp-server.railway.internal:8000/mcp + timeout: 60000 # 1 minute timeout + headers: + Authorization: 'Bearer ${CLICKHOUSE_MCP_AUTH_TOKEN}' From eb7dff9a0357a61e89661d42dfce4379fae1218a Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 24 Mar 2026 19:36:15 +0100 Subject: [PATCH 2/3] Move allowedDomains under mcpSettings --- librechat.railway.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/librechat.railway.yaml b/librechat.railway.yaml index 6c9fe54..bd930b2 100644 --- a/librechat.railway.yaml +++ b/librechat.railway.yaml @@ -18,8 +18,9 @@ interface: create: true # Allow users to create and manage new MCP servers public: false # Allow users to share MCP servers publicly (with everyone) -allowedDomains: - - "*.railway.internal" +mcpSettings: + allowedDomains: + - "*.railway.internal" endpoints: agents: From 17d652725cbe0b9ff4e92057d38c6cb874b7dc5a Mon Sep 17 00:00:00 2001 From: Dustin Healy <54083382+dustinhealy@users.noreply.github.com> Date: Tue, 24 Mar 2026 14:13:29 -0700 Subject: [PATCH 3/3] fix: remove invalid fetch:true endpoints and add stdio ClickHouse demo MCP Remove openAI/anthropic/google fetch:true entries which are not valid endpoint config. Add stdio-type ClickHouse MCP server pointing to the public demo dataset at sql-clickhouse.clickhouse.com. --- librechat.railway.yaml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/librechat.railway.yaml b/librechat.railway.yaml index bd930b2..4eb8e5a 100644 --- a/librechat.railway.yaml +++ b/librechat.railway.yaml @@ -38,20 +38,29 @@ endpoints: 'chain', 'ocr', ] - openAI: - fetch: true - - anthropic: - fetch: true - - google: - fetch: true - mcpServers: clickhouse-mcp: type: streamable-http url: http://clickhouse-mcp-server.railway.internal:8000/mcp - timeout: 60000 # 1 minute timeout + timeout: 60000 headers: Authorization: 'Bearer ${CLICKHOUSE_MCP_AUTH_TOKEN}' + clickhouse: + command: "uv" + args: + - run + - --with + - mcp-clickhouse==0.1.5 + - --python + - "3.13" + - mcp-clickhouse + env: + CLICKHOUSE_HOST: "sql-clickhouse.clickhouse.com" + CLICKHOUSE_PORT: "8443" + CLICKHOUSE_USER: "demo" + CLICKHOUSE_PASSWORD: "" + CLICKHOUSE_SECURE: "true" + CLICKHOUSE_VERIFY: "true" + CLICKHOUSE_CONNECT_TIMEOUT: "30" + CLICKHOUSE_SEND_RECEIVE_TIMEOUT: "30"