**What is searched (in order):**
1. **Hooks** (39 total) — `useProducts`, `useCart`, `useCustomer`, `useWishlist`, `usePush`, `useStories`, `useSocialProof`, `useConversionSignals`, `useIntegrations`, etc.
2. **Services** (14 total) — `ProductService`, `CartService`, `CustomerService`, `StoryService`, `SocialProofService`, `IntegrationService`, `WishlistService`, `DeviceService`, `EventService`, `ConfigService`, `StorageService`, `BillingService`, `ApiClient`, `StorefrontClient`.
3. **Types** (41 total) — `SdkConfigResponse`, `SdkBanner`, `SdkPopup`, `SdkAnnouncement`, `SocialProofSignalsResponse`, etc.
---
### `get_code_example`
Get a copy-paste-ready code example for a specific Stackfront feature. Returns a complete, working React Native component.
**Input:**
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `topic` | `string` | Yes | Feature topic: `cart`, `products`, `search`, `auth`, `push`, `stories`, `wishlist`, `engagement` |
**Available topics:**
| Topic | Example Content |
|-------|-----------------|
| `cart` | Cart screen with add/remove/checkout |
| `products` | Product listing with infinite scroll |
| `search` | Search bar with results |
| `auth` | Login/register screen |
| `push` | Push notification setup |
| `stories` | Story rail with plan-enforced gating |
| `wishlist` | Wishlist toggle button |
| `engagement` | Banners and announcements |
**Use cases:**
- "Get a code example for cart"
- "Show me how to implement product search"
- "I need a wishlist screen"
---
## Resources
All resources are read-only and expose documentation or SDK metadata as markdown or plain text.
### Docs Resources
| URI | Description |
|-----|-------------|
| `docs://index` | Table of contents for all documentation pages |
| `docs://{slug}` | Individual documentation page content in markdown (e.g. `docs://cart/overview`) |
### SDK Resources
| URI | Description |
|-----|-------------|
| `sdk://hooks` | All 39 hooks with signatures and descriptions |
| `sdk://services` | All 17 service classes with method listings |
| `sdk://types` | All 53 TypeScript types and interfaces |
| `sdk://graphql` | All 18 GraphQL queries and mutations |
### Individual Resources
| URI Pattern | Count | Example |
|-------------|-------|---------|
| `sdk://hook/{name}` | 24 | `sdk://hook/useCart` |
| `sdk://service/{name}` | 17 | `sdk://service/CartService` |
| `sdk://type/{name}` | 53 | `sdk://type/SdkConfigResponse` |
These are useful when the `get_sdk_api` tool identifies the right resource — your AI assistant can read it for full details.
---
## Prompts
### `integrate-sdk`
A step-by-step guide for integrating the Stackfront SDK into a new React Native project.
**No arguments required.** The prompt walks through:
1. Installing the `@stackfront/react-native-shopify` package
2. Wrapping the app in `StackfrontProvider` with `shopDomain`, `apiKey`, and `appVersion`
3. Using hooks in screens
### `build-feature`
A structured workflow for implementing a specific Stackfront feature. Takes one argument:
**Arguments:**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `feature` | `string` | Yes | Feature name (e.g. `product-listing`, `cart`, `push-notifications`, `auth`, `search`) |
The prompt instructs the AI to:
1. Read the relevant hook resource (`sdk://hook/use{Feature}`)
2. Read the relevant docs page (`docs://{feature-slug}`)
3. Search for a matching code example via `get_code_example`
4. Generate a complete, typed, production-ready screen component with loading and error states