Skip to content

Commit 23e32e3

Browse files
committed
comment out session clearing step in SessionStateMiddleware
1 parent 6b859c6 commit 23e32e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/keboola_mcp_server/mcp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ async def on_message(
161161
try:
162162
return await call_next(context)
163163
finally:
164-
ctx.session.state = {}
164+
# NOTE: This line is commented following a bug related to session state clearance in Claude client
165+
# ctx.session.state = {}
166+
pass
165167

166168
@staticmethod
167169
def _create_session_state(config: Config) -> dict[str, Any]:

0 commit comments

Comments
 (0)