project-context

project-context is a cursor rule for Cursor from Brahim-Benzarti/Shopify_store-MCP. It costs 830 tokens per session, scanned A, original, ISC.

A project reference for a Node.js and TypeScript MCP server that connects AI agents to Shopify stores through Shopify's Admin and Storefront APIs.

In plain words
What is it for?
Use it when adding or changing Shopify integrations, GraphQL queries, tools, database code, queues, validation, logging, or polling.
Why use it?
It gives the coding agent the project's architecture, technologies, file layout, and implementation conventions so changes fit the existing server.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding or changing Shopify integrations, GraphQL queries, tools, database code, queues, validation, logging, or polling.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/brahim-benzarti/shopify_store-mcp/project-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Brahim-Benzarti/Shopify_store-MCP

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-context

README.md
[![agentmods](https://agentmods.dev/badge/rules/brahim-benzarti/shopify_store-mcp/project-context.svg)](https://agentmods.dev/rules/brahim-benzarti/shopify_store-mcp/project-context)
Your own site
<a href="https://agentmods.dev/rules/brahim-benzarti/shopify_store-mcp/project-context"><img src="https://agentmods.dev/badge/rules/brahim-benzarti/shopify_store-mcp/project-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 830 This file is loaded in full into every session.
When invoked 830 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00830 $0.00830
Opus 5 $0.00415 $0.00415
Sonnet 5 $0.00166 $0.00166
Haiku 4.5 $0.00083 $0.00083

Measured 8d ago against content hash 2b937ea50910, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

project-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/project-context.mdc · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shopify Store MCP Server

Overview

An MCP server that connects to live Shopify stores via Admin and Storefront APIs, enabling AI agents to perform real operations. Unlike documentation-only MCPs, this actually interacts with stores.

Tech Stack

Component Technology
Runtime Node.js 18+ with TypeScript (ES2022, ESM)
MCP SDK @modelcontextprotocol/sdk v1.x
Admin API @shopify/admin-api-client
Storefront API @shopify/storefront-api-client
Database SQLite + Prisma
Queue p-queue (rate limiting)
Validation Zod
Transport STDIO

Project Structure

src/
├── index.ts              # Entry point + initialization
├── config.ts             # Env loading + validation
├── shopify-client.ts     # API client factories
├── errors.ts             # Response formatters
├── types.ts              # Shared types
├── db.ts                 # Prisma client singleton
├── queue.ts              # Rate-limited queue
├── logger.ts             # Operation logging
├── utils/
│   └── polling.ts        # Async polling helper
├── graphql/
│   ├── admin/            # Admin API queries
│   │   ├── common/       # Products, orders, customers, etc.
│   │   ├── specialized/  # Inventory, metafields, bulk, files
│   │   └── index.ts      # Barrel export
│   └── storefront/       # Storefront API queries
├── tools/                # MCP tools (10 total)
│   ├── shop.ts           # get_shop_info
│   ├── graphql.ts        # run_graphql_query (universal)
│   ├── smart-*.ts        # Smart multi-step tools (5)
│   └── infrastructure.ts # configure, get_history, get_stats
├── prompts/              # MCP prompts (5)
└── resources/            # MCP resources (4)
prisma/
└── schema.prisma         # Database schema

Architecture Philosophy

Two-Tier Tool Design

  1. Generic toolsrun_graphql_query is the universal escape hatch for ANY Shopify operation
  2. Smart tools — Multi-step workflows that orchestrate multiple API calls

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 100 lines · 830 tokens per session scan A 2b937ea50910

Subscribe to this mod's changes

project-context is a cursor rule published in the GitHub repository Brahim-Benzarti/Shopify_store-MCP (3 stars, last pushed 6mo ago), licensed ISC. It adds 830 tokens to every session, about $0.0042 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.