Documentation
¶
Overview ¶
Package mcpserver exposes runtimekit through the official MCP protocol SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPOptions ¶
type HTTPOptions struct {
Address string
BearerToken string
AllowedHosts []string
AllowedOrigins []string
MaxBodyBytes int64
MaxConcurrent int
RequestTimeout time.Duration
ShutdownGrace time.Duration
}
HTTPOptions are resolved transport settings. Token values never enter config files.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server owns the protocol surface for one immutable runtime composition.
func New ¶
func New(runtime *runtimekit.Runtime) (*Server, error)
New registers stable tools, resources, and prompts.
func (*Server) HTTPHandler ¶
func (s *Server) HTTPHandler(opts HTTPOptions) (http.Handler, error)
HTTPHandler returns a stateless Streamable HTTP handler with bounded admission.
func (*Server) ProtocolServer ¶
ProtocolServer returns the underlying official MCP server for custom transports.