pub struct Agent {
pub name: &'static str,
pub file: &'static str,
pub key: &'static str,
pub typed: bool,
pub folders: &'static [&'static str],
pub programs: &'static [&'static str],
}Expand description
An agent the server can be registered with.
Fields§
§name: &'static strIts name, for people.
file: &'static strIts file of MCP servers, from the project’s folder.
key: &'static strThe key of the servers in it (mcpServers).
typed: boolWhether an entry says its transport ("type": "stdio").
folders: &'static [&'static str]The folders, in the project or the home folder, that show it is used.
programs: &'static [&'static str]The programs on PATH that show it is installed.
Implementations§
Trait Implementations§
impl Copy for Agent
impl Eq for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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.