sandiego-city-mcp: Instructions file for Claude Code

CLAUDE.md

sandiego-city-mcp CLAUDE.md is an instructions file for Claude Code from codeforanchorage/sandiego-city-mcp. It costs 2,079 tokens per session, scanned A, original, MIT.

Repository instructions for a San Diego city-data MCP server. It provides access to the city's ArcGIS REST services, which publish geographic datasets and map layers, using a prebuilt offline catalogue.

In plain words
What is it for?
Use them when searching datasets, reading layer schemas, filtering or aggregating data, running spatial queries, or geocoding addresses in San Diego services.
Why use it?
They explain where dataset discovery comes from and preserve the server's fixed tool names and data-access rules.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is codeforanchorage/sandiego-city-mcp's own configuration. It tells Claude Code how to work on sandiego-city-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sandiego-city-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to codeforanchorage/sandiego-city-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.

Copy the file
curl -O https://raw.githubusercontent.com/codeforanchorage/sandiego-city-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/codeforanchorage/sandiego-city-mcp

Made for: Claude Code.

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 sandiego-city-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/codeforanchorage/sandiego-city-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/codeforanchorage/sandiego-city-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/codeforanchorage/sandiego-city-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/codeforanchorage/sandiego-city-mcp/claude-md/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.

agentmods 80×15 button for sandiego-city-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/codeforanchorage/sandiego-city-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/codeforanchorage/sandiego-city-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,079 This file is loaded in full into every session.
When invoked 2,079 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.02079 $0.02079
Opus 5 $0.01040 $0.01040
Sonnet 5 $0.00416 $0.00416
Haiku 4.5 $0.00208 $0.00208

Measured yesterday against content hash 44214330fa83, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

sandiego-city-mcp CLAUDE.md 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.

CLAUDE.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

San Diego City fork. This is a City of San Diego fork of the OpenContext MCP server framework (forked from the Worcester GIS fork). It serves the City's bare ArcGIS Server REST services directory (webmaps.sandiego.gov/arcgis/rest/services, ArcGIS Enterprise 11.5) via the built-in arcgis plugin (see config.yaml). There is NO ArcGIS Hub catalog in front of this host, so discovery comes from a precomputed catalog manifest (plugins/arcgis/catalog.json) built offline by scripts/crawl_catalog.py and bundled with the deployment — the running server never crawls live. To refresh the catalog, re-run the crawler and redeploy.

Key invariants of the arcgis plugin in this fork:

  • Same tool surface as sibling serverssearch_datasets, get_dataset, get_layer_schema, get_distinct_values, get_aggregations, query_data, spatial_query_point, geocode_address under the arcgis__ prefix, identical names/shapes to the Worcester and SANDAG forks.
  • dataset_id is a services-directory path{folder}/{service}/{MapServer|FeatureServer}/{layerId}, e.g. Planning/PLN_LongRangePlanning/MapServer/7 (MHPA). Validated before URL interpolation (security boundary).
  • WGS84 hard contract — layers are authored in EPSG:2230 (State Plane CA Zone VI, US survey feet); every query sets inSR=4326 and outSR=4326. Without inSR, WGS84 coords are read as State Plane feet and silently match nothing.
  • Per-layer paginationmaxRecordCount varies by layer and is read from the catalog; query_data pages with resultOffset/resultRecordCount.
  • Auth-gated services are detected during the crawl (HTTP 401/403, ArcGIS JSON codes 498/499/403) and recorded in the manifest's skipped list; only anonymously queryable layers are indexed.

Build & Development Commands

# Install dependencies (uv preferred, pip fallback)
uv sync                              # or: pip install -r requirements.txt

# Run local MCP server (no Lambda needed)
python3 scripts/local_server.py      # Serves on http://localhost:8000/mcp
# Or: python3 local_server.py        # Alternate entry point, serves on / and /mcp

# Validate config
python3 -c "from core.validators import load_and_validate_config; load_and_validate_config('config.yaml')"

# Rebuild the layer catalog (deploy artifact; commit the result and redeploy)
python3 scripts/crawl_catalog.py

# Smoke test a deployment (or a local server)
python3 scripts/smoke_prod.py http://localhost:8000/mcp

# Tests
uv run pytest tests/ -n auto                                    # All tests, parallel
uv run pytest tests/test_ckan_plugin.py -v                      # Single file
uv run pytest tests/test_ckan_plugin.py::TestClass::test_name -v  # Single test
uv run pytest tests/ --cov=core --cov=plugins --cov-report=term-missing  # With coverage (80% minimum)

# Linting (ruff)
uv run ruff check core/ plugins/ server/ tests/      # Check
uv run ruff check core/ plugins/ server/ tests/ --fix # Auto-fix
uv run ruff format core/ plugins/ server/ tests/      # Format

# Pre-commit hooks
pre-commit run --all-files

# Go client (requires Go 1.21+)
cd client && make build

# Deploy to AWS
./scripts/deploy.sh --environment staging

Read the full file on GitHub · 95 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. yesterday Changed · +7 lines · +625 tokens per session 44214330fa83
  2. 10d ago First seen · 88 lines · 1,454 tokens per session scan A 7d3658373318

Subscribe to this mod's changes

sandiego-city-mcp CLAUDE.md is an instructions file published in the GitHub repository codeforanchorage/sandiego-city-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 2,079 tokens to every session, about $0.0104 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.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens