> ## 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.

# shutdown • AI Agent SDK

> shutdown: Explicitly shut down MCP resources.

# shutdown

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

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

Explicitly shut down MCP resources.

Call this method when done using the MCP instance to ensure
all background threads and connections are properly cleaned up.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def shutdown() -> Any
```

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `shutdown`

## Used By

* [`MCP.shutdown`](../functions/MCP-shutdown)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/mcp/mcp.py#L626">
  `praisonaiagents/mcp/mcp.py` at line 626
</Card>
