mcpserver

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*mcp.Server
	// contains filtered or unexported fields
}

func New

func New(_ context.Context, logger *slog.Logger, version string, keepAlive time.Duration, client *api.Client) (*Server, error)

func (*Server) Handler added in v0.5.0

func (s *Server) Handler() http.Handler

type Tool added in v0.5.0

type Tool[I any, O any] struct {
	Tool    *mcp.Tool
	Handler mcp.ToolHandlerFor[I, O]
}

func (*Tool[I, O]) Add added in v0.5.0

func (t *Tool[I, O]) Add(server *mcp.Server)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL