pub struct McpServer {
pub id: String,
pub version: String,
pub transport: McpTransport,
}Expand description
A resolved MCP server ready to install. The adapter writes the transport
into the agent’s MCP config (e.g. .mcp.json for Claude Code).
Fields§
§id: StringCanonical id from the source registry, e.g.
io.github.modelcontextprotocol/server-filesystem.
version: String§transport: McpTransportImplementations§
Source§impl McpServer
impl McpServer
Sourcepub fn lockfile_key(&self) -> String
pub fn lockfile_key(&self) -> String
Lockfile entry key.
Sourcepub fn computed_integrity(&self) -> Integrity
pub fn computed_integrity(&self) -> Integrity
Sha256 over the canonical JSON of the transport config. Used as the lockfile integrity and as the on-disk-drift detector.
Sourcepub fn short_name(&self) -> String
pub fn short_name(&self) -> String
Short name used as the key inside agent-side config files
(.mcp.json etc.). Last /-separated segment of the id, lowercased.
Trait Implementations§
impl Eq for McpServer
impl StructuralPartialEq for McpServer
Auto Trait Implementations§
impl Freeze for McpServer
impl RefUnwindSafe for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl UnsafeUnpin for McpServer
impl UnwindSafe for McpServer
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.