Stdio Transport
By default, Qilin uses the Stdio Transport. This is the simplest way to run an MCP server.
Basic Usage
Section titled “Basic Usage”When using Stdio, typically calling q.Start()
is sufficient, as it’s the default transport:
q := qilin.New("beer hall")q.Start() // Uses Stdio transport by default
Explicit Configuration
Section titled “Explicit Configuration”If you need to specify the Stdio transport explicitly or provide a custom context, you can do so with the following code:
q := qilin.New("beer hall")listener := transport.NewStdio(context.Background())q.Start(qilin.StartWithListener(listener))