Documentation ¶ Index ¶ type PromptHandler type ResourceHandler type Server func NewServer(index *types.Index, logger *slog.Logger) *Server func (s *Server) Run(ctx context.Context) error func (s *Server) Shutdown() error type ToolHandler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type PromptHandler ¶ type PromptHandler func(ctx context.Context, params json.RawMessage) (any, error) type ResourceHandler ¶ type ResourceHandler func(ctx context.Context, uri string) (any, error) type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(index *types.Index, logger *slog.Logger) *Server func (*Server) Run ¶ func (s *Server) Run(ctx context.Context) error Run starts the MCP server loop func (*Server) Shutdown ¶ func (s *Server) Shutdown() error Shutdown gracefully shuts down the server type ToolHandler ¶ type ToolHandler func(ctx context.Context, params json.RawMessage) (any, error) Source Files ¶ View all Source files server.go Directories ¶ Show internal Expand all Path Synopsis protocol transport Click to show internal directories. Click to hide internal directories.