codex icon indicating copy to clipboard operation
codex copied to clipboard

fix: improve MCP server initialization error handling #3196 #2346 #2555

Open Bit-urd opened this issue 3 months ago • 2 comments

• I have signed the CLA by commenting the required sentence and triggered recheck. • Local checks are all green (fmt / clippy / test). • Could you please approve the pending GitHub Actions workflows (first-time contributor), and when convenient, help with one approving review so I can proceed? Thanks!

Summary

  • Catch and log task panics during server initialization instead of propagating JoinError
  • Handle tool listing failures gracefully, allowing partial server initialization
  • Improve error resilience on macOS where init timeouts are more common

Test plan

  • [x] Test MCP server initialization with timeout scenarios
  • [x] Verify graceful handling of tool listing failures
  • [x] Confirm improved error messages and logging
  • [x] Test on macOS

Fix issue #3196 #2346 #2555

fix before:

image image

fix improved:

image

Bit-urd avatar Sep 06 '25 09:09 Bit-urd

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar Sep 06 '25 09:09 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

Bit-urd avatar Sep 06 '25 09:09 Bit-urd