Documentation
¶
Overview ¶
Package httpserver serves authenticated MCP over Streamable HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeMetrics ¶ added in v0.8.0
ServeMetrics serves only /metrics on addr until ctx is done or the returned function is called. It is a separate listener so the metrics never share the public origin, its Host check or its authentication.
Types ¶
type Options ¶
type Options struct {
Server *mcp.Server
Verifier auth.TokenVerifier
// AuthorizationServers are advertised in protected resource metadata.
AuthorizationServers []string
// Routes registers extra handlers (authorization server, approvals).
Routes []func(*http.ServeMux)
}
Options are the parts assembled by main.