8000 `simple-tool` exiting error · Issue #932 · modelcontextprotocol/python-sdk · GitHub
[go: up one dir, main page]

Skip to content
simple-tool exiting error #932
Open
Open
@ruspaul013

Description

@ruspaul013

Describe the bug
I tried to run the simple-tool example and to exit the script I pressed CTRL+c and I got that error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'python-sdk/examples/servers/simple-tool'
  2. Run 'uv run mcp-simple-tool'
  3. Press CTRL+c
  4. See error

Expected behavior
I expected a clean exit from the STDIO server.

Logs

[root@base-machine simple-tool]# uv run mcp-simple-tool
^C^C
Aborted!
Traceback (most recent call last):
  File "/root/.local/share/uv/python/cpython-3.13.2-linux-x86_64-gnu/lib/python3.13/threading.py", line 1540, in _shutdown
    _thread_shutdown()
KeyboardInterrupt: 
Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedReader name='<stdin>'> at interpreter shutdown, possibly due to daemon threads
Python runtime state: finalizing (tstate=0x00007f64f0d15b90)

Current thread 0x00007f64f0dcb740 (most recent call first):
  <no Python frame>

Desktop (please complete the following information):

  • OS: AlmaLinux 9.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0