Documentation
¶
Overview ¶
Package session tracks active MCP client sessions for the bound database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMeta ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(srv *gomcp.Server, transport, listen string, l *ledger.Ledger, logger *slog.Logger) *Registry
NewRegistry tracks live sessions; l (may be nil) persists their metrics.
func (*Registry) Middleware ¶
func (r *Registry) Middleware(next gomcp.MethodHandler) gomcp.MethodHandler
Middleware records connect/activity/tool-call signals on each inbound request.
func (*Registry) Run ¶ added in v0.3.5
Run flushes the ledger on a ticker and once more on shutdown.
func (*Registry) Snapshot ¶
func (r *Registry) Snapshot() []SessionInfo
Snapshot returns one SessionInfo per live SDK session, pruning stale entries.
type SessionInfo ¶
Click to show internal directories.
Click to hide internal directories.