Versions in this module Expand all Collapse all v1 v1.3.0 Apr 17, 2026 Changes in this version + func InjectAuthContext(ctx context.Context, req *http.Request) context.Context + func RegisterBuiltinTools(server *mcpserver.MCPServer, specs []ToolSpec) + func RegisterCommandTools(server *mcpserver.MCPServer, specs []ToolSpec, options CommandExecutionOptions) + type Auth struct + APIKey string + Authorization string + func AuthFromContext(ctx context.Context) (Auth, error) + type CommandExecutionOptions struct + PublicAPIURL string + type ExecutionOptions struct + Auth Auth + Body any + Command []string + DisplayCommand []string + PublicAPIURL string + type ExecutionResult struct + ExitCode int + Payload any + Stderr string + StderrTruncated bool + Stdout string + StdoutTruncated bool + func ExecuteCLICommand(ctx context.Context, options ExecutionOptions) (*ExecutionResult, error) + type FlagBinding struct + FlagName string + Kind string + Property string + type Server struct + func NewServer(options ServerOptions) *Server + func (s *Server) Serve(ctx context.Context) error + type ServerOptions struct + Port int + PublicAPIURL string + Tools []ToolSpec + Version string + type ToolSpec struct + AllowExtraArgs bool + BodyProperty string + Command []string + Description string + FlagBindings []FlagBinding + Name string + Path string + PositionalArgs []string + Tool mcpgo.Tool