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.
git clone --depth 1 https://github.com/LeadMagic/smartlead-mcp-serverWrote 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.
[](https://agentmods.dev/rules/leadmagic/smartlead-mcp-server/typescript-standards)<a href="https://agentmods.dev/rules/leadmagic/smartlead-mcp-server/typescript-standards"><img src="https://agentmods.dev/badge/rules/leadmagic/smartlead-mcp-server/typescript-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.
<a href="https://agentmods.dev/rules/leadmagic/smartlead-mcp-server/typescript-standards"><img src="https://agentmods.dev/badge/rules/leadmagic/smartlead-mcp-server/typescript-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00016 | $0.02419 |
| Opus 5.5 | $0.00006 | $0.00968 |
| Sonnet 5.5 | $0.00003 | $0.00484 |
| Haiku 4.5 | $0.00002 | $0.00242 |
Grade A, and why
SmartLead MCP TypeScript 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 381 lines — stays where its author put it; the contents beside it link to each section on GitHub.
📝 SmartLead TypeScript Standards & Best Practices
Code Quality Guide: Master TypeScript patterns and standards used in the SmartLead MCP Server. Write clean, type-safe, maintainable code that follows our established conventions.
🎯 Quick Reference
🔥 Core Principles
- Strict Type Safety → No
anytypes, use proper interfaces - Zod Integration → All inputs validated with Zod schemas
- Error Handling → Use
SmartLeadErrorfor API errors - Async Patterns → Consistent async/await usage
- Documentation → JSDoc for public APIs
⚡ Quick Checklist
- No
anytypes used - Zod schemas for validation
- Proper error handling
- JSDoc for public methods
- Consistent naming conventions
SmartLead MCP Server - TypeScript Standards
🎯 TypeScript Configuration
Compiler Settings (tsconfig.json)
The project uses strict TypeScript configuration defined in tsconfig.json:
- Target: ES2022 for modern JavaScript features
- Module: ESNext with bundler resolution for optimal tree-shaking
- Strict Mode: All strict options enabled for maximum type safety
- JSX: React JSX for the installer components in src/installer.tsx
Key Compiler Options
{
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"useUnknownInCatchVariables": true
}
📝 Type Definition Patterns
Global Types (src/types.ts)
All shared types and Zod schemas are defined in src/types.ts:
// Zod schema with TypeScript type inference
const CreateCampaignSchema = z.object({
name: z.string(),
from_email: z.string().email(),
// ... other fields
});
// Inferred TypeScript type
type CreateCampaignRequest = z.infer<typeof CreateCampaignSchema>;
Module-Specific Types
Each module can define its own types when needed:
// In src/modules/campaigns/client.ts
interface CampaignResponse {
id: number;
name: string;
status: 'active' | 'paused' | 'completed';
created_at: string;
}
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.
- 2mo ago First seen · 381 lines · 16 tokens per session scan A 89c370c41b3d
SmartLead MCP TypeScript Standards is a cursor rule published in the GitHub repository LeadMagic/smartlead-mcp-server (21 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 2,419 once invoked, about $0.0001 per session on Opus 5.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.
Other cursor rules, from other repositories
code-style
TypeScript style, language policy, hygiene, shared domain vocabulary.
mcp-tool-structure
The project implements an MCP (Model Context Protocol) tool following the framework's required structure.
vue-typescript-patterns
A set of coding rules for Vue 3 projects using TypeScript, a language that adds type checking to JavaScript. It covers component structure, file locations, TypeScript usage, and Pinia, a library for shared application state.
nextjs-typescript-app-cursorrules-prompt-file
Cursor rules for Next.js development with TypeScript integration.
ts
A set of TypeScript coding rules covering types, naming, file organization, error handling, and strict type checking. TypeScript is JavaScript with checks that help catch many mistakes before the program runs.
general-rule
Cursor rule "general-rule" from vinhnx/vtchat, covering development guidelines, tech stack & project overview, package management, code style and ui/ux design principles.