tools

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTools added in v0.3.0

func RegisterTools(hcServer *server.MCPServer, logger *log.Logger)

Types

type DynamicToolRegistry added in v0.3.0

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

DynamicToolRegistry manages the availability of tools based on session state

func GetDynamicToolRegistry added in v0.3.0

func GetDynamicToolRegistry() *DynamicToolRegistry

GetDynamicToolRegistry returns the global tool registry instance

func (*DynamicToolRegistry) HasAnySessionWithTFE added in v0.3.0

func (r *DynamicToolRegistry) HasAnySessionWithTFE() bool

HasAnySessionWithTFE checks if any session has a TFE client

func (*DynamicToolRegistry) HasSessionWithTFE added in v0.3.0

func (r *DynamicToolRegistry) HasSessionWithTFE(sessionID string) bool

HasSessionWithTFE checks if a specific session has a TFE client

func (*DynamicToolRegistry) RegisterSessionWithTFE added in v0.3.0

func (r *DynamicToolRegistry) RegisterSessionWithTFE(sessionID string)

RegisterSessionWithTFE marks a session as having a valid TFE client

func (*DynamicToolRegistry) UnregisterSessionWithTFE added in v0.3.0

func (r *DynamicToolRegistry) UnregisterSessionWithTFE(sessionID string)

UnregisterSessionWithTFE removes a session from the TFE registry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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