MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / close_stdout

Method close_stdout

tests/client/test_stdio.py:169–171  ·  view source on GitHub ↗

End the fake process's stdout, as the kernel does when it dies.

(self)

Source from the content-addressed store, hash-verified

167 await self._stdout_send.send(data)
168
169 def close_stdout(self) -> None:
170 """End the fake process's stdout, as the kernel does when it dies."""
171 self._stdout_send.close()
172
173 def exit(self, code: int = 0) -> None:
174 """Die: set the exit code and EOF stdout, as the kernel does."""

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected