mcp: Instructions file for Claude Code

CLAUDE.md

mcp CLAUDE.md is an instructions file for Claude Code from leadbay/mcp. It costs 8,454 tokens per session, scanned A, original, MIT.

A set of project instructions for coding agents working in the Leadbay/mcp repository. It explains the repository's chat-based rendering approach, supported host widgets, and required structure for tool descriptions.

In plain words
What is it for?
Use it when developing or reviewing tools in that repository, especially changes to rendering, widgets, address handling, or tool-description templates.
Why use it?
It prevents agents from restoring discarded iframe interfaces or editing the project without following its established conventions and rendering limits.

Instructions file for Claude Code

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import type { Tool } from "../types.js";.

View source ↗ leadbay/mcp
Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/leadbay/mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/leadbay/mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,454 This file is loaded in full into every session.
When invoked 8,454 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.08454 $0.08454
Opus 5.5 $0.03382 $0.03382
Sonnet 5.5 $0.01691 $0.01691
Haiku 4.5 $0.00845 $0.00845

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

Security

Grade A, and why

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 14d 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 · 722 lines

How it starts

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

mcp repo — Claude conventions

Project-wide guidance for Claude (and any other agent) working in this repo. Read this before opening files; the rules below are load-bearing.

Rendering surface — chat-native markdown + host-native widgets

The Leadbay MCP server does not ship any custom widgets. We tried the MCP Apps _meta.ui.resourceUri path through 0.10.0-dev.10 — six widget packages, full Vite build pipeline, ext-apps SDK. It failed for two structural reasons:

  1. Iframes don't blend with chat. Chat hosts rendered our widgets as bright sandboxed rectangles in the dark chat thread. MCP Apps's theme variables weren't reliably injected, and even when they were, iframes can't visually flow with markdown bubbles.
  2. They short-circuited host-native rendering. When our widget auto-rendered, the LLM stopped routing to richer first-party widgets (places_map_display_v0, ask_user_input_v0, message_compose_v1) because the job felt done.

So tools render via two surfaces only:

Surface What it covers
Chat-native markdown (default) The canonical RENDERING blocks every tool description carries — markdown tables, cards, chips, headings. Inherits the chat's theme, font, link styling for free. Dark-mode-aware on every host.
Host-native widgets (when the host exposes them) Claude's three first-party widgets — places_map_display_v0 for maps, message_compose_v1 for outreach drafts, ask_user_input_v0 for NEXT STEPS / clarifications. ChatGPT exposes the same routing pattern via _meta.openai/outputTemplate.

Do not re-introduce Tool.ui bindings. The field was removed from the Tool interface in 0.10.0-dev.12. Re-adding it would resurrect the iframe-vs-chat structural problem.

MCP Apps — non-Claude surfaces only

Both failures above are Claude failures: Claude has first-party widgets for an iframe to crowd out, and a dark thread for it to clash with. Other hosts (ChatGPT, VS Code, …) have neither, so there the finished boards are served as MCP Apps views. Rules:

Read the full file on GitHub · 722 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. 14d ago Changed · +13 lines · +214 tokens per session 46e5fcb254fb
  2. 29d ago Changed · +7 lines · +130 tokens per session f0e46a75efab
  3. 1mo ago Changed · +48 lines · +711 tokens per session 3bd7b429988d
  4. 1mo ago Changed · +2 lines · +66 tokens per session d6e0348bd42a
  5. 1mo ago Changed · +32 lines · +493 tokens per session 11f6e5a67973
  6. 1mo ago Changed · +1 lines · +56 tokens per session cf66e325644c
  7. 1mo ago Changed · +7 lines · +97 tokens per session bbf4b525eda8
  8. 1mo ago Changed · +10 lines · +124 tokens per session e608a3be535d
  9. 2mo ago Changed · +4 lines · +83 tokens per session 4ccb0a7cdb87
  10. 2mo ago First seen · 598 lines · 6,480 tokens per session scan A 23daf83053e7

Subscribe to this mod's changes

mcp CLAUDE.md is an instructions file published in the GitHub repository leadbay/mcp (0 stars, last pushed 14d ago), licensed MIT. It adds 8,454 tokens to every session, about $0.0338 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

mcp CLAUDE.md compared with instructions from other repositories

mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp CLAUDE.mdleadbay/mcpInstructions file014d agoMITA8,454Claude 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 file143kyesterdayMITA7,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