mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
fix: resolve module import error for MCP services
Run MCP service manager from /app instead of /app/agent_tools to ensure services can import from tools module. Changes: - entrypoint.sh: Run start_mcp_services.py from /app directory - start_mcp_services.py: Use absolute paths for service scripts - start_mcp_services.py: Set working directory to /app for services Fixes ModuleNotFoundError: No module named 'tools' in price.log
This commit is contained in:
@@ -47,10 +47,9 @@ cd /app
|
||||
|
||||
# Step 2: Start MCP services in background
|
||||
echo "🔧 Starting MCP services..."
|
||||
cd /app/agent_tools
|
||||
python start_mcp_services.py &
|
||||
MCP_PID=$!
|
||||
cd /app
|
||||
python agent_tools/start_mcp_services.py &
|
||||
MCP_PID=$!
|
||||
|
||||
# Step 3: Wait for services to initialize
|
||||
echo "⏳ Waiting for MCP services to start..."
|
||||
|
||||
Reference in New Issue
Block a user