pub struct McpServer {
pub command: String,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
}Expand description
One per-agent MCP server declared in compose (#383 Phase 4).
Serializes straight into the runtime’s MCP config entry — command /
args / env map onto the same shape the built-in team server
emits. The HTTP (url / headers) transport variant is deferred
(spike E2) until a concrete need lands.
Fields§
§command: StringExecutable that launches the MCP server, resolved on $PATH by
the runtime (e.g. npx, docker).
args: Vec<String>Arguments passed to command. Empty (the default) → [].
env: BTreeMap<String, String>Environment variables for the server process. Values pass through
verbatim — the runtime performs any ${VAR} expansion, matching
how teamctl treats env elsewhere (render does no interpolation).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpServer
impl<'de> Deserialize<'de> for McpServer
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
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