Documentation
¶
Overview ¶
SPDX-License-Identifier: MIT Copyright (c) 2026 dr.max
SPDX-License-Identifier: MIT Copyright (c) 2025 dr.max
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORSConfig ¶
type CORSConfig struct {
AllowedOrigins []string
AllowedMethods []string
AllowedHeaders []string
MaxAge int
}
CORSConfig represents CORS configuration
func DefaultCORSConfig ¶
func DefaultCORSConfig() *CORSConfig
DefaultCORSConfig returns a default CORS configuration
type Server ¶
Server represents the MCP server implementation
func (*Server) HTTPHandler ¶
HTTPHandler exposes modern MCP and legacy endpoints under the same policy. An empty token is intended for loopback-only listeners.
func (*Server) MetricsHandler ¶
MetricsHandler returns a standalone metrics HTTP handler for :9091
func (*Server) SetCORSConfig ¶
func (s *Server) SetCORSConfig(config *CORSConfig)
SetCORSConfig sets the CORS configuration for the server