Versions in this module Expand all Collapse all v0 v0.1.0 Aug 10, 2026 Changes in this version + const DefaultContextDescription + const DefaultConversationIDDescription + const DefaultMissingCapabilityToolName + const EventCustom + const EventException + const EventIdentify + const EventInitialize + const EventMissingCapability + const EventPromptGet + const EventPromptsList + const EventResourceRead + const EventResourcesList + const EventToolCall + const EventToolsList + const PropertyAnonDistinctID + const PropertyClientName + const PropertyClientUserAgent + const PropertyClientVersion + const PropertyConversationID + const PropertyDurationMS + const PropertyErrorMessage + const PropertyErrorType + const PropertyIntent + const PropertyIntentSource + const PropertyIsError + const PropertyListedToolNames + const PropertyParameters + const PropertyProtocolVersion + const PropertyResourceName + const PropertyResponse + const PropertyServerName + const PropertyServerVersion + const PropertySessionID + const PropertySource + const PropertyToolCategory + const PropertyToolDescription + const PropertyToolName + const PropertyVendorClient + const SDKLanguage + const Source + const Version + type Analytics struct + func New(client posthog.EnqueueClient, options *Options) *Analytics + func (a *Analytics) Capture(ctx context.Context, name string, properties map[string]any) (err error) + func (a *Analytics) Enabled() bool + func (a *Analytics) Middleware() mcp.Middleware + type BeforeSendFunc func(context.Context, Event) (*Event, error) + type Event struct + DistinctID string + Event string + Groups posthog.Groups + Properties posthog.Properties + Timestamp time.Time + UUID string + type EventPropertiesFunc func(context.Context, mcp.Request) (posthog.Properties, error) + type IdentifyFunc func(context.Context, mcp.Request) (*Identity, error) + type Identity struct + DistinctID string + Groups posthog.Groups + Properties posthog.Properties + type IntentFallbackFunc func(context.Context, mcp.Request) (string, error) + type Options struct + BeforeSend BeforeSendFunc + ContextDescription string + DisableContextInjection bool + DisableExceptionAutocapture bool + EnableConversationID bool + EventProperties EventPropertiesFunc + Identify IdentifyFunc + IntentFallback IntentFallbackFunc + Logger *slog.Logger + MissingCapabilityToolName string + ReportMissing bool