garmin-mcp-gateway: Instructions file for Claude Code

CLAUDE.md

garmin-mcp-gateway CLAUDE.md is an instructions file for Claude Code from VelkyVenik/garmin-mcp-gateway. It costs 1,876 tokens per session, scanned A, original, MIT.

A Claude Code instruction file for a protected gateway that connects multiple users' Garmin accounts to Claude through an MCP server. It explains the architecture, required development commands, tests, monitoring scripts, and operating constraints.

In plain words
What is it for?
Use it when developing, testing, deploying, monitoring, revoking access to, or checking the health and usage of the Garmin MCP gateway.
Why use it?
It records the system's account, authentication, token-storage, and subprocess rules so changes follow the intended design and setup works correctly.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/velkyvenik/garmin-mcp-gateway/claude-md"><img src="https://agentmods.dev/badge/instructions/velkyvenik/garmin-mcp-gateway/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,876 This file is loaded in full into every session.
When invoked 1,876 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.01876 $0.01876
Opus 5 $0.00938 $0.00938
Sonnet 5 $0.00375 $0.00375
Haiku 4.5 $0.00188 $0.00188

Measured 11d ago against content hash 4fc683723e6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

garmin-mcp-gateway 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 11d 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 · 77 lines

How it starts

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

What this is

A multi-user, OAuth 2.1–protected remote MCP gateway that lets a small trusted circle each connect their own Garmin account to Claude (mobile/desktop/web). It wraps the unmodified garmin_mcp worker (github.com/Taxuspt/garmin_mcp): the gateway terminates OAuth, performs the Garmin login, stores per-account encrypted tokens, and for each account spawns + reverse-proxies to a per-user garmin-mcp subprocess.

The canonical design and the task-by-task implementation plan live in docs/superpowers/specs/ and docs/superpowers/plans/ — read them for rationale and the full data flow. Operator-facing docs (env-var reference, monitoring, deploy checklist) live in README.md; operational scripts (status, monitor, revoke, usage, health) live in scripts/ and are documented in README → Monitoring.

Commands

# Tests — the `--extra dev` is REQUIRED: pytest lives in [project.optional-dependencies].dev,
# so plain `uv run pytest` fails with "no module named pytest".
uv run --extra dev pytest -q                          # full suite
uv run --extra dev pytest tests/test_oauth.py -v      # one file
uv run --extra dev pytest tests/test_oauth.py::test_metadata_shape -v   # one test

# Run the gateway locally (no Garmin needed to exercise the OAuth surface).
# DATA_DIR defaults to /data (not writable locally) — point it somewhere writable.
# GATEWAY_SECRET must be >=32 chars AND must not start with "change-me" (startup guard).
# To exercise the full /mcp path locally, also set GARMIN_MCP_CMD (garmin-mcp isn't on
# PATH): GARMIN_MCP_CMD="uvx --python 3.12 --from git+https://github.com/Taxuspt/garmin_mcp garmin-mcp"
GATEWAY_SECRET="$(openssl rand -base64 48)" PUBLIC_URL=http://localhost:8088 PORT=8088 \
  DATA_DIR=./.localdata uv run garmin-gateway

# Full deployment (installs the pinned garmin-mcp worker, spawns per-user workers).
cp .env.example .env   # set a real GATEWAY_SECRET, PUBLIC_URL, and pin GARMIN_MCP_REF to a commit SHA
docker compose up -d --build

Read the full file on GitHub · 77 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. 11d ago First seen · 77 lines · 1,876 tokens per session scan A 4fc683723e6d

Subscribe to this mod's changes

garmin-mcp-gateway CLAUDE.md is an instructions file published in the GitHub repository VelkyVenik/garmin-mcp-gateway (1 stars, last pushed 22d ago), licensed MIT. It adds 1,876 tokens to every session, about $0.0094 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