mcp: Instructions file for Claude Code

CLAUDE.md

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

A set of project instructions for building a local MCP server, a program that lets an AI client call tools through a standard connection.

In plain words
What is it for?
Use it when developing the @rendobar/mcp server, especially its logging, tool registration, dependency versions, and error responses.
Why use it?
It prevents protocol output from being corrupted and defines rules for handling SDK type errors and tool failures.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is rendobar/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 →

Reuse

Borrowing it

Nothing to install: this file belongs to rendobar/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/rendobar/mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/rendobar/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/rendobar/mcp/claude-md/github.svg)](https://agentmods.dev/instructions/rendobar/mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/rendobar/mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/rendobar/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/rendobar/mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/rendobar/mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 950 This file is loaded in full into every session.
When invoked 950 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.00950 $0.00950
Opus 5.5 $0.00380 $0.00380
Sonnet 5.5 $0.00190 $0.00190
Haiku 4.5 $0.00095 $0.00095

Measured 1mo ago against content hash 00e78c28d165, 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 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 · 96 lines

How it starts

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

@rendobar/mcp

Local stdio MCP server. Single ESM bundle. ~6 tools. Public, MIT.

CRITICAL RULES

1. NEVER write to stdout

stdout is reserved for JSON-RPC framing. Any byte kills the connection.

  • console.log, process.stdout.write, print — banned.
  • Pipe subprocess stdout to stderr or /dev/null.
  • The boot-time global console.* patch redirects to stderr (see src/logger.ts). Don't disable it.

--help and --version are the ONLY commands that write to stdout. Both exit before the MCP transport is wired.

2. NEVER silence Zod-version overload errors with as any

@modelcontextprotocol/sdk 1.x uses zod/v4 internally. Two Zod copies break registerTool overloads. Fix: pnpm why zod shows one version. pnpm.overrides.zod pinned. Don't reach for as any.

3. Use registerTool, not .tool() shorthand

The legacy shorthand is removed in v2-alpha of the SDK. registerTool is the only one in v2.

4. Tool errors via isError: true, not throws

Recoverable failures (bad credits, rate limit, not found) → { isError: true, content: [...] }. Programmer bugs → throw, surface in stderr as -32603 InternalError.

The withErrorMapping wrapper in src/errors.ts handles this. Use it for every tool.

5. Cold-start budget < 2 s

CI asserts time node dist/bin.js --version < 2000ms. No network calls at module load. Lazy SDK init in tools, not at boot.

6. Bundle budget < 100 KB

CI asserts dist/bin.js < 100KB. If pino blows the budget, swap to the 30-line custom logger.

Build & test

pnpm install
pnpm typecheck
pnpm lint
pnpm test
pnpm build
pnpm inspector   # interactive MCP testing

Layout

src/
├── bin.ts          # entry: parse args, init logger + sdk, connect StdioServerTransport
├── server.ts       # createRendobarMcpServer factory
├── config.ts       # parseConfig: --flag → env → creds.json → fail
├── context.ts      # RendobarContext type
├── logger.ts       # JSON to stderr
├── errors.ts       # withErrorMapping using ApiError from @rendobar/sdk
├── paths.ts        # resolveSafe (realpath + roots check)
├── instructions.ts # SERVER_INSTRUCTIONS string
├── version.ts      # built-time injected
└── tools/
    ├── index.ts    # registerTools(server, ctx)
    ├── util.ts     # defineTool helper
    ├── uploads.ts  # upload_file
    ├── jobs.ts     # submit_job, get_job, list_jobs, cancel_job
    ├── account.ts  # get_account
    └── storage.ts  # list_storage, list_storage_files

Read the full file on GitHub · 96 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 Changed · +1 lines · +15 tokens per session 00e78c28d165
  2. 2mo ago First seen · 95 lines · 935 tokens per session scan A 805aabebb519

Subscribe to this mod's changes

mcp CLAUDE.md is an instructions file published in the GitHub repository rendobar/mcp (1 stars, last pushed yesterday), licensed MIT. It adds 950 tokens to every session, about $0.0038 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.mdrendobar/mcpInstructions file1yesterdayMITA950Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode