mcp

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybeInitialCompile

func MaybeInitialCompile(ctx context.Context, st *store.Store, dir string, logger *slog.Logger) error

Run an initial compile when the store is empty; no-op otherwise.

Types

type Option added in v0.1.3

type Option func(*options)

func WithLogger added in v0.1.3

func WithLogger(l *slog.Logger) Option

func WithSourceDir added in v0.1.3

func WithSourceDir(dir string) Option

type RescanLoop

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

func NewRescanLoop

func NewRescanLoop(st *store.Store, dir string, interval time.Duration, logger *slog.Logger) (*RescanLoop, error)

func (*RescanLoop) Run

func (r *RescanLoop) Run(ctx context.Context)

type Server

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

func NewServer

func NewServer(st *store.Store, tracker *temperature.Tracker, cfg temperature.Config, opts ...Option) *Server

func (*Server) Connect

func (s *Server) Connect(ctx context.Context, t mcp.Transport) (*mcp.ServerSession, error)

func (*Server) NotifyColdNodes

func (s *Server) NotifyColdNodes(ctx context.Context, cold []*store.Node)

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