pub struct ClientAdapter {
pub id: &'static str,
pub display: &'static str,
pub rel_path: &'static str,
pub marker_dir: &'static str,
pub root_key: &'static str,
pub typed_stdio: bool,
pub format: ConfigFormat,
}Expand description
A supported MCP client: where its project-local config lives, the root key
its server map uses (or table namespace for TOML), whether an entry needs a
typed "type": "stdio", the on-disk format, and a marker directory whose
presence signals the client is used in a project.
Fields§
§id: &'static str§display: &'static str§rel_path: &'static strProject-local config path, relative to the repo root.
marker_dir: &'static strDirectory whose presence auto-detects the client (besides the config).
root_key: &'static strRoot key holding the server map (mcpServers; servers for VS Code;
context_servers for Zed) — or the table namespace (mcp_servers) for
TOML clients.
typed_stdio: boolVS Code requires an explicit "type": "stdio" on each server.
format: ConfigFormatOn-disk config format.
Auto Trait Implementations§
impl Freeze for ClientAdapter
impl RefUnwindSafe for ClientAdapter
impl Send for ClientAdapter
impl Sync for ClientAdapter
impl Unpin for ClientAdapter
impl UnsafeUnpin for ClientAdapter
impl UnwindSafe for ClientAdapter
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