Documentation
¶
Index ¶
- type JSONRPCRequest
- type JSONRPCResponse
- type Pool
- func (p *Pool) GetSocketPath(name string) string
- func (p *Pool) GetURL(name string) string
- func (p *Pool) IsRunning(name string) bool
- func (p *Pool) ListServers() []ProxyInfo
- func (p *Pool) ShouldPool(mcpName string) bool
- func (p *Pool) Shutdown() error
- func (p *Pool) Start(name, command string, args []string, env map[string]string) error
- type PoolConfig
- type ProxyInfo
- type ServerStatus
- type SocketProxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONRPCRequest ¶
type JSONRPCResponse ¶
type JSONRPCResponse struct {
JSONRPC string `json:"jsonrpc"`
Result interface{} `json:"result,omitempty"`
Error interface{} `json:"error,omitempty"`
ID interface{} `json:"id,omitempty"`
}
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) GetSocketPath ¶
func (*Pool) ListServers ¶
func (*Pool) ShouldPool ¶
type PoolConfig ¶
type ServerStatus ¶
type ServerStatus int
ServerStatus represents MCP server state
const ( StatusStopped ServerStatus = iota StatusStarting StatusRunning StatusFailed )
func (ServerStatus) String ¶
func (s ServerStatus) String() string
type SocketProxy ¶
type SocketProxy struct {
Status ServerStatus
// contains filtered or unexported fields
}
SocketProxy wraps a stdio MCP process with a Unix socket
func NewSocketProxy ¶
func (*SocketProxy) GetClientCount ¶
func (p *SocketProxy) GetClientCount() int
func (*SocketProxy) GetSocketPath ¶
func (p *SocketProxy) GetSocketPath() string
func (*SocketProxy) HealthCheck ¶
func (p *SocketProxy) HealthCheck() error
func (*SocketProxy) Start ¶
func (p *SocketProxy) Start() error
func (*SocketProxy) Stop ¶
func (p *SocketProxy) Stop() error
Click to show internal directories.
Click to hide internal directories.