Documentation
¶
Index ¶
- Variables
- func CorsAndAuthenticatedStreamableServerFunction(mcpHandler *mcp.StreamableHTTPHandler, httpAddr *string)
- func CorsMiddleware(handler http.Handler) http.Handler
- func GetStreamableScrapflyClient(p *scrapflyprovider.ScrapflyToolProvider, ctx context.Context) (*scrapfly.Client, error)
- func IsDigestRegex(s string) bool
- func RequireBearerToken(apikeyVerifier TokenVerifier) func(http.Handler) http.Handler
- func ScrapflyAuthMiddleware(handler *mcp.StreamableHTTPHandler) http.Handler
- type TokenInfo
- type TokenVerifier
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidToken = errors.New("invalid token")
Functions ¶
func CorsAndAuthenticatedStreamableServerFunction ¶
func CorsAndAuthenticatedStreamableServerFunction(mcpHandler *mcp.StreamableHTTPHandler, httpAddr *string)
func GetStreamableScrapflyClient ¶
func GetStreamableScrapflyClient(p *scrapflyprovider.ScrapflyToolProvider, ctx context.Context) (*scrapfly.Client, error)
func IsDigestRegex ¶
func RequireBearerToken ¶
func RequireBearerToken(apikeyVerifier TokenVerifier) func(http.Handler) http.Handler
func ScrapflyAuthMiddleware ¶
func ScrapflyAuthMiddleware(handler *mcp.StreamableHTTPHandler) http.Handler
Middleware to verify Scrapfly API key
Types ¶
Click to show internal directories.
Click to hide internal directories.