Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthCallbackRequest ¶
type OAuthCallbackResult ¶
type OAuthStartResult ¶
type OAuthStartResult struct {
AuthorizationURL string
}
type Service ¶
type Service interface {
Create(ctx context.Context, srv *runtimetypes.MCPServer) error
Get(ctx context.Context, id string) (*runtimetypes.MCPServer, error)
GetByName(ctx context.Context, name string) (*runtimetypes.MCPServer, error)
Update(ctx context.Context, srv *runtimetypes.MCPServer) error
Delete(ctx context.Context, id string) error
List(ctx context.Context, createdAtCursor *time.Time, limit int) ([]*runtimetypes.MCPServer, error)
AuthenticateOAuth(ctx context.Context, name string, oauthCfg *localtools.MCPOAuthConfig) error
StartOAuth(ctx context.Context, id, redirectBase string) (*OAuthStartResult, error)
CompleteOAuth(ctx context.Context, req OAuthCallbackRequest) (*OAuthCallbackResult, error)
}
func WithActivityTracker ¶
func WithActivityTracker(service Service, tracker libtracker.ActivityTracker) Service
Click to show internal directories.
Click to hide internal directories.