Skip to content

Conversation

Bit-urd
Copy link
Contributor

@Bit-urd Bit-urd commented Sep 6, 2025

• 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

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

Fix issue #3196 #2346 #2555

fix before:

image image

fix improved:

image

Copy link

github-actions bot commented Sep 6, 2025

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

@Bit-urd
Copy link
Contributor Author

Bit-urd commented Sep 6, 2025

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

github-actions bot added a commit that referenced this pull request Sep 6, 2025
@Bit-urd Bit-urd changed the title fix: improve MCP server initialization error handling(#3196) fix: improve MCP server initialization error handling #3196 #2346 #2555 Sep 6, 2025
Handle task panics and tool listing errors more gracefully in MCP connection manager:
- 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
@bolinfest bolinfest force-pushed the fix/mcp-inittimeout-error-handling branch from 4d08332 to 990c69d Compare September 8, 2025 16:07
@bolinfest bolinfest merged commit cad3700 into openai:main Sep 8, 2025
18 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants