Skip to content
GitHub

Stdio Transport

By default, Qilin uses the Stdio Transport. This is the simplest way to run an MCP server.

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

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))