# Importing and Initializing

#### **Import the SDK**

Add the following imports to your Kotlin file:

```kotlin
import com.example.mpc.MpcClient
```

#### **Initialize the SDK**

Initialize the SDK in your `Application` class:

```kotlin
import android.app.Application
import com.example.mpc.MpcClient
import com.example.mpc.Callback

class MyApplication : Application() {
    lateinit var client: MpcClient

    override fun onCreate() {
        super.onCreate()
        val client = MpcClient(
            context = applicationContext,
            apiKey = "YOUR_API_KEY",
            serverAddress = "MPC_SERVER_ADDRESS",
            accessToken = "YOUR_ACCESS_TOKEN",
            mode = "YOUR_MODE",
            authServerAddress = "AUTH_SERVER_ADDRESS",
            cloudService = CloudService() // You'll need to provide your CloudService implementation or using GoogleService.kt class
        )
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cramiumlabs.gitbook.io/docs/sdk-mpc-android/importing-and-initializing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
