auth

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 15 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL