pub struct McpServer {Show 13 fields
pub name: String,
pub endpoint: String,
pub service: Option<String>,
pub service_rate: Option<String>,
pub ns: Option<String>,
pub headers: BTreeMap<String, String>,
pub tags: BTreeMap<String, Vec<String>>,
pub allow: Option<Vec<String>>,
pub exclude: Vec<String>,
pub aauth: Option<bool>,
pub oauth: Option<McpOauth>,
pub auth: Option<Auth>,
pub timeout: Option<Dur>,
}Fields§
§name: String§endpoint: StringEither a literal URL, or empty when service: references a catalog
entry — resolution fills it in before anything dials.
service: Option<String>Reference a services: catalog entry: inherit its connection settings
(restating endpoint/auth/headers here is refused) and narrow its
tool ceiling.
service_rate: Option<String>NOT a config key: the referenced entry’s rate:, stamped by
resolution so to_spec can carry it to every process’s pace registry.
ns: Option<String>§headers: BTreeMap<String, String>§allow: Option<Vec<String>>Tool admission control, on the server’s ADVERTISED names (before any
ns prefixing): with allow, only matching tools register; anything
matching exclude never registers, and exclude beats allow. Globs are
the registry’s pattern_matches (trailing *).
exclude: Vec<String>§aauth: Option<bool>§oauth: Option<McpOauth>§auth: Option<Auth>A unified credential provider — static / oauth2 (device login,
refresh) / aws / spiffe. Interactive providers obtain their token
via agentd login mcp:<name> and the daemon only reads the cached
token, so an unattended process never has to run a browser flow.
Coexists with the narrower oauth client-credentials shortcut.
timeout: Option<Dur>Implementations§
Source§impl McpServer
impl McpServer
Sourcepub fn tag_set(&self) -> Result<Vec<TrifectaTag>, String>
pub fn tag_set(&self) -> Result<Vec<TrifectaTag>, String>
The flattened, deduplicated trifecta tag set across every tool-pattern key. An unknown tag name is an error rather than a silent drop, since a typo’d tag would otherwise read as “this server is untagged”.
Sourcepub fn to_spec(&self) -> Result<McpServerSpec, String>
pub fn to_spec(&self) -> Result<McpServerSpec, String>
Lower to the runtime spec the MCP client and the spawn payload carry.