Skip to content

AI coding agent rules (AGENTS.md, Cursor, Claude)

Last updated 28 October 2026

Give your AI coding assistant (Cursor, Claude Code, Windsurf, Copilot) the exact rules, security constraints, and code recipes needed to integrate SadaSend without hallucinations.

SadaSend REST APIs, Port 587 ESMTP submission relay, hosted MCP tools for AI agents, and official zero-dependency TypeScript and Python SDKs are live in production. Every account receives 6,000 monthly transactional emails with strict server-enforced guardrails.

Quick install via terminal (1-liner commands)

Add SadaSend instructions to your repository with a single terminal command. Compatible with all modern coding assistants.

BASH
# 1. Universal Standard (AGENTS.md - Linux Foundation & Supabase standard)
curl -fsSL https://www.sadasend.com/AGENTS.md >> AGENTS.md

# 2. Claude Code CLI (CLAUDE.md)
curl -fsSL https://www.sadasend.com/CLAUDE.md >> CLAUDE.md

# 3. Cursor IDE (.cursorrules)
curl -fsSL https://www.sadasend.com/.cursorrules >> .cursorrules

Ready-to-clone starter kits (GitHub templates)

Jumpstart your agent integration with official, pre-configured GitHub template repositories. Each kit includes pre-built guardrails, environment configurations, and working code examples:

Starter KitStack & FrameworkKey Guardrails & CapabilitiesGitHub Template
Cursor StarterTypeScript + Cursor IDEPre-configured .cursorrules + .cursor/mcp.json with automated SpendGuard credit checks before sendingSadaSend/sadasend-cursor-starter
Claude Code StarterTypeScript + Anthropic CLIWorkspace CLAUDE.md + .mcp.json with automated pre-flight deliverability and DNS check scriptsSadaSend/sadasend-claude-code-starter
LangGraph StarterTypeScript + LangGraph StateGraph4-node Human-in-the-Loop (HITL) approval state machine with staging recipient domain allowlistsSadaSend/sadasend-langgraph-starter
CrewAI StarterPython + CrewAI AgentsMulti-agent research and dispatch team with built-in safety officer and policy validationSadaSend/sadasend-crewai-starter

File naming across tools and platforms

Different tools recognize different instruction files. SadaSend provides unified guidance for all of them:

Tool / PlatformStandard File PathHow It Works
Universal / Linux FoundationAGENTS.mdRoot instruction file adopted by multi-agent frameworks, Supabase, and CI bots
Google AntigravityAGENTS.md or GEMINI.md or .agents/rules/*.mdHierarchical rule discovery and MCP tool bindings across Antigravity IDE and CLI
Cursor IDE.cursorrules or .cursor/rules/*.mdcInjected into Cursor Composer and Chat context for code completions
Cline (VS Code).clinerulesCustom system instructions read by the Cline autonomous agent in VS Code
Anthropic Claude CodeCLAUDE.mdRead automatically by the Claude Code CLI at the start of every session
Windsurf (Codeium).windsurfrulesRoot configuration for Windsurf Cascade agent workflows
OpenCode CLIAGENTS.md or opencode.jsonAgent guidelines and tool permissions for OpenCode terminal sessions
GitHub Copilot.github/copilot-instructions.mdOfficial repository-wide instructions for GitHub Copilot Chat
Hosted MCP Connectionmcp_config.json or .cursor/mcp.json or cline_mcp_settings.jsonDirect connection to SadaSend hosted MCP tools (https://mcp.sadasend.com)

Universal rule template (Copy & Paste)

If you prefer to manually configure your rules, place the following content in your repository:

MARKDOWN
# SadaSend Email Integration Rules

1. Environment & Credentials:
   - Read from `process.env.SADASEND_API_KEY` and `process.env.SADASEND_FROM_EMAIL`. Never hardcode keys.
   - Use scoped keys (`[send]`, `[read]`) and recipient allowlists (`*@yourcompany.com`) during local development.

2. API Standards:
   - Primary Endpoint: `POST https://api.sadasend.com/emails`
   - SMTP Gateway: `smtp.sadasend.com:587` (STARTTLS), User: `apikey`, Pass: `$SADASEND_API_KEY`
   - Always include an `Idempotency-Key` UUID header on transactional sends to prevent duplicate delivery.

3. Error Handling:
   - 400: Syntax or burner address invalid.
   - 401: Invalid API key.
   - 403: Recipient allowlist block, scope restriction, or unverified sending domain (domain_not_verified). Requires human configuration.
   - 422: Unprocessable payload or invalid template syntax.
   - 429: Rate limit hit. Back off exponentially.

Connecting the hosted MCP server

To equip AI coding agents with direct email preview and diagnostic tools without giving them your entire account, connect to the hosted MCP server (https://mcp.sadasend.com).

SadaSend enforces four core platform exposure guardrails across all agent connections:

• Token-Scoped Keys (`sada_agent_sk_`): Scoped keys restrict tools dynamically; approval mode holds all sends for review.

• Recipient Domain Allowlists: Boundary filters block attempts to contact addresses outside authorized domains.

• Guaranteed Non-Destructive Tool Inventory: Strictly 12 safe tools; administrative actions (key creation, domain deletion, suppression removal) are completely absent.

• SpendGuard Hard $0.00 Floor: Overage ceilings prevent runaway billing from unexpected agent loops.

JSON
{
  "mcpServers": {
    "sadasend": {
      "url": "https://mcp.sadasend.com",
      "headers": {
        "Authorization": "Bearer YOUR_SADASEND_API_KEY"
      }
    }
  }
}

Verification command

An agent can run this command in your terminal to verify that credentials and domain verification are active before generating application code:

BASH
curl -s -w "\nStatus: %{http_code}\n" \
  https://api.sadasend.com/domains \
  -H "Authorization: Bearer $SADASEND_API_KEY"