# AI-सहायता प्राप्त इंटीग्रेशन

अपने प्रोजेक्ट में Pushwoosh Flutter प्लगइन को इंटीग्रेट और कॉन्फ़िगर करने के लिए AI कोडिंग सहायकों का उपयोग करें। अपने सहायक को [Context7](https://context7.com/) MCP सर्वर से कनेक्ट करके, इसे अप-टू-डेट प्लगइन डॉक्यूमेंटेशन, कोड उदाहरण और API रिफरेंस तक पहुंच मिलती है — ताकि यह सटीक, काम करने वाला इंटीग्रेशन कोड जनरेट कर सके।

<Aside type="note">
Context7 का उपयोग करने के लिए आपके AI सहायक को [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) का समर्थन करना चाहिए। समर्थित टूल में **Claude Code**, **Cursor**, **Windsurf**, **Cline**, और अन्य शामिल हैं।
</Aside>

## यह कैसे काम करता है

Context7 एक MCP सर्वर है जो AI सहायकों को अप-टू-डेट लाइब्रेरी डॉक्यूमेंटेशन प्रदान करता है। जब आपके सहायक के पास Context7 तक पहुंच होती है, तो यह बातचीत के दौरान सीधे नवीनतम Pushwoosh Flutter प्लगइन डॉक्स, कोड स्निपेट्स और API रिफरेंस प्राप्त कर सकता है — बजाय संभावित रूप से पुराने प्रशिक्षण डेटा पर निर्भर रहने के।

Context7 पर Pushwoosh Flutter प्लगइन लाइब्रेरी ID: **`/pushwoosh/pushwoosh-flutter`**

## Context7 सेट अप करना

अपने AI सहायक के MCP कॉन्फ़िगरेशन में [Context7](https://github.com/upstash/context7#installation) जोड़ें:

<Tabs>
  <TabItem label="Claude Code">
निम्नलिखित कमांड चलाएँ:

```bash
claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
```
  </TabItem>
  <TabItem label="Cursor / Windsurf">
अपनी MCP कॉन्फ़िग फ़ाइल (`.cursor/mcp.json` या समकक्ष) में जोड़ें:

```json
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp@latest"]
    }
  }
}
```
  </TabItem>
</Tabs>

## उदाहरण प्रॉम्प्ट्स

एक बार Context7 कॉन्फ़िगर हो जाने पर, आप प्लगइन को इंटीग्रेट करने के लिए प्राकृतिक भाषा के प्रॉम्प्ट्स का उपयोग कर सकते हैं। नीचे सामान्य कार्यों के लिए उपयोग के लिए तैयार प्रॉम्प्ट्स दिए गए हैं।

### बेसिक प्लगइन इंटीग्रेशन

```text
Integrate Pushwoosh Flutter plugin into my Flutter project.

Requirements:
- Install pushwoosh_flutter via pub
- Initialize Pushwoosh with my App ID in main()
- Register for push notifications and handle onPushReceived and onPushAccepted streams

Use Context7 MCP to fetch Pushwoosh Flutter plugin documentation.
```

### टैग और यूज़र सेगमेंटेशन

```text
Show me how to use Pushwoosh tags in a Flutter app for user segmentation.
I need to set tags, get tags, and set user ID for cross-device tracking.

Use Context7 MCP to fetch Pushwoosh Flutter plugin documentation for setTags and getTags.
```

### Message Inbox इंटीग्रेशन

```text
Integrate Pushwoosh Message Inbox into my Flutter app. Show me how to:
- Display the inbox UI with custom styling using PWInboxStyle
- Load messages programmatically
- Track unread message count

Use Context7 MCP to fetch Pushwoosh Flutter plugin documentation for presentInboxUI.
```

<Aside type="tip">
अपने प्रॉम्प्ट के अंत में **"Use Context7 MCP to fetch Pushwoosh Flutter plugin documentation"** जोड़ने से AI सहायक को कोड जनरेट करने से पहले नवीनतम प्लगइन डॉक्स खींचने के लिए कहा जाता है।
</Aside>

## AI सहायक को क्या मिलता है

जब आपका सहायक Pushwoosh Flutter प्लगइन के लिए Context7 से क्वेरी करता है, तो उसे मिलता है:

- **इंस्टॉलेशन निर्देश** — pubspec.yaml सेटअप और प्लेटफ़ॉर्म-विशिष्ट कॉन्फ़िगरेशन
- **API रिफरेंस** — पब्लिक क्लासेस, मेथड्स और स्ट्रीम परिभाषाएँ
- **कोड उदाहरण** — सामान्य उपयोग के मामलों के लिए डार्ट स्निपेट्स
- **प्लगइन डॉक्यूमेंटेशन** — कोर प्लगइन, Inbox, और Geozones के लिए गाइड
- **कॉन्फ़िगरेशन विवरण** — इनिशियलाइज़ेशन पैरामीटर्स, iOS और Android सेटअप चरण