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/floriscornel/todo-mcp/mcp-developmentgit clone --depth 1 https://github.com/floriscornel/todo-mcpWrote 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/floriscornel/todo-mcp/mcp-development)<a href="https://agentmods.dev/rules/floriscornel/todo-mcp/mcp-development"><img src="https://agentmods.dev/badge/rules/floriscornel/todo-mcp/mcp-development.svg" alt="Measured on agentmods" 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.00368 | $0.00368 |
| Opus 5 | $0.00184 | $0.00184 |
| Sonnet 5 | $0.00074 | $0.00074 |
| Haiku 4.5 | $0.00037 | $0.00037 |
Grade A, and why
mcp-development 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 5d 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.
What it actually says
MCP Development Patterns
Tool Definition Structure
When adding new MCP tools:
-
Tool Registration:
server.tool( "toolName", "Clear description of what this tool does", { /* Zod schema for parameters */ }, async (params) => { /* implementation */ } ); -
Parameter Validation:
- Use Zod schemas for all parameters
- Provide clear descriptions for each parameter
- Include validation constraints (min/max length, etc.)
- Set sensible defaults where appropriate
-
Response Format:
- Always return structured responses
- Include metadata when helpful
- Use consistent error handling
- Format dates with relative timestamps
Error Handling Patterns
- Throw descriptive errors for invalid inputs
- Include available options in error messages
- Handle database connection failures gracefully
- Validate foreign key relationships
Tool Naming Conventions
- Use camelCase for tool names
- Start with verb:
getTasks,createList,completeTask - Be specific about what the tool does
- Match the function to the tool name
Response Formatting
- Use
formatRelativeTime()for timestamps - Sort results consistently (priority first, then date)
- Include relevant metadata in responses
- Structure JSON responses with proper nesting
Testing MCP Tools
- Test parameter validation
- Test error scenarios
- Test database interactions
- Verify response formats
- Test edge cases (empty results, missing data)
MCP Server Configuration
- Set proper server name and version
- Initialize database before starting server
- Use stdio transport for Claude integration
- Include proper metadata in responses
@src/index.ts
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.
- 5d ago First seen · 65 lines · 368 tokens per session scan A 1249eeb90161
mcp-development is a cursor rule published in the GitHub repository floriscornel/todo-mcp (2 stars, last pushed 6mo ago), licensed MIT. It adds 368 tokens to every session, about $0.0018 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.
Other cursor rules, from other repositories
cursorrules
When the user asks about social media, use social-media-ai-mcp tools: schedulepost, generatehashtags, analyzeengagement, plancontentcalendar, getaudienceinsights.
cursorrules
When the user asks about ecommerce, use ecommerce-ai-mcp tools: writeproductdescription, optimizepricing, summarizereviews, forecastinventory, generateseometa.
cursorrules
When the user asks about invoice generator, use invoice-generator-ai-mcp tools: generateinvoice, calculatetotals, validateinvoice, listtemplates.
cursorrules
When the user asks about landlaw, use landlaw-ai-mcp tools: searchlandregistry, checkplanningpermission, explaincovenant, calculatesdlt, draftsectionnotice.
cursorrules
When the user asks about lead scoring, use lead-scoring-ai-mcp tools: scorelead, addlead, updateleadactivity, getleadscore, getallleads.
cursorrules
When the user asks about nist rmf, use nist-rmf-ai-mcp tools: assessriskprofile, mapaiimpact, generateriskcontrols, crosswalktoeuaiact, createriskreport.