Documentation
¶
Index ¶
- func NewTextResult(content string, err error) *mcp.CallToolResult
- type Configuration
- type Server
- func (s *Server) Close()
- func (s *Server) GetEnabledTools() []string
- func (s *Server) IsHealthy() bool
- func (s *Server) ServeHTTP(httpServer *http.Server) *server.StreamableHTTPServer
- func (s *Server) ServeSse(baseURL string, httpServer *http.Server) *server.SSEServer
- func (s *Server) ServeStdio() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTextResult ¶
func NewTextResult(content string, err error) *mcp.CallToolResult
NewTextResult creates a standardized text result for tool responses
Types ¶
type Configuration ¶
type Configuration struct {
*config.StaticConfig
}
Configuration wraps the static configuration with additional runtime components
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the MCP server
func NewServer ¶
func NewServer(configuration Configuration) (*Server, error)
NewServer creates a new MCP server with the given configuration
func (*Server) GetEnabledTools ¶
GetEnabledTools returns the list of enabled tools
func (*Server) IsHealthy ¶ added in v0.5.2
IsHealthy returns true if the server and its clients are properly initialized
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(httpServer *http.Server) *server.StreamableHTTPServer
ServeHTTP starts the MCP server in HTTP mode
func (*Server) ServeStdio ¶
ServeStdio starts the MCP server in stdio mode
Click to show internal directories.
Click to hide internal directories.