feat(mcp): configure stateful session idle timeout

This commit is contained in:
cowking authored and GitHub committed 2026-09-22 01:18:54 +08:00
1 parent 576943c543
commit e1f46cf9a8
7 files changed
+106 -16

No files matched your search

+1 -1
View File
@@ -1415,7 +1415,7 @@ impl DbxMcpServer {
#[tool(
name = "dbx_open_session",
description = "Open a stateful query session pinned to a single backend connection. Returns a session ID for dbx_execute_query: USE, SET CATALOG, session variables and temporary tables persist across calls within the session. Close with dbx_close_session when done; idle sessions expire after 30 minutes."
description = "Open a stateful query session pinned to a single backend connection. Returns a session ID for dbx_execute_query: USE, SET CATALOG, session variables and temporary tables persist across calls within the session. Close with dbx_close_session when done; idle sessions expire after 30 minutes by default (configurable with DBX_SESSION_IDLE_TTL_SECS)."
)]
async fn open_session_tool(
&self,