mcp-camptocamp: Instructions file for Claude Code

CLAUDE.md

mcp-camptocamp CLAUDE.md is an instructions file for Claude Code from olaurendeau/mcp-camptocamp. It costs 8,308 tokens per session, scanned A, original, MIT.

Project instructions for an MCP server, a program that lets an AI query the Camptocamp.org mountain-route API. They describe the TypeScript architecture, tests, Docker workflow, and type checking.

In plain words
What is it for?
Use them when changing API clients or tool handlers, adding route or waypoint searches, writing tests, or running the project in Docker.
Why use it?
They give the agent reliable project-specific guidance and help it use the API’s route, summit, and waypoint data instead of guessing mountaineering facts.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is olaurendeau/mcp-camptocamp's own configuration. It tells Claude Code how to work on mcp-camptocamp 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 mcp-camptocamp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to olaurendeau/mcp-camptocamp. 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/olaurendeau/mcp-camptocamp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/olaurendeau/mcp-camptocamp

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/olaurendeau/mcp-camptocamp/claude-md"><img src="https://agentmods.dev/badge/instructions/olaurendeau/mcp-camptocamp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,308 This file is loaded in full into every session.
When invoked 8,308 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.08308 $0.08308
Opus 5.5 $0.03323 $0.03323
Sonnet 5.5 $0.01662 $0.01662
Haiku 4.5 $0.00831 $0.00831

Measured 25d ago against content hash 0a6cf7333f34, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-camptocamp 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 25d 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.

CLAUDE.md · 263 lines

How it starts

The opening of the file, as written. The whole thing — 263 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.

Project Goal

This project provides an MCP (Model Context Protocol) server that exposes the Camptocamp.org API to LLMs. The goal is to enable LLMs to query accurate, up-to-date information about mountain routes, summit altitudes, and route descriptions — preventing hallucinations about mountaineering data.

Architecture

src/
├── index.ts              # Entry point: MCP_TRANSPORT picks stdio (createServer() + StdioServerTransport) or HTTP (dynamic import of http/main.ts)
├── server.ts             # createServer(): McpServer with instructions, version, registerTool for the 15 tools
├── version.ts            # VERSION read from package.json, reported to MCP clients and in the User-Agent
├── http/                 # HTTP mode only (MCP_TRANSPORT=http); never loaded over stdio
│   ├── config.ts         # MCP_* settings: readTransport, readHttpConfig, ConfigError (exit 1, tokens named by position)
│   ├── auth.ts           # Bearer token check: HMAC digests compared with timingSafeEqual, no early exit
│   ├── guards.ts         # Host and Origin checks against MCP_ALLOWED_HOSTS / MCP_ALLOWED_ORIGINS
│   ├── body.ts           # readBody: 64 KiB cap, declared or streamed
│   ├── server.ts         # Stateless Streamable HTTP on /mcp, /healthz, 90 s timeout, one log line per request, 8 s drain
│   └── main.ts           # runHttp: startup line, upstream cap and User-Agent, SIGTERM/SIGINT handlers
├── api/
│   ├── http.ts           # getJson: the one fetch (User-Agent, 15 s timeout, 10 MiB cap, error messages, zod parsing)
│   ├── upstream.ts       # HTTP mode only: FIFO cap on Camptocamp requests (queue 50, 20 s), request context, self-hosted User-Agent
│   ├── schemas.ts        # zod response schemas, the one place response types are declared
│   └── camptocamp.ts     # Camptocamp API v6 client: one function per endpoint, pl={lang} (default fr) on searches
└── tools/
    ├── format.ts         # Shared formatting: pickLocale, joinList, formatHeader, route/waypoint/book/outing lines, recent outings, areas section, dates, isPresent (0 and false are printed)
    ├── inputs.ts         # Shared zod inputs: bounded document IDs, 200-char queries
    ├── ratings.ts        # Rating labels by grading system (RATING_DISPLAY) and rating scales (ROUTE_RATING_SYSTEMS)
    ├── enums.ts          # Camptocamp's closed value lists: filters (activities, route types, configurations), CUSTODIANSHIPS meanings
    ├── paging.ts         # Shared search paging: header, filters, next-page footer, 10,000-result window; quote() escapes echoed user input (query, rating bounds) onto one line
    ├── filters.ts        # Shared rating and range filters of search_routes and search_outings: inputs, checks, Filters text
    ├── text.ts           # formatUserText: rewrites image tags and internal links, delimits, demotes and caps user-written text
    ├── concurrency.ts    # mapWithConcurrency: parallel API calls in input order, at most MAX_PARALLEL_REQUESTS (3) at a time
    ├── routes.ts         # Tools: search_routes, get_route
    ├── waypoints.ts      # Tools: search_waypoints, get_waypoint
    ├── outings.ts        # Tools: search_user_outings, get_outing, search_outings, get_outings
    ├── outing-stats.ts   # Tool: outing_stats; collectOutingSets reads every outing of one or more searches (at most 2,000, pages of 100)
    ├── areas.ts          # Tools: search_areas, get_area
    ├── books.ts          # Tools: search_books, get_book
    └── articles.ts       # Tools: search_articles, get_article
