Documentation
¶
Overview ¶
Package proxy provides functionality for proxying MCP tool requests to shell scripts.
Index ¶
- func RunProxyServer(toolConfigs map[string]map[string]string) error
- type Parameter
- type Server
- func (s *Server) AddTool(name, description, paramStr, scriptPath string, command string) error
- func (s *Server) Close() error
- func (s *Server) ExecuteScript(toolName string, args map[string]interface{}) (string, error)
- func (s *Server) GetToolSchema(toolName string) (map[string]interface{}, error)
- func (s *Server) Start() error
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles proxying requests to shell scripts.
func NewProxyServer ¶
NewProxyServer creates a new proxy server.
func (*Server) ExecuteScript ¶
ExecuteScript executes a shell script or command with the given parameters.
func (*Server) GetToolSchema ¶
GetToolSchema generates a JSON schema for the tool's parameters.
Click to show internal directories.
Click to hide internal directories.