Skip to main content

Cursor Integration

Cursor is an AI-powered code editor that can reference external documentation to provide context-aware assistance. By integrating Narada’s documentation with Cursor, you can efficiently write Python code using the Narada SDK to build custom agents and web automation workflows.

Adding Narada Documentation to Cursor

1

Open Cursor Settings

Navigate to Cursor Settings -> Docs in Cursor IDE.
2

Add New Documentation

Click Add Doc to add a new documentation source.
3

Configure Documentation

Enter the following details:
  • Name: Narada
  • Prefix: https://docs.narada.ai
  • Entrypoint: https://docs.narada.ai
4

Index Documentation

Cursor crawls and indexes the Narada documentation site.
Once indexed, reference Narada documentation with the @ command, such as @Narada, in Cursor chat or inline edits.

Adding Cursor Rules for Better Development

Cursor rules provide persistent project context so generated SDK code follows your team’s current Narada patterns.

Set Up Project Rules

  1. Create a .cursor/rules/ directory in your project.
  2. Add a .mdc file, such as narada-cursor-rules.mdc.
  3. Copy the rules from the next section.
  4. Set alwaysApply: true so Cursor applies the rules automatically.

Cursor Rules for Narada Development

Use this as a starting point for a project rule:

Building Custom Agents with Cursor

Once integrated, Cursor can help you build Narada agents with the current SDK patterns:
  • Smart code completion: Get suggestions for Narada SDK methods and parameters.
  • Context-aware assistance: Ask questions about Narada APIs and get documentation-backed answers.
  • Code generation: Generate boilerplate for common environment, agent, selector, sheet, and structured-output workflows.
  • Error prevention: Avoid stale window-based SDK patterns and missing cleanup.

Example Development Workflow

When building custom agents with the Narada Python SDK, you can ask Cursor:
  • “How do I create an agent that extracts data from a website and saves it to Google Sheets?”
  • “Show me how to use agentic_selector() with fallback handling.”
  • “Why is my go_to_url() call timing out?”
  • “How can I make this agent more reliable with retry logic?”
Cursor will reference the indexed Narada documentation to provide accurate, current answers and code suggestions.
Add the Narada documentation to Cursor before relying on generated SDK code. Without indexed docs, Cursor may suggest outdated APIs.