Documentation
¶
Overview ¶
Package mcplifecycle contains the reusable, non-UI part of direct MCP profile lifecycle operations. It deliberately does not parse argv, inspect a terminal, install signals, or render command output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddRequest ¶
type AddRequest struct {
Name, URL, Issuer string
Settings []byte
CredentialRoot string
FileKeyPath string
CredentialStore string
Attended bool
ConfirmFile mcpcredential.ConfirmFile
Progress Progress
}
AddRequest supplies validated command inputs and the already-read settings document. Settings publication remains with the caller so its locking and CAS policy stay at the file boundary.
type AddResult ¶
AddResult is the prepared settings document and the selected custody backend.
func Add ¶
func Add(ctx context.Context, req AddRequest) (AddResult, error)
Add discovers the issuer, selects pinned custody, and prepares (but does not publish) the direct MCP profile. Key material is cleared before returning. The issuer is supplied when discovery was intentionally performed by the caller; an empty issuer performs discovery here.
type ListEntry ¶
type ListEntry struct {
Name, URL, Kind, CredentialStatus string
}
ListEntry is the bounded, non-secret profile projection used by list.
func List ¶
func List(cfg permconfig.Config) []ListEntry
List returns the configured profiles from one winning settings document. Credential status is derived solely through mcpcredential's canonical marker inspector and never opens a keyring or reads a credential.