Commit fb10261
feat: Add robust startup retry logic and port conflict resolution (#10347)
* fix mcp timeout and settings
* ✨ (service.py): add new methods to read process output, ensure port availability, log startup error details, and normalize config values
🐛 (service.py): fix handling of process output, error messages, and port availability to improve error handling and logging during startup
* ✨ (service.py): add tracking of which project is using which port to prevent conflicts
🐛 (service.py): check if another project is using the same port before starting a new project to avoid conflicts
🐛 (service.py): handle releasing port and cleaning up port tracking when stopping a project to prevent memory leaks
🐛 (service.py): re-check port availability before each retry when starting a project to prevent race conditions
🐛 (service.py): register the port used by a project to prevent other projects from using the same port
🐛 (McpServerTab.tsx): invalidate MCP project data and composer URL queries to refresh auth settings and OAuth server info
🐛 (McpServerTab.tsx): clear waiting state if the auth type is not OAuth
* fix killing port on tab changes
* add not persist oauth on failure start
* add oath check on available port
* add improvements mcp service
* fix: suppress SSE streaming warnings and handle connection closed errors
- Add warning filters for ResourceWarning from anyio streams
- Handle SSE connection closed errors gracefully
- Prevent log spam from normal SSE lifecycle events
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* add host and port to uvx command, safe redact value
* fix error messages state not been displayed
* fix mypy errors
* [autofix.ci] apply automated fixes
* add the correct auth test
---------
Co-authored-by: Claude <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>1 parent b31b2e9 commit fb10261
File tree
10 files changed
+2230
-199
lines changed- src
- backend
- base/langflow
- api/v1
- services/mcp_composer
- tests/unit/services/settings
- frontend/src
- controllers/API/queries/mcp
- modals/authModal
- __tests__
- pages/MainPage/pages/homePage/components
- __tests__
10 files changed
+2230
-199
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| |||
396 | 399 | | |
397 | 400 | | |
398 | 401 | | |
399 | | - | |
400 | | - | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| |||
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
419 | | - | |
420 | | - | |
421 | 420 | | |
422 | 421 | | |
423 | 422 | | |
424 | 423 | | |
| 424 | + | |
425 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
| |||
434 | 439 | | |
435 | 440 | | |
436 | 441 | | |
| 442 | + | |
| 443 | + | |
437 | 444 | | |
438 | 445 | | |
439 | 446 | | |
440 | 447 | | |
441 | 448 | | |
442 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
443 | 454 | | |
444 | 455 | | |
445 | 456 | | |
446 | 457 | | |
447 | 458 | | |
448 | 459 | | |
449 | | - | |
450 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
451 | 466 | | |
452 | 467 | | |
453 | | - | |
| 468 | + | |
454 | 469 | | |
455 | 470 | | |
456 | 471 | | |
| 472 | + | |
457 | 473 | | |
458 | 474 | | |
459 | 475 | | |
| |||
464 | 480 | | |
465 | 481 | | |
466 | 482 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | 483 | | |
| 484 | + | |
| 485 | + | |
471 | 486 | | |
472 | 487 | | |
473 | 488 | | |
| |||
480 | 495 | | |
481 | 496 | | |
482 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
483 | 502 | | |
484 | 503 | | |
485 | 504 | | |
| |||
731 | 750 | | |
732 | 751 | | |
733 | 752 | | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
734 | 760 | | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
735 | 769 | | |
736 | 770 | | |
737 | 771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
458 | 462 | | |
459 | 463 | | |
460 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
461 | 476 | | |
462 | 477 | | |
463 | 478 | | |
| |||
0 commit comments