Documentation
¶
Overview ¶
Package mcpauthority carries the exclusive MCP construction selection between command-side profile loading and application composition.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerConfig ¶
type BrokerConfig struct {
Routes []permconfig.MCPServerProfile
CallbackURL string
}
BrokerConfig is the neutral, runtime-independent broker declaration set.
type Mode ¶
type Mode string
Mode identifies the sole selected MCP authority path. The zero value is invalid.
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result is the canonical authority tagged union. Unexported payloads prevent a caller from constructing a value with both authority paths.
func NewBroker ¶
func NewBroker(config BrokerConfig) *Result
NewBroker takes one deep defensive copy and creates a broker-only result.
func NewGlobal ¶
func NewGlobal(servers []mcp.ServerConfig, lifecycle interface{ Close() error }) *Result
NewGlobal takes a defensive copy and creates a global-only result.
func (*Result) Broker ¶
func (r *Result) Broker() (BrokerConfig, bool)
Broker returns broker declarations only for a valid broker selection. The returned declaration tree does not alias the result.