pub struct McpServerFile {
pub name: String,
pub endpoint: Option<String>,
pub headers: BTreeMap<String, String>,
pub tags: BTreeMap<String, Vec<String>>,
pub aauth: Option<bool>,
}Expand description
One MCP server, reached over the Streamable HTTP transport: a remote
endpoint (https://host[:port][/path], loopback http:// for dev) with
optional secret-free auth headers. There is no local process spawn — every
server is a network peer, so config can never turn into command execution.
tags is the glob→tags wire (the loader flattens a {"*": ["sensitive"]}
map to the server’s tag set).
Fields§
§name: String§endpoint: Option<String>Remote MCP endpoint.
headers: BTreeMap<String, String>Auth/framing header templates — values MAY interpolate {{secret:NAME}} /
{{secret-file:PATH}}, never inline secrets.
Glob→trifecta-tags. A server with no tags is treated as
untrusted_input, so forgetting to tag one narrows the trust budget
rather than widening it.
aauth: Option<bool>Sign requests to this server with the AAuth agent identity.
None inherits the global default (sign all when an identity is
configured); false opts out; true opts in. Needs --features aauth.
Trait Implementations§
Source§impl Clone for McpServerFile
impl Clone for McpServerFile
Source§fn clone(&self) -> McpServerFile
fn clone(&self) -> McpServerFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more