pub struct ProjectOverrides {
pub servers: Vec<McpServerConfig>,
pub disabled: Vec<String>,
}Expand description
The project tier’s override table, as written in mcp.toml.
Why: two lists rather than one tagged enum list, for the reason
trusty_agents::assistants::mcp::McpOverrides gives — disabled = ["x"]
is one line a person will actually hand-write, and the tagged
array-of-tables spelling is four.
What: servers are candidate Set overrides (each subject to the trust
gate in super::trust); disabled names global servers this project
does not connect to. The file’s ROOT is this table — the file is already
named mcp.toml, so a wrapping [mcp] table would be redundant.
deny_unknown_fields is deliberate: a mistyped key that silently dropped a
disabled entry would be exactly the invisible failure this module exists
to prevent, so it surfaces as an McpIssue instead.
Test: super::tests::config_tests::a_project_disable_hides_a_global_server,
super::tests::config_tests::a_misspelled_key_is_refused_with_an_issue.
Fields§
§servers: Vec<McpServerConfig>Servers this project asks for, by name, subject to the trust gate.
disabled: Vec<String>Global servers this project does not connect to.
Implementations§
Trait Implementations§
Source§impl Clone for ProjectOverrides
impl Clone for ProjectOverrides
Source§impl Debug for ProjectOverrides
impl Debug for ProjectOverrides
Source§impl Default for ProjectOverrides
impl Default for ProjectOverrides
Source§impl<'de> Deserialize<'de> for ProjectOverrides
impl<'de> Deserialize<'de> for ProjectOverrides
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ProjectOverrides
Source§impl PartialEq for ProjectOverrides
impl PartialEq for ProjectOverrides
impl StructuralPartialEq for ProjectOverrides
Auto Trait Implementations§
impl Freeze for ProjectOverrides
impl RefUnwindSafe for ProjectOverrides
impl Send for ProjectOverrides
impl Sync for ProjectOverrides
impl Unpin for ProjectOverrides
impl UnsafeUnpin for ProjectOverrides
impl UnwindSafe for ProjectOverrides
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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