{
  "markdown": "# Phantom Connect — Cursor & Claude Code Plugin\n\nGive your agent a wallet. Swap, sign, and manage addresses across Phantom's supported chains — and tap into Phantom's docs for context. This plugin also includes skills, rules, and agents to help scaffold wallet-connected apps with the Phantom Connect SDK across React, React Native, and vanilla JS/TS.\n\nWorks with both **Cursor** and **Claude Code**.\n\n## Installation\n\n### Cursor\n\n1. Clone or copy this plugin into your Cursor plugins directory, or open the folder in Cursor.\n2. Cursor will automatically detect the `.cursor-plugin/plugin.json` manifest.\n3. The MCP servers (`phantom-connect-sdk` and `phantom-mcp`) will appear in your MCP settings.\n\n### Claude Code\n\n1. Install the plugin from a marketplace, or load it locally for development:\n\n   ```bash\n   # From a marketplace (if available)\n   claude plugin install phantom-connect@marketplace-name\n\n   # From a local directory\n   claude --plugin-dir /path/to/phantom-connect-plugin/\n   ```\n\n2. Claude Code will detect the `.claude-plugin/plugin.json` manifest and load all skills, agents, and MCP servers.\n3. Use the `/phantom-connect:phantom-connect` skill to get full SDK assistance:\n\n   ```\n   /phantom-connect:phantom-connect react        # React SDK help\n   /phantom-connect:phantom-connect browser      # Browser SDK help\n   /phantom-connect:phantom-connect react-native # React Native SDK help\n   ```\n\n## What's Included\n\n### Skills\n\nAll 8 skills are shared between Cursor and Claude Code, auto-discovered from `skills/`.\n\n| Skill | Description |\n|-------|-------------|\n| **phantom-connect** | Comprehensive skill covering all three SDKs, transactions, payments, token-gating, and NFT minting |\n| **setup-react-app** | Scaffold a React app with `@phantom/react-sdk`, PhantomProvider, ConnectButton, and hooks |\n| **setup-browser-app** | Scaffold a vanilla JS/TS app with `@phantom/browser-sdk` singleton pattern |\n| **setup-react-native-app** | Scaffold a React Native (Expo) app with `@phantom/react-native-sdk` and required polyfills |\n| **send-sol-transaction** | Build and send SOL transfers with proper signing and verification |\n| **sign-message** | Implement message signing for Solana and EVM, including SIWS authentication |\n| **add-social-login** | Configure Google/Apple social login with embedded wallet support |\n| **phantom-wallet-mcp** | Execute wallet operations via the Phantom MCP — addresses, transfers, signing, swaps |\n\n### Rules (Cursor only)\n\n| Rule | What It Enforces |\n|------|------------------|\n| **phantom-sdk-best-practices** | Use `signAndSendTransaction`, proper provider setup, error handling, connection checks |\n| **solana-transaction-safety** | Use `LAMPORTS_PER_SOL`, verify transactions, correct network selection, no key exposure |\n| **embedded-wallet-constraints** | No `signTransaction`, spending limits, session duration, polyfill requirements |\n\n> Claude Code's plugin system does not support always-on rules. These rules are embedded in the `phantom-connect` skill and applied when the skill is invoked.\n\n### Agents\n\n| Agent | Purpose |\n|-------|---------|\n| **Phantom Integration Specialist** | SDK integration — scaffolds projects, writes correct code, validates against constraints, and looks up Phantom docs in real-time |\n| **Phantom Wallet Agent** | Wallet operations — get addresses, transfer tokens, sign transactions, execute swaps, and sign messages via the `phantom-mcp` server |\n\n### MCP Servers\n\n\n| Server | Transport | Description |\n|--------|-----------|-------------|\n| **phantom-connect-sdk** | SSE | Phantom Connect SDK documentation at `https://docs.phantom.com/mcp` for real-time API reference |\n| **phantom-mcp** | stdio | Wallet operations via [`@phantom/mcp-server`](https://www.npmjs.com/package/@phantom/mcp-server) — sign transactions, transfer tokens, buy tokens, sign messages |\n\nThe `phantom-mcp` server requires a `PHANTOM_APP_ID` environment variable from [Phantom Portal](https://phantom.com/portal). Set it in your environment or MCP settings.\n\n## Usage\n\nOnce installed, ask the agent to:\n\n- \"Set up a React app with Phantom Connect\"\n- \"Add social login with Google and Apple\"\n- \"Send 0.1 SOL to an address\"\n- \"Implement Sign-in with Solana\"\n- \"Set up a React Native app with Phantom wallet\"\n- \"Get my wallet addresses\"\n- \"Transfer 0.5 SOL to [address]\"\n- \"Sign this message with my wallet\"\n\nThe agent will follow the plugin's skills and rules to generate correct, safe integration code.\n\n## Requirements\n\n- [Cursor](https://cursor.sh) editor **or** [Claude Code](https://claude.com/claude-code) CLI\n- A Phantom Portal account for `appId` registration: [phantom.com/portal](https://phantom.com/portal)\n\n## License\n\nMIT\n",
  "bytes": 4710,
  "sha": "6088eb047fdea292662f9c6789490679ad82aedf873fdac736ecd6d0494d50ce",
  "repo_slug": "phantom/phantom-connect-cursor-plugin",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_phantom_phantom_connect_cursor_plugin_ph_dc672566/readme"
}