Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyRunning = errors.New("mcp server already running") ErrNotRunning = errors.New("mcp server not running") )
Functions ¶
func ServeStdio ¶
func ServeStdio(cfg Config, rpc rpcpb.SliverRPCClient) error
ServeStdio runs the MCP server over stdio using the provided configuration.
Types ¶
type Config ¶
type Config struct {
Transport Transport
ListenAddress string
ServerName string
ServerVersion string
}
Config controls the local MCP server settings.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the baseline MCP configuration.
func (Config) EndpointURL ¶
EndpointURL returns the base URL for clients to connect.
func (Config) WithDefaults ¶
WithDefaults fills any empty fields with defaults.
type SliverMCPServer ¶
type SliverMCPServer struct {
Rpc rpcpb.SliverRPCClient
// contains filtered or unexported fields
}
SliverMCPServer wraps the MCP server with Sliver RPC access for handlers.
Click to show internal directories.
Click to hide internal directories.