Versions in this module Expand all Collapse all v0 v0.1.0 Oct 30, 2026 Changes in this version + var ErrInvalidCredential = errors.New("invalid bridge credential") + func AddTool[In, Out any](r *Registrar, tool *mcp.Tool, handler func(context.Context, In) (Out, error)) (err error) + func Confirm(ctx context.Context, reference string) + func JSONHandler[In, Out any](operation string, decode func(*http.Request) (In, error), ...) (http.Handler, error) + func StreamHandler[In any](operation string, decode func(*http.Request) (In, error), ...) (http.Handler, error) + func Version() string + type Caller struct + ClientID string + ConnectionID string + Principal achrix.Principal + type Config struct + Admit func(context.Context, Caller) error + AllowedOrigins []string + AuthorizationServers []string + Diagnostic func(context.Context, Diagnostic) + Gate func(context.Context, Caller, string) error + Limits Limits + ResourceURL string + Scopes []string + Verify VerifyToken + type Credential struct + Caller Caller + ExpiresAt time.Time + Scopes []string + type Diagnostic struct + Cause error + Code string + Dispatched bool + Outcome Outcome + Phase string + Reference string + Request Request + type Endpoint struct + func New(config Config, register func(*Registrar) error) (*Endpoint, error) + func NewJSONHTTP(config Config, handler http.Handler) (*Endpoint, error) + func NewStreamingHTTP(config Config, handler http.Handler) (*Endpoint, error) + func (e *Endpoint) MetadataHandler() http.Handler + func (e *Endpoint) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Fault struct + Action string + Cause error + Code string + Fields map[string]string + HTTPStatus int + Message string + Outcome Outcome + Reference string + func (f *Fault) Error() string + type Limits struct + Concurrent int + RequestBytes int64 + ResponseBytes int64 + Timeout time.Duration + type Outcome string + const NotCommitted + const NotExecuted + const Succeeded + const Unknown + type Registrar struct + type Request struct + Caller Caller + Channel string + ID string + Operation string + func RequestFromContext(ctx context.Context) (Request, bool) + type VerifyToken func(context.Context, string) (Credential, error)