commands

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRegistryURL = "https://registry.modelcontextprotocol.io"
	TokenFileName      = ".mcp_publisher_token" //nolint:gosec // Not a credential, just a filename
	MethodGitHub       = "github"
	MethodGitHubOIDC   = "github-oidc"
	MethodDNS          = "dns"
	MethodHTTP         = "http"
	MethodNone         = "none"
)

Variables

This section is empty.

Functions

func InitCommand

func InitCommand() error

func LoginCommand

func LoginCommand(args []string) error

func LogoutCommand

func LogoutCommand() error

func PublishCommand

func PublishCommand(args []string) error

Types

type CryptoAlgorithm added in v1.3.7

type CryptoAlgorithm auth.CryptoAlgorithm

func (*CryptoAlgorithm) Set added in v1.3.7

func (c *CryptoAlgorithm) Set(v string) error

func (*CryptoAlgorithm) String added in v1.3.7

func (c *CryptoAlgorithm) String() string

type LoginFlags added in v1.3.7

type LoginFlags struct {
	Domain          string
	PrivateKey      string
	RegistryURL     string
	KvVault         string
	KvKeyName       string
	KmsResource     string
	Token           Token
	CryptoAlgorithm CryptoAlgorithm
	SignerType      SignerType
	ArgOffset       int
}

type SignerType added in v1.3.7

type SignerType string
const (
	InProcessSignerType     SignerType = "in-process"
	AzureKeyVaultSignerType SignerType = "azure-key-vault"
	GoogleKMSSignerType     SignerType = "google-kms"
	NoSignerType            SignerType = "none"
)

type Token added in v1.3.7

type Token string

Jump to

Keyboard shortcuts

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