MCP client not able to initiate StdioServerParameters while running in Jupyter Notebook

while initiating StdioServerParameters in jupyter notebook there is an Exception from subprocess.Popen.
Exception is : UnsupportedOperation fileno

Same code works in idle and with quart server.

OS : windows 11
Python version: 3.11