mcpserver

package
v0.0.0-...-35d6492 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(channel Channel, version string) *mcp.Server

New creates the text-only Turnwire MCP server.

func Run

func Run(ctx context.Context, channel Channel, version string, stdin io.Reader, stdout io.Writer, budgetDir string, maxInputBytes, maxConcurrent, maxRequestsPerMinute int) error

Run serves Turnwire over the provided stdin/stdout streams until the client disconnects or ctx is canceled. Incoming JSON frames are bounded and validated before the MCP SDK decodes them. If t also implements Shutdown, Run starts that shutdown as soon as transport teardown is observed and waits for both the MCP session and relay workers before returning.

Types

type Channel

Channel exposes the complete signed mailbox protocol.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL