Documentation
¶
Overview ¶
Package rest provides the HTTP interface for the MCP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
MCPServer represents the HTTP server for the MCP protocol.
func NewMCPServer ¶
func NewMCPServer(service *usecases.ServerService, addr string, opts ...MCPServerOption) *MCPServer
NewMCPServer creates a new MCP server.
func (*MCPServer) GetAddress ¶
GetAddress returns the server's address
func (*MCPServer) GetServerInfo ¶
GetServerInfo returns information about the server. This is useful for external components that need access to the server information.
func (*MCPServer) GetService ¶
func (s *MCPServer) GetService() *usecases.ServerService
GetService returns the server service. This is useful for external components that need access to the service.
type MCPServerOption ¶
type MCPServerOption func(*MCPServer)
MCPServerOption is a function option for MCPServer
func WithLogger ¶
func WithLogger(logger *logging.Logger) MCPServerOption
WithLogger sets the logger for the MCPServer
Click to show internal directories.
Click to hide internal directories.