Skip to content

Commit 1c3ed17

Browse files
committed
fix
1 parent d128322 commit 1c3ed17

File tree

1 file changed

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

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)