Borrowing it
Nothing to install: this file belongs to kevinwuhoo/google-maps-geocoding-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/kevinwuhoo/google-maps-geocoding-mcp/main/.cursor/general.mdcgit clone --depth 1 https://github.com/kevinwuhoo/google-maps-geocoding-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/kevinwuhoo/google-maps-geocoding-mcp/general)<a href="https://agentmods.dev/rules/kevinwuhoo/google-maps-geocoding-mcp/general"><img src="https://agentmods.dev/badge/rules/kevinwuhoo/google-maps-geocoding-mcp/general/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/kevinwuhoo/google-maps-geocoding-mcp/general"><img src="https://agentmods.dev/badge/rules/kevinwuhoo/google-maps-geocoding-mcp/general.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.00424 | $0.00424 |
| Opus 5.5 | $0.00170 | $0.00170 |
| Sonnet 5.5 | $0.00085 | $0.00085 |
| Haiku 4.5 | $0.00042 | $0.00042 |
Grade A, and why
general 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 — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Core Principles
Maximize Library Usage
- Always leverage the official
@googlemaps/google-maps-services-jslibrary - Use library types as the foundation, avoiding custom type definitions where possible
- Let the library handle validation and API interaction details
Type Management Strategy
- Use TypeScript utility types (
Omit,Pick,&) to derive types from the library - Override only what's necessary for MCP/LLM simplicity:
- Enums → strings (e.g.,
Languageenum →string) - Complex unions → single format (e.g.,
LatLngunion →stringonly) - Optional fields that need different handling
- Enums → strings (e.g.,
- Never create parallel type hierarchies - derive from the source
Direct API Responses
- Return Google API responses directly without unnecessary wrappers
- Don't add metadata that can become stale (versions, timestamps)
- Trust the official API response structure
Tool Design for LLMs
- Split multi-mode operations into separate, single-purpose tools
- Keep parameter schemas flat and predictable
- Use descriptive tool names that clearly indicate their purpose
- Provide comprehensive descriptions and examples in tool schemas
Avoid Maintenance Burdens
- No hardcoded version strings that need manual updates
- No constants that duplicate library information
- Let TypeScript's type system enforce correctness
- Do not maintain backwards compatibility
Development Practices
- Type Safety First: Let TypeScript catch errors at compile time
- Validate at Boundaries: Validate MCP inputs before passing to library
- Fail Fast: Return errors immediately, don't suppress them
- Keep It Simple: If the library provides it, use it directly
- Document Intent: Comments should explain "why", not "what". Do not write comments for self documenting code.
Testing Approach
- Focus on parameter validation and transformation logic
- Mock the Google Maps client for unit tests
- Use real API calls only for integration tests
- Test error handling paths explicitly
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 · 56 lines · 424 tokens per session scan A 1dfd3f130537
general is a cursor rule published in the GitHub repository kevinwuhoo/google-maps-geocoding-mcp (0 stars, last pushed 8mo ago), licensed MIT. It adds 424 tokens to every session, about $0.0017 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-31.
Other cursor rules, from other repositories
errors
Please don't fix any code errors unless reported by XcodeBuildMCP server tool responses.
mcp-debugging
The mcp-debug agent provides essential tools to test and explore MCP (Model Context Protocol) servers. This guide focuses on using the agent to debug MCP server behavior and functionality.
architecture
This document outlines the fundamental architectural principles and patterns for the mcp-debug codebase. Adherence to these guidelines is mandatory to maintain a clean, decoupled, and testable system.
mcp-development
Cursor rule "mcp-development" from floriscornel/todo-mcp, covering mcp development patterns, tool definition structure, error handling patterns, tool naming conventions and response formatting.
api
src/api — layer 1, one module per ServiceNow REST area.
api-patterns
Cursor rule "api-patterns" from LeadMagic/smartlead-mcp-server, covering 🏗️ smartlead api development patterns & best practices, 🎯 quick reference, 🔥 most important patterns, 🏗️ smartlead api client architecture and 🛠️ base client pattern.