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

Method feed

tests/client/test_stdio.py:165–167  ·  view source on GitHub ↗

Make `data` readable on the fake process's stdout.

(self, data: bytes)

Source from the content-addressed store, hash-verified

163 self.on_stdout_receive()
164
165 async def feed(self, data: bytes) -> None:
166 """Make `data` readable on the fake process's stdout."""
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."""

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected