mcp-server-rules

mcp-server-rules is a cursor rule for Cursor from pandeussilvae/mcp-odoo-panda. It costs 0 tokens per session (1,821 once invoked), scanned A, original, MIT.

A set of rules for building MCP servers, which are small programs that expose tools or data to an AI client. The rules cover server structure, communication protocols, resources, tools, prompts, and capability negotiation.

In plain words
What is it for?
Use it when designing or reviewing an MCP server, choosing between standard input/output and streaming HTTP, handling JSON-RPC messages, and managing exposed resources, tools, or prompts.
Why use it?
It gives developers a shared checklist for implementing an MCP server that follows the expected client-server protocol and lifecycle.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when designing or reviewing an MCP server, choosing between standard input/output and streaming HTTP, handling JSON-RPC messages, and managing exposed resources, tools, or prompts.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/pandeussilvae/mcp-odoo-panda/mcp-server-rules
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/pandeussilvae/mcp-odoo-panda

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 mcp-server-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/pandeussilvae/mcp-odoo-panda/mcp-server-rules.svg)](https://agentmods.dev/rules/pandeussilvae/mcp-odoo-panda/mcp-server-rules)
Your own site
<a href="https://agentmods.dev/rules/pandeussilvae/mcp-odoo-panda/mcp-server-rules"><img src="https://agentmods.dev/badge/rules/pandeussilvae/mcp-odoo-panda/mcp-server-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,821 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.01821
Opus 5 $0.00000 $0.00911
Sonnet 5 $0.00000 $0.00364
Haiku 4.5 $0.00000 $0.00182

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

Security

Grade A, and why

mcp-server-rules 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/mcp-server-rules.mdc · 315 lines

How it starts

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

MCP Server Implementation Rules

Core Architecture Rules

  1. Server Base Class

    • All MCP servers must inherit from the base Server class
    • Must implement all abstract methods defined in the base class
    • Must provide proper initialization with server name and version
    • Must maintain protocol version compatibility
    • Must follow MCP's client-server architecture where:
      • MCP Hosts: Programs that want to access data through MCP
      • MCP Clients: Protocol clients that maintain 1:1 connections with servers
      • MCP Servers: Lightweight programs exposing specific capabilities
      • Local Data Sources: Computer's files, databases, and services
      • Remote Services: External systems available over the internet
  2. Protocol Support

    • Must support at least one of the following protocols:
      • Stdio Protocol (default)
      • Streamable HTTP Protocol
    • Protocol selection must be configurable
    • Must handle protocol-specific initialization and cleanup
    • Must implement JSON-RPC 2.0 message format
    • Must support stateful connections
    • Must implement server and client capability negotiation
  3. Capabilities Declaration

    • Must declare server capabilities during initialization
    • Must include:
      • Resources support and templates
      • Tools support and list
      • Prompts support and list
      • Experimental features (if any)
    • Must maintain capability list consistency
    • Must support feature flags:
      • prompts.listChanged
      • resources.subscribelistChanged
      • tools.listChanged
      • logging
      • completion

Resource Management Rules

  1. Resource Handling
    • Must implement proper resource URI parsing
    • Must support resource listing and retrieval
    • Must handle resource updates and notifications
    • Must validate resource access permissions
    • Must follow MCP's resource primitives:
      • Application-controlled contextual data
      • Managed by the client application
      • Examples: File contents, API responses

Read the full file on GitHub · 315 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 · 315 lines · 0 tokens per session scan A c7c1ecfe6a17

Subscribe to this mod's changes

mcp-server-rules is a cursor rule published in the GitHub repository pandeussilvae/mcp-odoo-panda (8 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,821 tokens. 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.