scripts/                  # Dev-only, outside src/: neither built nor shipped
├── docs-tools.ts         # npm run docs:tools: writes docs/tools/<tool>.md, creating missing pages
└── docs/
    └── inputs.ts         # Renders each tool's Inputs block (between the generated:inputs markers) from its registered JSON Schema
tests/
├── api/
│   ├── camptocamp.test.ts  # API client unit tests with mocked fetch (URLs, parameters)
│   ├── http.test.ts        # getJson: errors, timeout, size cap, User-Agent, malformed responses
│   ├── upstream.test.ts    # Upstream cap, FIFO queue, busy error, request context, User-Agent
│   └── schemas.test.ts     # Response schemas against real-shaped fixtures (null and missing fields)
├── server/                 # MCP-layer tests: SDK Client + InMemoryTransport against createServer(), fetch mocked
│   ├── helpers.ts          # connect(), stubFetch(), jsonResponse()
│   ├── registration.test.ts      # Tool list, titles, annotations, input schemas (snapshot), instructions, call results
│   ├── input-validation.test.ts  # Invalid inputs rejected before any request
│   ├── errors.test.ts            # Upstream failures returned as isError
│   └── version.test.ts           # Reported version equals package.json
├── http/                   # HTTP mode, server started in-process (helpers.ts), fetch mocked
│   ├── config.test.ts, auth.test.ts, guards.test.ts, body.test.ts  # Settings, token check, Host/Origin, body cap
│   ├── server.test.ts      # Routes, /healthz, 401, 403, 413, 400, stateless MCP, startup line
│   ├── fidelity.test.ts    # Tools, schemas and tool output identical to the in-memory transport
│   ├── logging.test.ts, timeout.test.ts, shutdown.test.ts, upstream.test.ts  # Request log, 504, drain, cap and User-Agent
│   └── cli.test.ts         # src/index.ts spawned: stdio by default, HTTP startup and exit codes; runHttp signals
├── contract/
│   └── api.contract.test.ts  # Live Camptocamp API contract tests (npm run test:contract only)
├── docs/
│   ├── markdown.ts         # Markdown helpers (files, fenced blocks, inline code, links, GitHub heading slugs) and the docs checks
│   ├── docs.test.ts        # docs/ and README.md: links and anchors, json blocks, mcpServers (stdio or self-hosted HTTP entry), no literal bearer token, package/image names, Node version, Sources, support matrix dates, self-hosting guide commands
│   ├── inputs.test.ts      # docs:tools generator: rendered Inputs block, markers, page idempotence, all 15 schemas
│   ├── tools.test.ts       # docs/tools/: one page per registered tool, the index, Inputs blocks in sync with the schemas, no unknown tool or parameter
│   ├── clients.test.ts     # docs/clients/: Mistral Vibe Code and Gemini CLI config snippets (toml permissions, mcp_servers entry, policy rules)
│   ├── readme.test.ts      # README.md: length, sections, badges, quick start copied from getting-started, one line per tool
│   └── system-prompt.test.ts  # docs/system-prompt.md: one prompt block, its length cap and its rules
├── hooks/
│   └── guard.test.sh       # Tests for the agent guard hook (.claude/hooks/guard.sh), run on the host
└── tools/
    ├── through-schema.ts   # Test helper: parses mocked API fixtures through the zod schemas
    ├── bare-rating.ts      # Test helper: BARE_RATING, a bare "Rating:" label that must never be printed
    ├── format.test.ts      # Shared formatting helper unit tests
    ├── ratings.test.ts     # Rating label order, Labande joining and rating scales
    ├── paging.test.ts      # Shared search paging unit tests
    ├── filters.test.ts     # Shared rating and range filter checks and messages
    ├── text.test.ts        # formatUserText unit tests
    ├── concurrency.test.ts # mapWithConcurrency: order, cap, fast rejection
    ├── routes.test.ts      # Tool handler unit tests
    ├── waypoints.test.ts   # Tool handler unit tests
    ├── outings.test.ts     # Tool handler unit tests
    ├── outing-stats.test.ts # outing_stats counts (61 Innominata outings) and collectMatchingOutings paging
    ├── areas.test.ts       # Tool handler unit tests
    ├── books.test.ts       # Tool handler unit tests
    └── articles.test.ts    # Tool handler unit tests
