Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "pkg/auth/v0.0.1"
Variables ¶
This section is empty.
Functions ¶
func NewTransportApiKey ¶
func NewTransportApiKey(spec ConfigApiKey) (*mcp.StreamableClientTransport, error)
NewApiKey creates MCP transport with API Key authentication.
func NewTransportIAM ¶
func NewTransportIAM(spec ConfigIAM) (*mcp.StreamableClientTransport, error)
NewTransportIAM creates MCP transport with AWS IAM authentication.
Types ¶
type ConfigApiKey ¶
type ConfigApiKey struct {
// Endpoint URL of MCP server
Url string
// API Access & Secret keys
Access, Secret string
// Custom HTTP client (if nil, default client will be used)
Client *http.Client
}
Configure API Key authentication for MCP client
type ConfigIAM ¶
type ConfigIAM struct {
// Endpoint URL of MCP server
Url string
// AWS IAM Role to assume
Role string
// Optional External ID for AssumeRole operation
ExternalID string
// AWS SDK configuration (if nil, default config will be used)
Config *aws.Config
// Custom HTTP client (if nil, default client will be used)
Client *http.Client
}
Configure IAM authentication for MCP client
Click to show internal directories.
Click to hide internal directories.