From bfb57029e6cc5d0279bbb5ec97cf7c5335ea3d77 Mon Sep 17 00:00:00 2001 From: Hemang Date: Tue, 27 May 2025 22:43:06 +0200 Subject: [PATCH] Small cleanups. --- README.md | 2 +- gateway/common/mcp_sessions_manager.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index b22ef5e..2ccf0dc 100644 --- a/README.md +++ b/README.md @@ -289,7 +289,7 @@ For SSE transport based MCP, here are the steps to point your MCP client to a lo * Use the following configuration to connect to the local Gateway instance: ```python await client.connect_to_sse_server( - server_url="http://localhost:8005/api/vs1/gateway/mcp/sse", + server_url="http://localhost:8005/api/v1/gateway/mcp/sse", headers={ "MCP-SERVER-BASE-URL": "", "INVARIANT-PROJECT-NAME": "", diff --git a/gateway/common/mcp_sessions_manager.py b/gateway/common/mcp_sessions_manager.py index 0ea9285..26f5b33 100644 --- a/gateway/common/mcp_sessions_manager.py +++ b/gateway/common/mcp_sessions_manager.py @@ -240,9 +240,6 @@ class McpSession(BaseModel): self.annotations.extend(deduplicated_annotations) self.last_trace_length = len(self.messages) except Exception as e: # pylint: disable=broad-except - import traceback - - traceback.print_exc() print(f"[MCP SSE] Error pushing trace for session {self.session_id}: {e}") async def add_pending_error_message(self, error_message: dict) -> None: