MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / pipeRWC

Struct pipeRWC

mcp/cmd.go:51–56  ·  view source on GitHub ↗

A pipeRWC is an io.ReadWriteCloser that communicates with a subprocess over stdin/stdout pipes.

Source from the content-addressed store, hash-verified

49// A pipeRWC is an io.ReadWriteCloser that communicates with a subprocess over
50// stdin/stdout pipes.
51type pipeRWC struct {
52 cmd *exec.Cmd
53 stdout io.ReadCloser
54 stdin io.WriteCloser
55 terminateDuration time.Duration
56}
57
58func (s *pipeRWC) Read(p []byte) (n int, err error) {
59 return s.stdout.Read(p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected