Open
Description
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:
- Go to 'python-sdk/examples/servers/simple-tool'
- Run 'uv run mcp-simple-tool'
- Press CTRL+c
- 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