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 Option ¶ added in v0.3.6
type Option func(*options)
func WithLedger ¶ added in v0.3.6
func WithListen ¶ added in v0.3.6
func WithLogger ¶ added in v0.3.6
func WithTransport ¶ added in v0.3.6
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
NewRegistry tracks live sessions; the ledger (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.