Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelperConfig ¶
HelperConfig represents the configuration for a credential helper command.
type HelperOutput ¶
type HelperOutput struct {
Headers map[string]string `json:"headers"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
}
HelperOutput represents the JSON output from a credential helper command.
type HelperTransport ¶
type HelperTransport struct {
// contains filtered or unexported fields
}
HelperTransport is a custom http.RoundTripper that executes a credential helper command to dynamically generate HTTP headers for MCP server requests.
func NewHelperTransport ¶
func NewHelperTransport(cfg HelperConfig, staticHeaders map[string]string, base http.RoundTripper) *HelperTransport
NewHelperTransport creates a new HelperTransport. staticHeaders are applied first, then helper-generated headers override them. If base is nil, http.DefaultTransport is used.
Click to show internal directories.
Click to hide internal directories.