mcp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 12 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.Config, st *store.Store, onUpdate func(eventType string, data any)) *Server

func (*Server) GetActiveWaiterInfo

func (s *Server) GetActiveWaiterInfo(sessionID string) (bool, *time.Time, int)

func (*Server) GetLastKeepaliveTime

func (s *Server) GetLastKeepaliveTime(sessionID string) *time.Time

func (*Server) HasActiveWaiter

func (s *Server) HasActiveWaiter(sessionID string) bool

func (*Server) NotifySessionCompleted

func (s *Server) NotifySessionCompleted(sess *model.FeedbackSession)

func (*Server) RecordKeepaliveResponse

func (s *Server) RecordKeepaliveResponse(sessionID string)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ToolDefinition

type ToolDefinition struct {
	Name        string          `json:"name"`
	Description string          `json:"description"`
	InputSchema json.RawMessage `json:"inputSchema"`
}

func GetToolDefinitions

func GetToolDefinitions(role string) []ToolDefinition

Jump to

Keyboard shortcuts

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