hevy-mcp: Instructions file for Claude Code

CLAUDE.md

hevy-mcp CLAUDE.md is an instructions file for Claude Code from rwestergren/hevy-mcp. It costs 947 tokens per session, scanned A, original, from a forked repository, MIT.

A set of Claude Code instructions for hevy-mcp, an MCP server that lets AI assistants work with the Hevy fitness-tracking API. It covers workouts, routines, exercises, folders, webhooks, commands, code checks, and tests.

In plain words
What is it for?
Use it when developing or testing hevy-mcp, generating its API client, or working with its Hevy API integration.
Why use it?
It tells the coding agent how this repository is organised and how to build, check, generate, and test its code.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rwestergren/hevy-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/rwestergren/hevy-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 947 This file is loaded in full into every session.
When invoked 947 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 fork From a forked repository.
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.00947 $0.00947
Opus 5.5 $0.00379 $0.00379
Sonnet 5.5 $0.00189 $0.00189
Haiku 4.5 $0.00095 $0.00095

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

Security

Grade A, and why

hevy-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 1mo 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 · 109 lines

How it starts

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

This is a Model Context Protocol (MCP) server for the Hevy fitness tracking API. It provides tools for AI assistants to interact with workouts, routines, exercise templates, folders, and webhook subscriptions through the Hevy API.

Key Commands

Development

  • npm run dev - Start development server with hot reloading
  • npm run build - Build the project for production
  • npm start - Run the built project

Code Quality

  • npm run check - Run oxlint linter and oxfmt formatter (auto-fixes issues)
  • npm run check:types - TypeScript type checking without emitting files
  • npm test - Runs Vitest against all *.test.ts files (including tests/integration/**). Integration tests will fail by design without HEVY_API_KEY. See the "Testing" section in README.md for CI requirements and secret configuration.

API Client Generation

  • npm run export-specs - Export OpenAPI specification
  • npm run build:client - Generate API client using Kubb from OpenAPI spec

Testing Variants

  • npx vitest run --exclude tests/integration/** - Unit tests only
  • npx vitest run tests/integration - Integration tests only (requires HEVY_API_KEY)
  • npx vitest run --coverage - Tests with coverage report

Architecture

Core Structure

  • Entry Point: src/index.ts - MCP server setup and tool registration
  • Tools: src/tools/ - MCP tool implementations organized by domain:
    • workouts.ts - Workout CRUD operations
    • routines.ts - Routine management
    • templates.ts - Exercise template access
    • folders.ts - Routine folder organization
    • webhooks.ts - Webhook subscription management
  • Utils: src/utils/ - Shared utilities for HTTP client, formatting, and error handling
  • Generated Code: src/generated/ - Auto-generated API client from OpenAPI spec

Client Architecture

The project uses a generated API client via Kubb that creates:

Read the full file on GitHub · 109 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. 1mo ago First seen · 109 lines · 947 tokens per session scan A 2d310bd08d93

Subscribe to this mod's changes

hevy-mcp CLAUDE.md is an instructions file published in the GitHub repository rwestergren/hevy-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 947 tokens to every session, about $0.0038 per session on Opus 5.5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other instructions, from other repositories