DkwtMCP: Instructions file for Claude Code

CLAUDE.md

DkwtMCP CLAUDE.md is an instructions file for Claude Code from bynoe17/DkwtMCP. It costs 2,692 tokens per session, scanned A, original, MIT.

Project instructions for DkwtMCP, a local Python MCP server that connects AI software with Garmin and Apple Health data. They define its architecture, naming rules, error handling, and current scope.

In plain words
What is it for?
Use them before adding, reviewing, or debugging Garmin and Apple Health features in the DkwtMCP repository.
Why use it?
They give an AI coding agent the domain context and non-negotiable design rules needed to change the server safely.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

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

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 DkwtMCP CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bynoe17/dkwtmcp/claude-md"><img src="https://agentmods.dev/badge/instructions/bynoe17/dkwtmcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,692 This file is loaded in full into every session.
When invoked 2,692 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.02692 $0.02692
Opus 5.5 $0.01077 $0.01077
Sonnet 5.5 $0.00538 $0.00538
Haiku 4.5 $0.00269 $0.00269

Measured 2mo ago against content hash 3863b8d55e2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

CLAUDE.md · 72 lines

How it starts

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

Instrucciones del proyecto — DkwtMCP

Contexto para cualquier sesión que trabaje en este repo. Léelo antes de tocar código.

Qué es

MCP local (stdio) en Python del equipo DkwtMCP que conecta Claude Desktop con Garmin y Apple Health, lectura + escritura. Uso personal, no un servicio alojado. Paquete Python: dkwt_mcp. Referencia conceptual: FitMCP (https://fitmcp.tech).

Strava se retiró del alcance por ahora (sus términos 2025 prohíben usar sus datos en IA). Si se reincorpora, seguir el patrón de providers.

Reglas de diseño (no negociables)

  • Framework FastMCP (mcp[cli]). La instancia vive en app.py; los providers la importan y registran tools con @mcp.tool.
  • Un tool = un workflow útil, no un envoltorio 1:1 de la API. Nombres con prefijo de plataforma: garmin_*, apple_*, más fitness_* para transversales.
  • Toda tool: modelo Pydantic v2 de entrada (extra="forbid"), annotations (readOnlyHint/destructiveHint/idempotentHint/openWorldHint), docstring con Args/Returns, y salida por common.as_output (markdown|json).
  • Errores siempre vía common.handle_api_error (mensajes accionables). Nunca except silencioso que oculte el fallo al agente.
  • I/O de red en async. garminconnect es síncrono → envolver con asyncio.to_thread.
  • Secretos solo en .env (git-ignorado). Nada de credenciales en el código.

Restricciones externas a recordar

  • Garmin usa la librería no oficial python-garminconnect (>=0.3), frágil ante cambios anti-bots de Garmin. Fijar versión; si el login falla, revisar si hay versión nueva.
    • Auth: el servidor SOLO reutiliza tokens en ~/.dkwtmcp/garmin/. El primer login (con posible 2FA) se hace con scripts/garmin_login.py. El servidor nunca pide input interactivo (colgaría stdio). Si no hay tokens, las tools devuelven un error que indica ejecutar el script.
  • Apple Health es solo lectura vía export XML → SQLite. No hay escritura en HealthKit.

Estado actual (Fase 3 Garmin escritura)

  • Esqueleto renombrado a dkwt_mcp, servidor FastMCP "DkwtMCP", arranca y registra tools según flags.
  • Garmin lectura ✅: garmin_daily_readiness, garmin_get_activities, garmin_get_activity, garmin_sleep, garmin_hrv. Probado con cuenta real (login + get_activities OK).
  • Garmin escritura ✅: garmin_schedule_workout (dry_run=True por defecto, seguridad), garmin_list_workouts, garmin_delete_workout (requiere confirm=true). Payload construido con garminconnect.workout (typed); soporta targets de power (W) y heart_rate (ppm).
  • Transversal ✅: fitness_planned_vs_actual (cruza programados vs. actividades reales por fecha, calcula adherencia). Parseo defensivo de get_scheduled_workouts (forma de respuesta a confirmar contra cuenta real).
  • Plan de fuerza semanal ✅ (puente entre proyectos): fitness_set_week_plan (escribe) + fitness_get_week_plan (lee) sobre ~/.dkwtmcp/plan/semana.json. La fuerza se organiza en OTRO proyecto de Claude ("Pirinexus Training 2026-Noe") y cambia cada semana; como los proyectos no comparten contexto, ese proyecto vuelca la semana con fitness_set_week_plan y el brief la lee. Prioridad del brief para "planificado_hoy": entrenado hoy > Garmin programado (e-bike) > plan de fuerza semanal (archivo local) > calendario fijo del perfil (ultimo recurso). Requiere que el proyecto de planificacion tenga el MCP DkwtMCP conectado (mismo servidor, mismo archivo).
  • Apple ✅ (para quien lleve Apple Watch): apple_import_export + apple_query_metric (sueño, HRV, FC reposo, pasos, energia) -> SQLite en ~/.dkwtmcp/apple/. Tambien apple_get_workouts (entrenos del Apple Watch, p.ej. fuerza, desde data.workouts). Dos formatos: export.xml/zip de la app Salud (iterparse) y Health Auto Export JSON (carpeta con .json y/o .zip, importa todo y deduplica; auto-incremental, recomendado). En Health Auto Export, Metricas y Workouts son categorias separadas: hay que exportar ambas. Detecta el formato solo. Activar con ENABLE_APPLE=true.

Read the full file on GitHub · 72 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. 2mo ago First seen · 72 lines · 2,692 tokens per session scan A 3863b8d55e2a

Subscribe to this mod's changes

DkwtMCP CLAUDE.md is an instructions file published in the GitHub repository bynoe17/DkwtMCP (0 stars, last pushed 2mo ago), licensed MIT. It adds 2,692 tokens to every session, about $0.0108 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

DkwtMCP CLAUDE.md compared with instructions from other repositories

DkwtMCP CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
DkwtMCP CLAUDE.mdbynoe17/DkwtMCPInstructions file02mo agoMITA2,692Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot