mcp-ts-core: Instructions file for Claude Code

CLAUDE.md

mcp-ts-core CLAUDE.md is an instructions file for Claude Code from cyanheads/mcp-ts-core. It costs 20,079 tokens per session, scanned A, a copy of mcp-ts-core AGENTS.md, Apache-2.0.

A developer guide for @cyanheads/mcp-ts-core, a TypeScript package for creating MCP servers.

In plain words
What is it for?
Use it when developing the package or creating a new server from its templates, especially when deciding whether a change affects existing users or only newly generated projects.
Why use it?
It explains the package’s supported runtimes, dependencies, public API, templates, and import conventions before changes are made.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 mcp-ts-core CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cyanheads/mcp-ts-core/claude-md"><img src="https://agentmods.dev/badge/instructions/cyanheads/mcp-ts-core/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20,079 This file is loaded in full into every session.
When invoked 20,079 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 100% copy Near-identical to another mod 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.20079 $0.20079
Opus 5.5 $0.08032 $0.08032
Sonnet 5.5 $0.04016 $0.04016
Haiku 4.5 $0.02008 $0.02008

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

Security

Grade A, and why

mcp-ts-core 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 3d 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.

Origin

This is a copy

100% identical to mcp-ts-core AGENTS.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 679 lines

How it starts

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

Developer Protocol

Package: @cyanheads/mcp-ts-core Version: 0.13.26 Engines: Bun ≥1.4.4, Node ≥24.0.0 MCP SDK: @modelcontextprotocol/server ^2.4.0 (protocol revisions 2026-07-28 and 2025-*) Zod: ^4.6.7 GitHub: cyanheads/mcp-ts-core npm: @cyanheads/mcp-ts-core Docker: ghcr.io/cyanheads/mcp-ts-core

Developer note: Never assume. Read related files and docs before making changes. Read full file content for context. Never try to edit a file before reading it.


Consumers

This package serves two consumer paths. When making changes, know which audience your change affects:

Path On-ramp Affected by changes to
Direct package import — existing project pulls in the package bun add @cyanheads/mcp-ts-core → import { createApp, tool, z } from '@cyanheads/mcp-ts-core' Public API surface (src/) — existing consumers feel changes immediately on upgrade
Init-scaffolded server — fresh project bootstrapped from this repo's templates bunx @cyanheads/mcp-ts-core init [name] copies templates/ into the new directory templates/ — only affects newly scaffolded servers, not existing ones

Both paths share the same public API. Init copies starter package.json, configs (tsconfig, biome.json, vitest.config.ts, devcheck.config.json, bunfig.toml), .env.example, Dockerfile, LICENSE, .gitattributes, CLAUDE.md/AGENTS.md, .github/ (issue forms, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, workflows/codeql.yml), example definitions and tests, framework scripts/, and external-audience framework-skills/. _-prefixed files (e.g. _.gitignore) drop the prefix on copy. Existing files are never overwritten; init without a name scaffolds in place (upgrade flow). After init, consult the setup skill.


Core Rules

Read the full file on GitHub · 679 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. 3d ago Changed · +13 tokens per session a1c0f02d70f8
  2. 4d ago Changed · +3 lines · +603 tokens per session 3fb6c987637e
  3. 8d ago Changed · +242 tokens per session 35907f8bdb78
  4. 9d ago Changed · -2 tokens per session 0eae36269c42
  5. 27d ago Changed · +652 tokens per session 20a19131e474
  6. 28d ago Changed · +4 lines · +852 tokens per session b183bd0aa80d
  7. 1mo ago Changed · +246 tokens per session 75b8d4fb55ea
  8. 1mo ago Changed · +7 lines · +673 tokens per session f32a50d94acc
  9. 1mo ago Changed · +1 lines · +192 tokens per session 297db115270c
  10. 1mo ago First seen · 664 lines · 16,608 tokens per session scan A 4d79cd72e9bb

Subscribe to this mod's changes

mcp-ts-core CLAUDE.md is an instructions file published in the GitHub repository cyanheads/mcp-ts-core (154 stars, last pushed 3d ago), licensed Apache-2.0. It adds 20,079 tokens to every session, about $0.0803 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to mcp-ts-core AGENTS.md, differing in 0 lines, and is treated as a copy.

Related

mcp-ts-core CLAUDE.md compared with instructions from other repositories

mcp-ts-core CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-ts-core CLAUDE.mdcyanheads/mcp-ts-coreInstructions file1543d agoApache-2.0A20,079Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291ktodayMITA4,396Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot