server

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents the MCP hub server

func NewServer

func NewServer(cfg *config.Config, logger *slog.Logger) *Server

NewServer creates a new MCP hub server

func (*Server) Start

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

Start starts the MCP server with the specified transport

func (*Server) Stop

func (s *Server) Stop() error

Stop stops the MCP server

type TransportConfig

type TransportConfig struct {
	Type string // "stdio", "http", or "sse"
	Host string // Host to bind for HTTP/SSE
	Port int    // Port to bind for HTTP/SSE
}

TransportConfig holds transport configuration for the server

Jump to

Keyboard shortcuts

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