mcpserver

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExposureProfile = "profile"
	ExposureCompact = "compact"
	ExposureFull    = "full"
)
View Source
const (
	DefaultMaxInlineBytes = 131072
)
View Source
const TransportStdio = "stdio"

Variables

View Source
var (
	ErrDisabled             = errors.New("MCP server is disabled")
	ErrUnsupportedTransport = errors.New("unsupported MCP transport")
)
View Source
var ErrArbitraryCodePermissionRequired = errors.New("arbitrary-code permission is required")

Functions

func Run

func Run(ctx context.Context, config Config, transport mcp.Transport) error

func RunStdio

func RunStdio(ctx context.Context, config Config) error

Types

type Config

type Config struct {
	Enabled            bool
	Transport          string
	Profile            string
	Exposure           string
	AllowArbitraryCode bool
	MRTR               bool
	Version            string
	Project            string
	Port               int
	TimeoutMS          int
	MaxInlineBytes     int
	Diagnostics        io.Writer
}

func (Config) Validate

func (config Config) Validate() error

Jump to

Keyboard shortcuts

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