feat: add 60-second timeouts to MCP request handlers for reliability

This commit is contained in:
2026-01-23 13:10:45 -05:00
parent 72525609ed
commit eb6705df0f
3 changed files with 51 additions and 27 deletions

View File

@@ -6,7 +6,7 @@ trap 'echo "Received shutdown signal, stopping services..."; kill -TERM $API_PID
# Start API Server in background
echo "Starting API Server on port ${API_PORT:-4005}..."
bun ../dist/api/index.js &
bun dist/api/index.js &
API_PID=$!
# Give API server a moment to initialize
@@ -14,7 +14,7 @@ sleep 1
# Start MCP Server in background
echo "Starting MCP Server on port ${API_PORT:-4006}..."
bun ../dist/mcp/index.js &
bun dist/mcp/index.js &
MCP_PID=$!
echo "Both services started successfully"