MCPcopy Create free account
hub / github.com/microsoft/typescript-go / NewStdioServer

Function NewStdioServer

internal/api/server.go:46–54  ·  view source on GitHub ↗

NewStdioServer creates a new STDIO-based API server.

(options *StdioServerOptions)

Source from the content-addressed store, hash-verified

44
45// NewStdioServer creates a new STDIO-based API server.
46func NewStdioServer(options *StdioServerOptions) *StdioServer {
47 if options.Cwd == "" {
48 panic("StdioServerOptions.Cwd is required")
49 }
50
51 return &StdioServer{
52 options: options,
53 }
54}
55
56// Run starts the server and blocks until the connection closes.
57func (s *StdioServer) Run(ctx context.Context) error {

Callers 1

runAPIFunction · 0.92

Calls 1

panicFunction · 0.85

Tested by

no test coverage detected