general

general is a cursor rule for Cursor from kevinwuhoo/google-maps-geocoding-mcp. It costs 424 tokens per session, scanned A, original, MIT.

Coding rules for a Google Maps geocoding tool server, including how to use the official Google Maps library and design simple tools for AI agents. An MCP server is a service that exposes tools an AI agent can call.

In plain words
What is it for?
Use them when building or reviewing TypeScript tools for Google Maps APIs, especially their types, parameter schemas, responses, and API interactions.
Why use it?
They reduce duplicated code, inconsistent data types, and hard-to-maintain interfaces. They also make tool names, inputs, descriptions, and returned results easier for agents to use correctly.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/kevinwuhoo/google-maps-geocoding-mcp/general
Clone the repo
git clone --depth 1 https://github.com/kevinwuhoo/google-maps-geocoding-mcp

Made for: Cursor.

Wrote 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.

agentmods badge for general

README.md
[![agentmods](https://agentmods.dev/badge/rules/kevinwuhoo/google-maps-geocoding-mcp/general.svg)](https://agentmods.dev/rules/kevinwuhoo/google-maps-geocoding-mcp/general)
Your own site
<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="Measured on agentmods" height="20"></a>
Per session 424 This file is loaded in full into every session.
When invoked 424 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00424 $0.00424
Opus 5 $0.00212 $0.00212
Sonnet 5 $0.00085 $0.00085
Haiku 4.5 $0.00042 $0.00042

Measured 3d ago against content hash 1dfd3f130537, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 3d 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.

.cursor/general.mdc · 56 lines

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-js library
  • 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., Language enum → string)
    • Complex unions → single format (e.g., LatLng union → string only)
    • Optional fields that need different handling
  • 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

Read the full file on GitHub · 56 lines

Changes

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.

  1. 3d ago First seen · 56 lines · 424 tokens per session scan A 1dfd3f130537

Subscribe to this mod's changes

general is a cursor rule published in the GitHub repository kevinwuhoo/google-maps-geocoding-mcp (0 stars, last pushed 7mo ago), licensed MIT. It adds 424 tokens to every session, about $0.0021 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.