mcpserver

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginService

type PluginService interface {
	ListPlugins(ctx context.Context, filter core.PluginFilter) ([]core.PluginInfo, error)
}

PluginService provides plugin discovery for MCP tools.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server wraps MCP HTTP handler.

func New

func New(pluginService PluginService, logger *slog.Logger) *Server

New creates an MCP server and returns its HTTP handler wrapper.

func (*Server) Handler

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

Handler returns MCP streamable HTTP handler.

Jump to

Keyboard shortcuts

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