Skip to content

Commit d8b3395

Browse files
committed
fix
1 parent 8ae3a8a commit d8b3395

File tree

1 file changed

+4
-4
lines changed
  • packages/cdk/lambda-python/generic-agent-core-runtime/src

1 file changed

+4
-4
lines changed

packages/cdk/lambda-python/generic-agent-core-runtime/src/tools.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def load_mcp_tools(self) -> list[Any]:
5151
logger.warning(f"MCP configuration file not found at {mcp_config_path}")
5252
self.mcp_tools = []
5353
return self.mcp_tools
54-
55-
with open(mcp_config_path, 'r') as f:
54+
55+
with open(mcp_config_path) as f:
5656
mcp_config = json.load(f)
5757

5858
mcp_servers = mcp_config.get("mcpServers", {})
@@ -96,8 +96,8 @@ def load_mcp_tools_by_names(self, server_names: list[str]) -> list[Any]:
9696
if not os.path.exists(mcp_config_path):
9797
logger.warning(f"MCP configuration file not found at {mcp_config_path}")
9898
return []
99-
100-
with open(mcp_config_path, 'r') as f:
99+
100+
with open(mcp_config_path) as f:
101101
mcp_config = json.load(f)
102102

103103
available_servers = mcp_config.get("mcpServers", {})

0 commit comments

Comments
 (0)