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/sunra-ai/sunra-clients/mcpgit clone --depth 1 https://github.com/sunra-ai/sunra-clientsWrote 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/sunra-ai/sunra-clients/mcp)<a href="https://agentmods.dev/rules/sunra-ai/sunra-clients/mcp"><img src="https://agentmods.dev/badge/rules/sunra-ai/sunra-clients/mcp.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.00000 | $0.02016 |
| Opus 5 | $0.00000 | $0.01008 |
| Sonnet 5 | $0.00000 | $0.00403 |
| Haiku 4.5 | $0.00000 | $0.00202 |
Grade A, and why
mcp 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 yesterday.
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 — 311 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Server Development Rules
Overview
This file contains rules and guidelines for developing MCP (Model Context Protocol) servers using fast-mcp and TypeScript, specifically for integrating with Sunra.ai services.
Technology Stack
- Runtime: Node.js with TypeScript
- Framework: FastMCP (fast-mcp library)
- Language: TypeScript with strict type checking
- Package Manager: npm or pnpm
- API Client: @sunra/client for Sunra.ai integration
Project Structure Standards
Directory Layout
mcp-server/
├── src/
│ ├── index.ts # Main server entry point
│ ├── tools/ # MCP tools implementation
│ │ └── base.ts # base functions such as submit, status, result, cancel
│ │ └── models
│ │ └── provider1 # group tools by provider name
│ │ └── model1.ts # add each endpoint as a standalone tool in [model name].ts
│ │ └── model2.ts
│ │ └── provider2
│ ├── resources/ # MCP resources (if needed)
│ ├── prompts/ # MCP prompts (if needed)
│ ├── types/ # TypeScript type definitions
│ └── utils/ # Utility functions
├── dist/ # Compiled JavaScript
├── package.json
├── tsconfig.json
├── README.md
└── .env.example
File Naming Conventions
- Use kebab-case for file names:
text-to-image.ts - Use PascalCase for class names:
TextToImageTool - Use camelCase for function and variable names:
generateImage - Use UPPER_SNAKE_CASE for constants:
DEFAULT_TIMEOUT
Code Standards
TypeScript Configuration
- Enable strict mode:
"strict": true - Use ES2020 or later target
- Enable experimental decorators if needed
- Include proper type definitions for all dependencies
- Use 2 space indent size
Error Handling
- Always wrap async operations in try-catch blocks
- Use specific error types for different failure modes
- Provide meaningful error messages to users
- Log errors appropriately for debugging
Documentation
- Use JSDoc comments for all public functions and classes
- Document parameter types and return values
- Include usage examples in documentation
- Explain complex business logic with inline comments
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.
- yesterday First seen · 311 lines · 0 tokens per session scan A 44a315552805
mcp is a cursor rule published in the GitHub repository sunra-ai/sunra-clients (7 stars, last pushed 8d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,016 tokens. 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-09-04.
Other cursor rules, from other repositories
omni-rewriter
Omni-Rewriter prompt-expansion framework conventions.
api-property-optionality-hygiene
Fix ApiProperty/ApiPropertyOptional optionality mismatches in DTO files; use for scheduled batch fixes or DTO edits.
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
shared-libraries
Shared libraries - condition framework, inventory containers, file-backed DB, itinerary, references.
skill-rails-api
Padrões DARE para APIs em Ruby on Rails 8 — API mode, ActiveRecord, Solid Queue, Solid Cable, Action Cable, strong parameters, services, serializers (Blueprinter/Alba), Devise/JWT, rack-attack, rswag/grape-swagger.
go
Cursor rule "go" from supertokens/create-supertokens-app, covering go and examples.