atimelogger-mcp: Instructions file for Claude Code

CLAUDE.md

atimelogger-mcp CLAUDE.md is an instructions file for Claude Code from zaplitny/atimelogger-mcp. It costs 2,241 tokens per session, scanned A, original, MIT.

Repository instructions for building and using an MCP server that connects coding agents to ATimeLogger, a time-tracking service. The server is a TypeScript API client with tools for recording activities and viewing time reports.

In plain words
What is it for?
Use it to install, build, run, test, configure, and inspect the ATimeLogger MCP server, including starting or stopping activities, logging time, updating entries, and retrieving reports.
Why use it?
It provides the project-specific commands, structure, testing approach, and setup steps needed to work on or manually test the server.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zaplitny/atimelogger-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/zaplitny/atimelogger-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,241 This file is loaded in full into every session.
When invoked 2,241 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.02241 $0.02241
Opus 5 $0.01120 $0.01120
Sonnet 5 $0.00448 $0.00448
Haiku 4.5 $0.00224 $0.00224

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

Security

Grade A, and why

atimelogger-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 10d 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 · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 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 when working with code in this repository.

Project Overview

atimelogger-mcp — a standalone MCP (Model Context Protocol) server, TypeScript over stdio, that wraps the ATimeLogger REST API for use from Claude Desktop / Claude Code. It exposes 10 tools: get_current_status, list_activity_types, start_activity, stop_activity, pause_resume_activity, log_interval, update_activity, time_report, list_intervals, app_help.

The backend is a separate, private Spring Boot app; this repo never modifies it — it is a pure API client.

Commands

npm install
npm run build        # tsc → dist/
npm run dev          # run from source via tsx
npm run setup        # paste a Personal Access Token, verify it, print the `claude mcp add` command
npm test             # builds, then node --test over test/ — mock-backed, no network or token

# Manual tool testing:
ATL_BASE_URL=... ATL_TOKEN=... npx @modelcontextprotocol/inspector node dist/index.js

Node 20+, ESM, zero runtime deps beyond @modelcontextprotocol/sdk and zod.

Architecture

  • src/index.ts — entry: McpServer + StdioServerTransport, registers tool groups; declares server-level instructions (project overview + cross-tool conventions) surfaced to the LLM at initialize
  • src/config.ts — env (all parsing lives here). readEnvConfig() is the pure parse: throws on a botched setup, never writes to stderr, never exits — the library path needs both. loadConfig() wraps it with the executable-facing UX (warn, exit) and memoizes. Vars: ATL_BASE_URL (default https://app.atimelogger.pro, i.e. production), ATL_DOCS_URL (default https://atimelogger.pro/docs/), ATL_TOKEN (optional: absent → docs-only mode, stderr warning at startup and only app_help works — API tools throw setup instructions from client.ts; set-but-empty or stray unrecognized ATL_* vars → fail fast, that's a botched config, not docs-only intent; warns if the token isn't an atl_pat_ token)
  • src/client.tscreateApi({token, baseUrl?, fetch?}) builds a client from explicit credentials (no env access); bearer auth, error normalization (401 → regenerate-PAT guidance, transport failure → NetworkError with cause). The exported api is a lazily-built env-driven default that, in docs-only mode, refuses every call with the setup guidance instead of sending a token-less request.
  • src/types-cache.ts/api/types cached 60s; fuzzy type-name resolution (exact → substring; ambiguity/no-match → helpful errors). Groups excluded as start/log targets, allowed in report filters.
  • src/timezone.ts — default tz from /api/users/me, per-call override
  • src/periods.ts — period words (todaylast_30_days) → date ranges; DST-correct wall-clock↔UTC conversion; Monday-start weeks; zero-dep (Intl)
  • src/format.ts — duration formatting ("2h 15m"), compact() null-stripping
  • src/errors.tswithErrors() wrapper: tool handlers never throw, return isError
  • src/tools/{types,activities,reports}.ts — tool definitions (zod schemas) plus the transport-independent operations behind them (currentStatus, listTypes, timeReport, listIntervals, startActivity, stopActivity, pauseResumeActivity, logInterval, updateActivity), each taking an optional trailing Ctx. MCP-only presentation (token-saving compact(), LLM-oriented prose) lives in per-file *ForMcp mappers, so library and CLI consumers get stable typed shapes while tool output is unchanged.
  • src/tools/docs.tsapp_help: fetches the official docs site (config docsUrl, unauthenticated, separate host from the API). No args → TOC from help-index.json (slug/title/summary per page plus a platform note, hand-maintained in the atimelogger-docs repo alongside the markdown sources, which the docs deploy copies into site/); topics → fetches <slug>.md pages (fuzzy slug/title match, deduped), strips <figure> blocks and &#x20;. Non-JSON/shape-invalid manifest → the same "docs unavailable" guidance as network errors. Cached 1h with stale-on-error fallback. Not part of the library entry — it is account-independent and reads env at import.
  • src/ttl-cache.ts — shared ttlCache/ttlCacheBy helpers (single-value and keyed), opt-in staleOnError. Used by docs.ts, and by createTypesCache/createTimezone, which build one cache instance per client so accounts stay isolated. staleOnError is on for timezone (a failed refresh must not clobber a resolved zone) and deliberately off for types (auth/API errors must surface).
  • src/core.ts — public library entry (createClient, clientFromEnv, createApi); src/context.tsCtx bundling api + per-client caches, with a lazily-built env-driven default so importing the package never reads env or exits
  • test/node --test suite over a mock backend (test/helpers.mjs builds a Ctx from a route map); includes end-to-end runs of both binaries
  • scripts/setup.ts — prompts for a pasted PAT, verifies it against /api/users/me, prints the ready claude mcp add command

Read the full file on GitHub · 62 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. 10d ago First seen · 62 lines · 2,241 tokens per session scan A 9aa0ed2ab87e

Subscribe to this mod's changes

atimelogger-mcp CLAUDE.md is an instructions file published in the GitHub repository zaplitny/atimelogger-mcp (13 stars, last pushed 20d ago), licensed MIT. It adds 2,241 tokens to every session, about $0.0112 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-30.

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

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

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