AGENTS.md · neiltron/apple-health-mcp
AGENTS.md from neiltron/apple-health-mcp: 69 lines covering Project, Validate changes, Code map, Invariants and more.
Template by neiltron
Chalk Labs
Need help deploying AGENTS.md · neiltron/apple-health-mcp?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/neiltron/apple-health-mcp/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 69 lines
- File
AGENTS.md
Sections
- Project
- Validate changes
- Code map
- Invariants
- Local planning
First lines (shown under the repo's MIT license)
# Repository guidance ## Project This package is a local `stdio` MCP server that queries Simple Health Export CSV files through an in-memory DuckDB database. The public npm package and MCP Registry entry are both named in `package.json` and `server.json`. ## Validate changes Run all four checks before handing off code changes: ```bash npm run lint npm test npm run typecheck npm run build ``` Tests use Bun. The published runtime requires Node.js 22 or newer. ## Code map - `src/server.ts`: configuration, MCP tool schemas, dispatch, and stdio startup - `src/importers/`: per-format ingestion (detection and loading) behind the `FormatImporter` interface, plus the single-format registry - `src/db/`: format-agnostic catalog, lazy table loader, and DuckDB wrapper - `src/tools/`: implementations of `health_schema`, `health_query`, and `health_report` - `src/core/`: query caching, lazy-load coordination, and memory management - `server.json`: MCP Registry metadata - `docs/solutions/`: documented solutions and decisions from past work (bugs, tooling choices, patterns), organized by category with YAML frontmatter (`module`, `tags`, `problem_type`) — relevant when working in documented areas - `CONCEPTS.md`: shared domain vocabulary (entities, named processes, status concepts) — relevant when orienting to the codebase or discussing domain terms See `docs/architecture.md` for the runtime flow and `docs/querying.md` for the normalized data model. ## Invariants - Never write logs or diagnostics to stdout while the MCP transport is active; stdout is reserved for protocol messages. - Preserve the `health_query` query checks. The supported statements and restricted functions are listed in `docs/architecture.md` under "Query safeguards". Check queries before loading, cache lookup, or execution. Keep supported statements and rejected operations covered by tests. - Do not call the query checks a security boundary or an OS sandbox. Untrusted SQL requires process or OS isolation. - Keep DuckDB file, external-access, configuration-lock, memory, and no-spill settings enabled. `allowed_directories` permits reads and writes inside `HEALTH_DATA_DIR`. - Preserve lazy loading unless a deliberate architecture change replaces it. - Category labels such as sleep stages live in `valueText`; their numeric `value` is `NULL`. - Derive sleep and workout duration from `startDate` and `endDate`; exported duration fields are not consistent across formats. - Workout exports may be one combined file or separate files per activity. - Never commit personal health exports, databases, logs, or local paths. - Keep versions synchronized across `package.json`, `server.json` (server and package versions), and the MCP implementation version in `src/server.ts`. ## Local planning `ROADMAP.md` is a local, intentionally uncommitted working plan excluded through `.git/info/exclude`. Do not add it to commits unless the maintainer explicitly changes that policy.
Signals
- Stars
- 575
- Forks
- 24
- Open issues
- 2
- Contributors
- 1
- Last commit (this folder)
- Sep 20, 2026 (1 month ago)
- Last release
- Sep 20, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/neiltron/apple-health-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from neiltron
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · neiltron/apple-health-mcp running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · neiltron/apple-health-mcp. Agent Mart. https://agentmart.dev/templates/neiltron-apple-health-mcp-agents-md (last updated 2026-10-24)