{
  "schemaVersion": "2024-11-05",
  "name": "shopwell-webmcp",
  "title": "ShopWell.ai WebMCP",
  "version": "1.0.0",
  "description": "In-page Model Context Protocol server for ShopWell.ai. Lets browser-based AI agents read and act on behalf of the currently signed-in user. All calls run under the user's Supabase session and Postgres RLS — no privilege escalation.",
  "vendor": {
    "name": "Axiom Strategies",
    "url": "https://shopwell.ai"
  },
  "transport": {
    "type": "postmessage",
    "channel": "shopwell-mcp",
    "origin": "https://shopwell.ai",
    "description": "JSON-RPC 2.0 messages over window.postMessage. Send {channel:'shopwell-mcp', payload:<jsonrpc>} to window; responses are posted with the same channel."
  },
  "auth": {
    "type": "session",
    "description": "Uses the visitor's existing Supabase session cookie/localStorage. Mutation tools return error code -32001 (auth_required) with a deep link to /auth if the user is not signed in.",
    "loginUrl": "https://shopwell.ai/auth"
  },
  "capabilities": {
    "tools": { "listChanged": false }
  },
  "tools": [
    { "name": "search_lists", "description": "Find the signed-in user's shopping lists by optional name fragment.", "scopes": ["read:lists"] },
    { "name": "add_item_to_list", "description": "Add an item (name or product URL) to one of the user's lists.", "scopes": ["write:lists"] },
    { "name": "create_list", "description": "Create a new shopping list.", "scopes": ["write:lists"] },
    { "name": "search_products", "description": "Run the product-discovery pipeline for a free-text query.", "scopes": ["read:catalog"] },
    { "name": "set_price_alert", "description": "Set a target price alert on a tracked item.", "scopes": ["write:lists"] },
    { "name": "create_trip_draft", "description": "Create a trip draft with destination and dates.", "scopes": ["write:trips"] },
    { "name": "create_event_draft", "description": "Create an event draft with title and date.", "scopes": ["write:events"] },
    { "name": "get_whats_new", "description": "Return the latest non-fix release notes.", "scopes": ["read:public"] }
  ],
  "rateLimit": { "perMinute": 30, "scope": "per-tab" },
  "links": {
    "summary": "https://shopwell.ai/llms.txt",
    "fullSummary": "https://shopwell.ai/llms-full.txt",
    "humanDocs": "https://shopwell.ai/about"
  }
}