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.
Click to show internal directories.
Click to hide internal directories.