mcp

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 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 CredentialContext added in v1.1.0

type CredentialContext struct {
	CredentialID   uint
	CredentialName string
	HostName       string
	Permissions    model.Permissions
	Source         string // "db_credential", "env_token", "open_access"
}

func CredentialFromContext added in v1.1.0

func CredentialFromContext(ctx context.Context) *CredentialContext

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 GetToolDefinitionsForPermissions added in v1.1.0

func GetToolDefinitionsForPermissions(perms model.Permissions) []ToolDefinition

Jump to

Keyboard shortcuts

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