pub struct ResolvedMcp {
pub global: Vec<McpServerConfig>,
pub overrides: ProjectOverrides,
pub servers: Vec<McpServerConfig>,
pub statuses: Vec<ServerStatus>,
pub issues: Vec<McpIssue>,
}Expand description
Both tiers, layered, with everything that went wrong on the way.
Why: the caller renders the difference between what is configured and what
is live, not just the answer — so all three views travel together.
What: global is the shared file before overrides, overrides the
project’s table as written, servers the effective list in
trusty_mcp::config::resolve’s order, and statuses one entry per
effective server in the same order.
Test: super::tests::config_tests — the whole module.
Fields§
§global: Vec<McpServerConfig>The global tier, before overrides.
overrides: ProjectOverridesThe project’s own table, as parsed.
servers: Vec<McpServerConfig>The effective set, in resolver order.
statuses: Vec<ServerStatus>One entry per effective server, in the same order.
issues: Vec<McpIssue>Everything wrong with either tier, or refused by the trust gate.
Implementations§
Source§impl ResolvedMcp
impl ResolvedMcp
Sourcepub fn usable(&self) -> Vec<&McpServerConfig>
pub fn usable(&self) -> Vec<&McpServerConfig>
The servers the runtime should try to connect to.
Test: super::tests::config_tests::a_disabled_server_is_reported_not_dropped.
Trait Implementations§
Source§impl Clone for ResolvedMcp
impl Clone for ResolvedMcp
Source§impl Debug for ResolvedMcp
impl Debug for ResolvedMcp
Auto Trait Implementations§
impl Freeze for ResolvedMcp
impl RefUnwindSafe for ResolvedMcp
impl Send for ResolvedMcp
impl Sync for ResolvedMcp
impl Unpin for ResolvedMcp
impl UnsafeUnpin for ResolvedMcp
impl UnwindSafe for ResolvedMcp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more