# reserve_stdout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-mcp/function-reserve_stdout/

**function** · [`ferroui-mcp`](/docs/0.5.0/api/ferroui-mcp/) · v0.5.0

```rust
fn reserve_stdout() -> io::Result<std::fs::File>
```

Reserve stdout for MCP before application startup. Ordinary stdout is redirected to stderr
for the rest of the process, including native/library output on Unix (on Windows, output
through the process's standard handle). Pass the returned file in Options.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Mcp/lib.rs#L380)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
