MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / active_server_agent_identity

Method active_server_agent_identity

atomic-config/src/lib.rs:376–382  ·  view source on GitHub ↗

The active server profile's `agent_identity` binding, if any. Active-profile resolution mirrors [`resolve_server`](Self::resolve_server) with no override: `default_server` → named profile, else the legacy `[server]` block. Unlike `resolve_server`, a dangling `default_server` degrades to the legacy block rather than erroring — this is a fallback link in the recording hook's identity chain, and rec

(&self)

Source from the content-addressed store, hash-verified

374 /// link in the recording hook's identity chain, and recording must never
375 /// fail over a misconfigured profile name.
376 pub fn active_server_agent_identity(&self) -> Option<&str> {
377 let profile = match self.default_server.as_deref() {
378 Some(name) => self.servers.get(name).unwrap_or(&self.server),
379 None => &self.server,
380 };
381 profile.agent_identity.as_deref()
382 }
383}
384
385/// Color output preference

Callers 1

resolve_from_partsFunction · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected