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.
npx agentmods add rules/leadmagic/smartlead-mcp-server/typescript-standardsgit clone --depth 1 https://github.com/LeadMagic/smartlead-mcp-serverWhat 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 | $0.00016 | $0.02419 |
| Opus 5 | $0.00008 | $0.01210 |
| Sonnet 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 2d 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.
- 2d 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 1y ago), licensed MIT. It adds 16 tokens to every session and 2,419 once invoked, about $0.0001 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.
Other cursor rules, from other repositories
bmad-orchestrator
This rule is triggered when the user types @bmad-orchestrator and activates the BMad Master Orchestrator agent persona.
analyst
This rule is triggered when the user types @analyst and activates the Business Analyst agent persona.
architect
This rule is triggered when the user types @architect and activates the Architect agent persona.
bmad-master
This rule is triggered when the user types @bmad-master and activates the BMad Master Task Executor agent persona.
dev
This rule is triggered when the user types @dev and activates the Full Stack Developer agent persona.
qa
This rule is triggered when the user types @qa and activates the Test Architect & Quality Advisor agent persona.