mcpserver

package
v0.19.1237 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLIBinary added in v0.19.1224

func CLIBinary() string

CLIBinary is the command name used to start this process, such as nuon or nuon-dev.

func CLICommandInstructions added in v0.19.1224

func CLICommandInstructions(binary, configFlag string) string

CLICommandInstructions tells an agent which Nuon binary to use for local CLI work this MCP server asks for, and how to reach the HTTP API when neither MCP nor the CLI has a command. It includes -C only when that flag was passed.

func CLIConfigFlag added in v0.19.1224

func CLIConfigFlag(cfg *config.Config) string

CLIConfigFlag is the -C value this process was started with. Empty when the MCP server or CLI command was not given -C.

func EndpointFromAPIURL added in v0.19.1150

func EndpointFromAPIURL(apiURL string) (string, error)

func IsLocalAPIURL added in v0.19.1163

func IsLocalAPIURL(apiURL string) bool

func NameFromAPIURL added in v0.19.1159

func NameFromAPIURL(apiURL string) string

Types

type Option added in v0.19.1159

type Option func(*Service)

func WithEndpoint added in v0.19.1159

func WithEndpoint(endpoint string) Option

func WithName added in v0.19.1159

func WithName(name string) Option

type Service

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

func New

func New(cfg *config.Config, allowWrites bool, opts ...Option) *Service

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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