MCPcopy Create free account
hub / github.com/asternic/wuzapi / newStdioServerWithIO

Function newStdioServerWithIO

stdio.go:127–133  ·  view source on GitHub ↗

newStdioServerWithIO creates a stdio server with custom IO streams (for testing)

(s *server, stdin io.Reader, stdout io.Writer)

Source from the content-addressed store, hash-verified

125
126// newStdioServerWithIO creates a stdio server with custom IO streams (for testing)
127func newStdioServerWithIO(s *server, stdin io.Reader, stdout io.Writer) *stdioServer {
128 return &stdioServer{
129 server: s,
130 stdin: stdin,
131 stdout: stdout,
132 }
133}
134
135func (ss *stdioServer) Start() error {
136 log.Info().Msg("Starting stdio mode - reading JSON requests from stdin")

Callers 1

executeRequestFunction · 0.85

Calls

no outgoing calls

Tested by 1

executeRequestFunction · 0.68