mcpserver

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ProtocolVersion = "2025-11-25"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AuthToken                   string
	RemoteAgent                 string
	RemoteToken                 string
	RemoteTLS                   bool
	RemoteTLSCA                 string
	RemoteTLSServerName         string
	RemoteTLSInsecureSkipVerify bool
	RemoteTLSClientCert         string
	RemoteTLSClientKey          string
	EnableWrite                 bool
	MaxEventsReturned           int
	MaxLogLinesReturned         int
	DefaultToolTimeoutSeconds   int
}

func ConfigFromEnv

func ConfigFromEnv() Config

type Server

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

func New

func New(cfg Config) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(ctx context.Context, addr string) error

func (*Server) ServeStdio

func (s *Server) ServeStdio(ctx context.Context, in io.Reader, out io.Writer) error

Jump to

Keyboard shortcuts

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