mcp

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Descriptor added in v0.7.0

func Descriptor() spi.PluginDescriptor

Descriptor returns the MCP plugin descriptor.

Types

type Plugin

type Plugin struct {
	baseplugin.Base
	// contains filtered or unexported fields
}

Plugin implements the MCP relay as a plugin.

func New

func New(
	state spi.ServerState,
	connect http.Handler,
	workers spi.WorkerRegistry,
	sched spi.Scheduler,
	metrics spi.Metrics,
	stateProvider func() any,
	version, sha, date string,
	opts spi.Options,
	authMW spi.Middleware,
) *Plugin

New constructs a new MCP plugin using the common server options.

func (*Plugin) RegisterMetrics

func (p *Plugin) RegisterMetrics(reg spi.MetricsRegistry)

RegisterMetrics registers Prometheus collectors; MCP has none currently.

func (*Plugin) RegisterRoutes

func (p *Plugin) RegisterRoutes(r spi.Router)

RegisterRoutes registers HTTP routes; MCP uses relay endpoints only.

func (*Plugin) RegisterState

func (p *Plugin) RegisterState(reg spi.StateRegistry)

RegisterState registers MCP state elements.

func (*Plugin) Registry

func (p *Plugin) Registry() *tunnel.Registry

Registry exposes the underlying tunnel registry for tests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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