Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dp.agent.adapter.adk import CalculationMCPToolset
from google.adk.agents import BaseAgent
from google.adk.tools.mcp_tool.mcp_session_manager import SseServerParams
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPServerParams

from agents.matmaster_agent.constant import LOCAL_EXECUTOR, BohriumStorge
from agents.matmaster_agent.core_agents.public_agents.sync_agent import (
Expand All @@ -12,8 +12,11 @@
STRUCTURE_SEARCH_URL,
)

mcp_params = StreamableHTTPServerParams(
url=STRUCTURE_SEARCH_URL,
)
structure_search_toolset = CalculationMCPToolset(
connection_params=SseServerParams(url=STRUCTURE_SEARCH_URL),
connection_params=mcp_params,
storage=BohriumStorge,
executor=LOCAL_EXECUTOR,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
if CURRENT_ENV in ['test', 'uat']:
STRUCTURE_SEARCH_URL = 'http://chvz1424099.bohrium.tech:50001/mcp'
else:
STRUCTURE_SEARCH_URL = 'http://chvz1424099.bohrium.tech:50001/mcp'
STRUCTURE_SEARCH_URL = 'http://chvz1424099.bohrium.tech:50002/mcp?token=eGdk3puy52InRnuOuEbJdGACkos34rSOluFbQqL1HDQ'
Loading