mcp

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 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
}

func NewServer

func NewServer(cfg *config.MCP) *Server

NewServer creates a new MCP server and registers tools. Authentication is checked at startup and monitored continuously in the background. Authenticated tools are dynamically added/removed based on authentication status, and clients are automatically notified via tools/list_changed notifications.

func (*Server) OnAuthChange

func (s *Server) OnAuthChange(ctx context.Context, _ bool)

func (*Server) OnMetaChange

func (s *Server) OnMetaChange(ctx context.Context, meta *remote.Meta)

func (*Server) Run

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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