docs/
├── README.md               # Docs index: Start here, Clients, Guides, Tool reference, support matrix (Last verified per client)
├── getting-started.md      # Prerequisites, npx and Docker commands, pre-warm, smoke test, Claude Code and mcpServers config
├── troubleshooting.md      # Startup timeout, old Node, Docker -i, Gemini trust, Claude Desktop logs, ENOENT, output limit, status
├── clients/                # One page per client: setup, tool approval, limits, Sources and a Last verified line
│   ├── claude-desktop.md
│   ├── claude-code.md
│   ├── chatgpt-desktop-and-codex.md
│   ├── mistral-vibe-code.md
│   ├── gemini-cli.md
│   └── remote-only.md      # Clients that only take remote servers, with their source and a local alternative
├── agent-sdks.md           # OpenAI Agents SDK, Mistral and google-genai over stdio, with Sources
├── self-hosting.md         # HTTP mode: token, docker run / compose / npx, Caddy, checks, logs, each client, Sources
├── using-with-llms.md      # Tool chains, a worked example, output conventions, what the server does not provide
├── system-prompt.md        # A copyable system prompt for SDK agents, and why each rule
├── development.md          # Make targets, contract tests, local image, releases, stack
└── tools/                  # Tool reference: README.md index, one <tool>.md page per tool (Inputs block generated by npm run docs:tools)
vitest.config.ts            # npm test / coverage: excludes tests/contract/ and the src/index.ts bootstrap
vitest.contract.config.ts   # npm run test:contract: only tests/contract/**/*.contract.test.ts, no coverage

Read the full file on GitHub · 263 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. 25d ago Changed · +43 lines · +2,294 tokens per session 0a6cf7333f34
  2. 26d ago Changed · +140 lines · +5,369 tokens per session 0f013e6b0e9a
  3. 2mo ago First seen · 80 lines · 645 tokens per session scan A a7efb8069c4f

Subscribe to this mod's changes

mcp-camptocamp CLAUDE.md is an instructions file published in the GitHub repository olaurendeau/mcp-camptocamp (1 stars, last pushed 5d ago), licensed MIT. It adds 8,308 tokens to every session, about $0.0332 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.

Related

Other instructions, from other repositories

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 · 9,715 tokens

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,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens