# mcp.policy.Selection.from_env

- **Module:** mcp.policy.Selection
- **Package:** tmux-mcp
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/tmux-mcp/src/policy.rs#L172
- **Page:** https://libtmux.org/en/rs/latest/mcp/reference/mcp-policy-selection-from_env/

```
mcp.policy.Selection.from_env(default_teardown: bool) -> Result<Self, SurfaceError>
```

Read and validate the process-wide selection before serving MCP.

# Errors

Returns an error for invalid UTF-8, malformed selections, or retired settings.
