[eval]: disable MCP for SWE-Bench evaluation (#8574)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
This commit is contained in:
Xingyao Wang
2025-05-19 09:32:46 +08:00
committed by GitHub
parent 0b26174d60
commit 2ecc39ffcc
7 changed files with 13 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ class AgentSession:
# NOTE: this needs to happen before controller is created
# so MCP tools can be included into the SystemMessageAction
if self.runtime and runtime_connected:
if self.runtime and runtime_connected and agent.config.enable_mcp:
await add_mcp_tools_to_agent(agent, self.runtime, self.memory, config.mcp)
if replay_json: