File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/cdk/lambda-python/generic-agent-core-runtime/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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" , {})
You can’t perform that action at this time.
0 commit comments