env • Rust AI Agent SDK
env: Add an environment variable
env
Method
</div>
This is a method of the TransportConfig class in the mcp module.
Add an environment variable
Signature
def env(mut self, key: impl Into<String>, value: impl Into<String>) -> SelfParameters
ParamField
impl Into<String>No description available.
ParamField
impl Into<String>No description available.
Returns
ResponseField
SelfThe result of the operation.