pub struct McpClient {
pub id: String,
pub title: String,
pub config: String,
pub standing: McpClientStanding,
}Expand description
One client the distribution declares a project-scoped configuration for.
use majordomus_cli::capability::builtin::mcp::{McpClient, McpClientStanding};
let mut clients: Vec<McpClient> = serde_json::from_value(serde_json::json!([
{ "id": "gemini", "title": "Gemini CLI", "config": ".gemini/settings.json", "standing": "absent" },
{ "id": "claude-code", "title": "Claude Code", "config": ".mcp.json", "standing": "wired" },
])).unwrap();
// ordered by the provider's id, whatever order the distribution declared them in
majordomus_cli::order::canonical(&mut clients);
assert_eq!(clients[0].id, "claude-code");
assert_eq!(clients[0].standing, McpClientStanding::Wired);Fields§
§id: StringThe provider id.
title: StringThe name a person knows it by.
config: StringThe file it reads, repository-relative.
standing: McpClientStandingWhere that file stands here.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpClient
impl<'de> Deserialize<'de> for McpClient
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for McpClient
Source§impl JsonSchema for McpClient
impl JsonSchema for McpClient
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ordered for McpClient
A client is the provider it belongs to, and is ordered by that id: the order every other
listing of providers reads in, whatever order the distribution declared them in.
impl Ordered for McpClient
A client is the provider it belongs to, and is ordered by that id: the order every other listing of providers reads in, whatever order the distribution declared them in.
impl StructuralPartialEq for McpClient
Auto Trait Implementations§
impl Freeze for McpClient
impl RefUnwindSafe for McpClient
impl Send for McpClient
impl Sync for McpClient
impl Unpin for McpClient
impl UnsafeUnpin for McpClient
impl UnwindSafe for McpClient
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.