> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# disconnect • Rust AI Agent SDK

> disconnect: Disconnect from the MCP server

# disconnect

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**MCP**](../classes/MCP) class in the [**mcp**](../modules/mcp) module.

Disconnect from the MCP server

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def disconnect(&mut self) -> Result<()>
```

### Returns

<ResponseField name="Returns" type="Result<()>">
  The result of the operation.
</ResponseField>
