mcp

package
v0.0.0-...-4ae6852 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 57 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(mux goahttp.Muxer, service *Service, metadataService *mcpmetadata.Service)

func NewErrorFromCause

func NewErrorFromCause(id msgID, source error) *rpcError

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	logger *slog.Logger,
	tracerProvider trace.TracerProvider,
	meterProvider metric.MeterProvider,
	db *pgxpool.Pool,
	sessions *sessions.Manager,
	env gateway.EnvironmentLoader,
	posthog *posthog.Posthog,
	serverURL *url.URL,
	enc *encryption.Client,
	cacheImpl cache.Cache,
	guardianPolicy *guardian.Policy,
	funcCaller functions.ToolCaller,
	oauthService *oauth.Service,
	billingTracker billing.Tracker,
	billingRepository billing.Repository,
	tcm tm.ToolMetricsProvider,
) *Service

func (*Service) HandleGetServer

func (s *Service) HandleGetServer(w http.ResponseWriter, r *http.Request, metadataService *mcpmetadata.Service) error

HandleGetServer handles GET requests to /mcp/{mcpSlug}, checking for HTML requests and delegating to metadata service, or returning method not allowed for others.

func (*Service) HandleWellKnownOAuthProtectedResourceMetadata

func (s *Service) HandleWellKnownOAuthProtectedResourceMetadata(w http.ResponseWriter, r *http.Request) error

func (*Service) HandleWellKnownOAuthServerMetadata

func (s *Service) HandleWellKnownOAuthServerMetadata(w http.ResponseWriter, r *http.Request) error

handleWellKnownMetadata handles OAuth 2.1 authorization server metadata discovery

func (*Service) ServeAuthenticated

func (s *Service) ServeAuthenticated(w http.ResponseWriter, r *http.Request) error

func (*Service) ServePublic

func (s *Service) ServePublic(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL