mcp

package
v0.1.16-rc.2 Latest Latest
Warning

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

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

Documentation

Overview

Package mcp provides CLI commands for the MCP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdMcpSseServer added in v0.1.5

func NewCmdMcpSseServer(configOpts *ServerOptions) *cobra.Command

NewCmdMcpSseServer builds the SSE server command.

func NewCmdMcpStdioServer

func NewCmdMcpStdioServer(configOpts *ServerOptions) *cobra.Command

NewCmdMcpStdioServer builds the stdio server command.

Types

type ServerOptions

type ServerOptions struct {
	ReadOnly           bool
	LogFile            string
	LogCommands        bool
	Features           []string
	HTTPAddr           string
	HTTPPath           string
	MultiSessionPulsar bool // Enable per-user Pulsar sessions based on Authorization header
	SessionCacheSize   int  // Maximum number of cached Pulsar sessions
	SessionTTLMinutes  int  // Session TTL in minutes before eviction
	*config.Options
}

ServerOptions is the options for the MCP server commands

func NewMcpServerOptions

func NewMcpServerOptions(configOpts *config.Options) *ServerOptions

NewMcpServerOptions creates ServerOptions with the provided config.

func (*ServerOptions) AddFlags

func (o *ServerOptions) AddFlags(cmd *cobra.Command)

AddFlags registers command flags for the server options.

func (*ServerOptions) Complete

func (o *ServerOptions) Complete() error

Complete finalizes server options after loading configuration.

Jump to

Keyboard shortcuts

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