Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: modelcontextprotocol/python-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
Loading
...
head repository: chilang/python-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on May 16, 2025

  1. Fix RuntimeError in MCPClient cleanup when clients are closed in FIFO…

    … order
    
    Fixed a bug where closing MCPClient instances in FIFO order (first created, first cleaned up)
    would raise RuntimeError with 'Attempted to exit cancel scope in a different task'. The issue was
    in the stdio_client context manager's cleanup sequence.
    
    The fix properly structures the async context management in stdio_client to ensure resources are
    cleaned up in the correct order: first canceling tasks, then closing streams, and finally terminating
    the process. Added robust test cases that verify the fix works correctly.
    
    Github-Issue: #577
    chilang committed May 16, 2025
    Configuration menu
    Copy the full SHA
    a4d4cfe View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.