# ferroui_mcp

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

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

```rust
module ferroui_mcp
```

Opt-in Model Context Protocol server for FerroUI. Call [`serve`](/docs/0.5.0/api/ferroui-mcp/function-serve/) on the UI thread after
application setup and keep the returned handle alive until shutdown. No server starts merely
by linking the crate. Property writes and input are independently disabled by default.

The tools run on the shared inspector of the UI thread (`ferroui_inspect::Inspector::shared`),
the one the Chrome DevTools Protocol endpoint uses too: node IDs are the same for both, and a
custom lifetime registers its top levels there (`register_root`).

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

## Contents

- [`UiToolProvider`](/docs/0.5.0/api/ferroui-mcp/trait-uitoolprovider/) — trait
- [`Permissions`](/docs/0.5.0/api/ferroui-mcp/use-permissions/) — use
- [`RequestContext`](/docs/0.5.0/api/ferroui-mcp/struct-requestcontext/) — struct
- [`ServiceToolProvider`](/docs/0.5.0/api/ferroui-mcp/trait-servicetoolprovider/) — trait
- [`Transport`](/docs/0.5.0/api/ferroui-mcp/enum-transport/) — enum
- [`Options`](/docs/0.5.0/api/ferroui-mcp/struct-options/) — struct
- [`UiServerHandle`](/docs/0.5.0/api/ferroui-mcp/struct-uiserverhandle/) — struct
- [`serve`](/docs/0.5.0/api/ferroui-mcp/function-serve/) — function
- [`serve_with_tools`](/docs/0.5.0/api/ferroui-mcp/function-serve_with_tools/) — function
- [`serve_service`](/docs/0.5.0/api/ferroui-mcp/function-serve_service/) — function
- [`serve_service_with_token`](/docs/0.5.0/api/ferroui-mcp/function-serve_service_with_token/) — function
- [`reserve_stdout`](/docs/0.5.0/api/ferroui-mcp/function-reserve_stdout/) — function

## Availability

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