expose

package
v0.2.49 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPServer

func NewHTTPServer(ctx context.Context, exec *executor.Service, cfg *executor.MCPServerConfig) (*http.Server, error)

NewHTTPServer constructs an MCP HTTP server exposing selected executor tools. It does not start listening; callers should run ListenAndServe and handle shutdown.

Types

type ToolHandler

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

ToolHandler exposes executor tool registry via MCP tools/list and tools/call.

func NewToolHandler

func NewToolHandler(exec *executor.Service, patterns []string) *ToolHandler

func (*ToolHandler) Implements

func (h *ToolHandler) Implements(method string) bool

func (*ToolHandler) OnNotification

func (h *ToolHandler) OnNotification(_ context.Context, _ *jsonrpc.Notification)

Jump to

Keyboard shortcuts

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