# serve_service

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

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

```rust
fn serve_service(options: Options, provider: std::sync::Arc<dyn ServiceToolProvider>) -> io::Result<ServerHandle>
```

Host an isolated, thread-safe application service through the existing MCP protocol.

Only the provider's tools are exposed: no inspector, input, logs or UI objects are
reachable through this server. Calls run on transport workers and receive cooperative
cancellation and deadlines. This mode requires no application or UI message loop.

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

## Availability

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