stdio

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSEBridgeServer

type SSEBridgeServer struct {
	// contains filtered or unexported fields
}

SSEBridgeServer is a stdio server that forwards all requests to an SSE server

func NewSSEBridgeServer

func NewSSEBridgeServer(logger zerolog.Logger, sseURL string) *SSEBridgeServer

NewSSEBridgeServer creates a new stdio server instance that forwards to SSE

func (*SSEBridgeServer) Start

func (s *SSEBridgeServer) Start(ctx context.Context) error

Start begins listening for and handling messages on stdio

func (*SSEBridgeServer) Stop

func (s *SSEBridgeServer) Stop(ctx context.Context) error

Stop gracefully stops the stdio server

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server handles stdio transport for MCP protocol

func NewServer

NewServer creates a new stdio server instance

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start begins listening for and handling messages on stdio

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop gracefully stops the stdio server

Jump to

Keyboard shortcuts

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