mcp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "0.2.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(transport string, opts ...ServerOption) *Server

func (*Server) LoadTools

func (s *Server) LoadTools(manager *tool.Manager) error

func (*Server) Run

func (s *Server) Run() error

type ServerOption

type ServerOption func(*Server)

func WithAuth

func WithAuth(a *auth.Authenticator) ServerOption

func WithHost

func WithHost(host string) ServerOption

func WithHttpServer added in v0.2.0

func WithHttpServer(server *http.Server) ServerOption

func WithPort

func WithPort(port string) ServerOption

func WithToolsFile

func WithToolsFile(path string) ServerOption

Jump to

Keyboard shortcuts

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