chore: fix the mcp_sse_agent

PiperOrigin-RevId: 773140021
This commit is contained in:
Xiang (Sean) Zhou
2025-06-18 18:31:24 -07:00
committed by Copybara-Service
parent 9a1115c504
commit 7f8dc8927a
+2 -2
View File
@@ -16,8 +16,8 @@
import os
from google.adk.agents.llm_agent import LlmAgent
from google.adk.tools.mcp_tool.mcp_session_manager import SseConnectionParams
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset
from google.adk.tools.mcp_tool.mcp_toolset import SseServerParams
_allowed_path = os.path.dirname(os.path.abspath(__file__))
@@ -31,7 +31,7 @@ Allowed directory: {_allowed_path}
""",
tools=[
MCPToolset(
connection_params=SseServerParams(
connection_params=SseConnectionParams(
url='http://localhost:3000/sse',
headers={'Accept': 'text/event-stream'},
),