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

# launch • AI Agent SDK

> launch: Launch MCP server for the agent.

# launch

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

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

Launch MCP server for the agent.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def launch(agent: Any, path: str, port: int, host: str, debug: bool) -> None
```

## Parameters

<ParamField query="agent" type="Any" required={true}>
  The agent instance to serve
</ParamField>

<ParamField query="path" type="str" required={false} default="'/'">
  Base path for MCP endpoints
</ParamField>

<ParamField query="port" type="int" required={false} default="8000">
  Server port (default: 8000)
</ParamField>

<ParamField query="host" type="str" required={false} default="'0.0.0.0'">
  Server host (default: '0.0.0.0')
</ParamField>

<ParamField query="debug" type="bool" required={false} default="False">
  Enable debug mode (default: False)
</ParamField>

## Source

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