Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORSConfig ¶ added in v0.0.11
type CORSConfig struct {
AllowedOrigins []string
AllowedMethods []string
AllowedHeaders []string
MaxAge int
}
CORSConfig represents CORS configuration
func DefaultCORSConfig ¶ added in v0.0.11
func DefaultCORSConfig() *CORSConfig
DefaultCORSConfig returns a default CORS configuration
type MockServer ¶
MockServer represents a mock MCP server implementation for testing
func NewMockServer ¶
NewMockServer creates a new mock MCP server for testing
type Server ¶
Server represents the MCP server implementation
func (*Server) MetricsHandler ¶ added in v0.9.15
MetricsHandler returns a standalone metrics HTTP handler for :9091
func (*Server) SetCORSConfig ¶ added in v0.0.11
func (s *Server) SetCORSConfig(config *CORSConfig)
SetCORSConfig sets the CORS configuration for the server
Click to show internal directories.
Click to hide internal directories.