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

# Initialize

> Initialize the MCP connection

## `initialize`

Initialize the MCP connection.

## Parameters

<ParamField body="protocolVersion" type="string" required>
  The MCP protocol version. Use `"2025-03-26"` for the current version.
</ParamField>

<ParamField body="capabilities" type="object" required>
  Client capabilities object. Can be empty `{}` if no specific capabilities are required.
</ParamField>

<ParamField body="clientInfo" type="object" required>
  Information about the client application.

  <Expandable title="clientInfo properties">
    <ParamField body="name" type="string" required>
      Name of the client application.
    </ParamField>

    <ParamField body="version" type="string" required>
      Version of the client application.
    </ParamField>
  </Expandable>
</ParamField>

## Request

<RequestExample>
  ```json theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": {
        "name": "client-name",
        "version": "1.0.0"
      }
    }
  }
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "serverInfo": {
        "name": "bonsai-mcp",
        "version": "1.0.0"
      }
    }
  }
  ```
</ResponseExample>
