File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
packages/cdk/lambda-python/generic-agent-core-runtime/src Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -93,17 +93,7 @@ def load_mcp_tools_by_names(self, server_names: list[str]) -> list[Any]:
9393 try :
9494 # Load MCP configuration from mcp.json file
9595 # Try multiple possible paths
96- possible_paths = ["/var/task/mcp.json" , "mcp.json" , "./mcp.json" ]
97-
98- mcp_config_path = None
99- for path in possible_paths :
100- if os .path .exists (path ):
101- mcp_config_path = path
102- break
103-
104- if not mcp_config_path :
105- logger .warning (f"MCP configuration file not found in any of: { possible_paths } " )
106- return []
96+ mcp_config_path = "mcp.json"
10797
10898 logger .info (f"Loading MCP configuration from: { mcp_config_path } " )
10999 with open (mcp_config_path ) as f :
You can’t perform that action at this time.
0 commit comments