# McpPeer

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-collaboration-host/struct-mcppeer/

**struct** · [`ferroui-designer-collaboration-host`](/docs/0.5.0/api/ferroui-designer-collaboration-host/) · v0.5.0

```rust
struct McpPeer
```

A bounded synchronous MCP client, intended for a worker thread. HTTPS validates certificates;
plain HTTP is restricted to loopback. Redirects never forward room or transport credentials.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Collaboration.Host/client.rs#L14)

## Members

- [`new`](#function-new)
- [`endpoint`](#function-endpoint)

<a id="function-new"></a>

### new

```rust
fn new(endpoint: Endpoint) -> Result<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Collaboration.Host/client.rs#L21)

<a id="function-endpoint"></a>

### endpoint

```rust
fn endpoint(self: &Self) -> &Endpoint
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Collaboration.Host/client.rs#L35)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `Same`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`PeerTransport`](/docs/0.5.0/api/ferroui-designer-collaboration-host/trait-peertransport/)

## Availability

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