Documentation
¶
Index ¶
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) 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.