You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MCP server already exposes brands, visibility summary, prompts, topics, and content opportunities (#20, #35, #74). The A-group read tools (#96–#100) extend that to insights/citations/competitors/traffic/volumes. Shopping should ship as part of the same coherent MCP surface so the in-product assistant (#94) and external clients (Claude Desktop, Cursor, Zed) can ask "which of my products are AI engines surfacing?" without hitting random REST endpoints.
getProductVisibility({ brandId, productTitle }) — aggregates appearances of a single product across platforms/regions/dates; returns null if unknown to the org.
MCP tool registrations in web/src/lib/mcp/server.ts — list_shopping_cards and get_product_visibility. Tool descriptions explain commercial-intent context and reference the matched_brand_role enum.
REST endpoints under web/src/app/api/mcp/shopping-cards/ mirroring the data fns, sharing the same data layer (don't duplicate the query).
Auth via authenticateMcpRequest — accepts only ans_ API keys, returns 401 otherwise. No session-JWT fallback.
Pagination on list_shopping_cards (cursor-based, default limit 50, max 200).
Out of scope
Action tools like recompute_product_match or flag_card — B-group action tools, separate issue.
Pricing-history tool — depends on the pricing-intelligence work (later issue F).
Anomaly subscription — separate alerts epic.
Notes
This issue is deliberately scoped narrow so it can land alongside #104/#105 without blocking them. Open the data fn + tool registration in one PR, REST routes in another if needed.
Activity
feat(shopping): normalize prompt_result_shopping_cards + parser worker (
Pallavikumarimdb commentedon Jun 3, 2026
@gkhngyk Can I work on this?