> For the complete documentation index, see [llms.txt](https://dataflint.gitbook.io/dataflint-for-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dataflint.gitbook.io/dataflint-for-spark/dataflint-analyze-your-job/analyze-your-job-in-cursor.md).

# Analyze Your Job in Cursor

### Summary

This guide walks you through using DataFlint Analyze Your Job in Cursor.

You need a DataFlint account. Create one at <https://www.dataflint.io/get-started>. Afterward you will get the following email:

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2Fu2vp2DcsiFrSgNBLZlql%2Fimage.png?alt=media&amp;token=a975835f-1456-44be-b697-f81c3fe2d99d" alt=""><figcaption></figcaption></figure>

### Step-by-step guide

#### 1. Run the prompt from your intro email

Paste the prompt from your intro email into the Cursor agent window.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2Fv4R2bp857na11qnwOOkW%2Fimage.png?alt=media&amp;token=810697ed-96ed-4f35-8ae2-af2d95e0707c" alt=""><figcaption></figcaption></figure>

#### 2. Review the MCP setup message

The agent confirms that it added the MCP and shows how to enable it.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FCUnhxxjxlv1md6jXnI0a%2Fimage.png?alt=media&amp;token=860634e7-26a1-4dc7-bcaf-12f77f4f8971" alt=""><figcaption></figcaption></figure>

#### 3. Open Settings

Press the settings button.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FLU2Zz7IrbNUcf3t2m2U0%2Fimage.png?alt=media&amp;token=d08500a7-4aa1-419c-9dd9-1c7925cfb7e7" alt=""><figcaption></figcaption></figure>

#### 4. Enable the DataFlint MCP

Open **Tools & MCP** and enable `dataflint-selfserve`.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2F9yqRs3V3axSrsNPrazzv%2Fimage.png?alt=media&amp;token=12546686-2974-462c-b260-4eb4775ecc32" alt=""><figcaption></figcaption></figure>

#### 5. Connect the MCP

Press **Connect**.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2F7TWdeaidqMYrRDMA1jlE%2Fimage.png?alt=media&amp;token=dfa4b823-64c0-425e-b971-c9f6036a8a8d" alt=""><figcaption></figcaption></figure>

#### 6. Continue in the browser

In the browser tab that opens, select the checkbox and press **Continue**.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FLJlBIlAdPPM7rmjAyiAK%2Fimage.png?alt=media&amp;token=2c49a7a9-8e06-4a9d-92b1-47794f6adaa5" alt=""><figcaption></figcaption></figure>

#### 7. Return to Cursor

Press **Open Cursor.app**.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FTZtNRy0atBtMQIUIQ5uJ%2Fimage.png?alt=media&amp;token=a4b25016-d4b5-4633-8bdd-40f71ab48eb0" alt=""><figcaption></figcaption></figure>

#### 8. Confirm the MCP is running

You should now see the MCP running in Cursor with **3 tools enabled**.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FcLtm7Isn93ZNcXKxQvEl%2Fimage.png?alt=media&amp;token=d7f81b3b-daab-4dd7-9c49-225b93ce8505" alt=""><figcaption></figcaption></figure>

#### 9. Continue in the agent window

Return to the agent window and tell the agent to continue.

<figure><img src="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FdiZ7PpCTd1sqZbKqQHuS%2Fimage.png?alt=media&amp;token=f52286dd-639e-4433-b3cf-23bb401b2fa5" alt=""><figcaption></figcaption></figure>

Complete the process, until you see that the spark event log upload succeeded

![](https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2FLPAiHmEYCBJrPmySCQ7W%2Fimage.png?alt=media\&token=54a3fed9-112d-4f93-b210-bc7f13146eb0)&#x20;

Afterward you will get a second email with link for your DataFlint AI job analysis, and a next step of optimizing your job via DataFlint Copilot


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dataflint.gitbook.io/dataflint-for-spark/dataflint-analyze-your-job/analyze-your-job-in-cursor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
