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 — render does no interpolation, matching how teamctl
treats env elsewhere. ${VAR} placeholders are expanded by Claude
Code at launch; codex does NOT interpolate them (validate warns —
see ValidationWarning::McpEnvInterpolationUnsupported).
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>,
Source§impl JsonSchema for McpServer
impl JsonSchema for McpServer
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more