bring-mcp-guidelines

bring-mcp-guidelines is a cursor rule for Cursor from florianwittkamp/bring-mcp. It costs 3,085 tokens per session, scanned A, original, MIT.

A project guide for building and maintaining a TypeScript MCP server that connects to the Bring! shopping-list service. It describes the code layout, libraries, validation, testing, and formatting rules.

In plain words
What is it for?
Use it when adding or updating tools, API access, schemas, tests, or configuration in the bring-mcp project.
Why use it?
It gives an agent the project’s conventions before it changes code, reducing avoidable mistakes and inconsistent structure.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding or updating tools, API access, schemas, tests, or configuration in the bring-mcp project.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/florianwittkamp/bring-mcp/bring-mcp-guidelines
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/florianwittkamp/bring-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 bring-mcp-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/rules/florianwittkamp/bring-mcp/bring-mcp-guidelines.svg)](https://agentmods.dev/rules/florianwittkamp/bring-mcp/bring-mcp-guidelines)
Your own site
<a href="https://agentmods.dev/rules/florianwittkamp/bring-mcp/bring-mcp-guidelines"><img src="https://agentmods.dev/badge/rules/florianwittkamp/bring-mcp/bring-mcp-guidelines.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,085 This file is loaded in full into every session.
When invoked 3,085 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.03085 $0.03085
Opus 5 $0.01543 $0.01543
Sonnet 5 $0.00617 $0.00617
Haiku 4.5 $0.00309 $0.00309

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

Security

Grade A, and why

bring-mcp-guidelines 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/bring-mcp-guidelines.mdc · 184 lines

How it starts

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

Bring! MCP Server Project Guidelines

This document outlines key conventions, structures, and important points for working with the bring-mcp TypeScript project.

Project Overview

  • Purpose: Implements a Model Context Protocol (MCP) server that exposes the Bring! shopping list API.
  • Language: TypeScript
  • Key Libraries:
    • @modelcontextprotocol/sdk: For MCP server implementation.
    • @modelcontextprotocol/inspector: For testing and debugging MCP servers.
    • bring-shopping: Node.js wrapper for the Bring! API.
    • zod: For schema definition and validation.
    • dotenv: For managing environment variables.
    • jest: For testing.
    • eslint & prettier: For linting and formatting.

Directory Structure

  • .cursor/rules/: Contains Cursor AI project-specific rules like this one.
  • src/: Main application source code.
    • index.ts: Entry point, MCP server setup, registerTool helper function, and the main function which initializes BringClient and registers tools.
    • bringClient.ts: A wrapper class around the bring-shopping library, centralizing all interactions with the Bring! API.
    • schemaShared.ts: Defines common Zod schema parts (e.g., listUuidParam, itemIdParam, itemNameParam, itemSpecificationParam, itemImagePathOrUrlParam, batchItemSchema, saveItemBatchParams, itemNamesArrayParam) for reuse across tool schemas.
    • tools/: Contains modularized tool registration functions.
      • listTools.ts
      • itemTools.ts: Includes tools like saveItem, saveItemBatch, deleteMultipleItemsFromList.
      • userTools.ts: Includes tools like getAllUsersFromList, getUserSettings, getPendingInvitations, and getDefaultList.
      • catalogTools.ts
  • tests/: Contains Jest test files (e.g., *.spec.ts).
  • .env: Used for storing Bring! API credentials (MAIL, PW). This file should not be committed to version control.
  • assets/: Contains static assets like images for the README.
  • eslint.config.js: ESLint configuration.
  • jest.config.js: Jest test runner configuration.
  • tsconfig.json: TypeScript compiler configuration.
  • package.json: Project metadata, dependencies, and npm scripts.

Read the full file on GitHub · 184 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 · 184 lines · 3,085 tokens per session scan A b4cf5d851683

Subscribe to this mod's changes

bring-mcp-guidelines is a cursor rule published in the GitHub repository florianwittkamp/bring-mcp (27 stars, last pushed 2d ago), licensed MIT. It adds 3,085 tokens to every session, about $0.0154 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-30.