mcp-server-development-standards

mcp-server-development-standards is a cursor rule for Cursor from DevEngageLab/engagelab-sms-mcp. It costs 429 tokens per session, scanned A, original, MIT.

A set of development rules for MCP servers, which connect AI agents to external tools and services. The rules cover schemas, stable interfaces, errors, secrets, retries, validation, logging, and TypeScript practices.

In plain words
What is it for?
Use it when building or reviewing MCP server code in a TypeScript project.
Why use it?
It prevents common integration and maintenance problems, such as breaking existing clients, exposing credentials, or hiding unsafe side effects.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when building or reviewing MCP server code in a TypeScript project.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/devengagelab/engagelab-sms-mcp/mcp-server-development-standards
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/DevEngageLab/engagelab-sms-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 mcp-server-development-standards

README.md
[![agentmods](https://agentmods.dev/badge/rules/devengagelab/engagelab-sms-mcp/mcp-server-development-standards/github.svg)](https://agentmods.dev/rules/devengagelab/engagelab-sms-mcp/mcp-server-development-standards)
Your own site
<a href="https://agentmods.dev/rules/devengagelab/engagelab-sms-mcp/mcp-server-development-standards"><img src="https://agentmods.dev/badge/rules/devengagelab/engagelab-sms-mcp/mcp-server-development-standards/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-server-development-standards

Your own site · 80×15
<a href="https://agentmods.dev/rules/devengagelab/engagelab-sms-mcp/mcp-server-development-standards"><img src="https://agentmods.dev/badge/rules/devengagelab/engagelab-sms-mcp/mcp-server-development-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 429 This file is loaded in full into every session.
When invoked 429 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.00429 $0.00429
Opus 5 $0.00215 $0.00215
Sonnet 5 $0.00086 $0.00086
Haiku 4.5 $0.00043 $0.00043

Measured 9d ago against content hash 637076298e8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

mcp-server-development-standards 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 9d 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-development-standards.mdc · 54 lines

What it actually says

MCP Server Development Standards

Apply these rules to all MCP server work in this repository.

Core Rules

  • Build tools with explicit input schemas (zod) and clear output shapes.
  • Keep tool names, descriptions, and argument fields stable and backward compatible.
  • Return actionable errors: explain what failed, why, and how to recover.
  • Never hardcode secrets; read credentials from environment variables.
  • Add timeout, retry, and graceful failure handling for external API calls.
  • Keep side effects explicit; avoid hidden writes, deletions, or irreversible actions.
  • Validate and sanitize any user-provided or remote data before use.
  • Log enough context for debugging, but never log secrets or sensitive payloads.

TypeScript Standards

  • Use TypeScript for all runtime and server code; do not introduce plain .js source files.
  • Keep strict typing on (strict: true) and avoid any; prefer unknown plus narrowing.
  • In catch blocks, narrow error safely before reading message/details.
  • Add explicit types for exported APIs and shared helper boundaries.
  • Prefer import type for type-only imports to keep runtime output clean.

Implementation Pattern (TypeScript)

// ❌ BAD: no schema, weak error context
server.tool("sendSms", async (args) => provider.send(args));

// ✅ GOOD: schema + safe error mapping
server.tool(
  "send_sms",
  "Send an SMS through EngageLab",
  { phone: z.string().min(6), content: z.string().min(1).max(500) },
  async ({ phone, content }) => {
    try {
      return await provider.send({ phone, content });
    } catch (error) {
      throw new Error(`send_sms failed: provider request was rejected`);
    }
  }
);

Quality Gate

  • For every new tool, include one success path test and one failure path test.
  • Keep name/version metadata accurate when behavior changes.
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. 9d ago First seen · 54 lines · 429 tokens per session scan A 637076298e8b

Subscribe to this mod's changes

mcp-server-development-standards is a cursor rule published in the GitHub repository DevEngageLab/engagelab-sms-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 429 tokens to every session, about $0.0021 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.