better-mcp: Instructions file for Claude Code

CLAUDE.md

better-mcp CLAUDE.md is an instructions file for Claude Code from qelos-io/better-mcp. It costs 821 tokens per session, scanned A, original, MIT.

A repository-specific instruction file for Claude Code in the qelos-io/better-mcp project.

In plain words
What is it for?
Use it when working on better-mcp and needing its rules for tests, builds, or CLAUDE.md files.
Why use it?
It gives the coding agent the project's expected testing, build, and documentation conventions.

Instructions file for Claude Code

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

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/qelos-io/better-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/qelos-io/better-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 821 This file is loaded in full into every session.
When invoked 821 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.00821 $0.00821
Opus 5.5 $0.00328 $0.00328
Sonnet 5.5 $0.00164 $0.00164
Haiku 4.5 $0.00082 $0.00082

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

Security

Grade A, and why

better-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 17d 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 · 86 lines

How it starts

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

CLAUDE.md

Project-specific guidance for Claude Code working in this repo.

Testing

Always add unit tests for new behavior. Any time you add a new function, exported helper, or non-trivial code path, ship a test for it in the same PR. Pure wiring (one-line pass-throughs that TypeScript already validates) is the only exception — and even then prefer extracting a small testable helper.

If something is hard to test, that's a signal to refactor — extract the pure core (like buildListedTools in src/services/proxy.service.ts) so the test can call it directly without spinning up an MCP server, Express app, or child process.

Test convention

Tests live next to the source they cover, in a tests/ subfolder:

src/lib/slim.ts                  →  src/lib/tests/slim.test.ts
src/middleware/compact.middleware.ts → src/middleware/tests/compact.middleware.test.ts
src/services/proxy.service.ts    →  src/services/tests/proxy.service.test.ts

One .test.ts file per source file. When you add a new source file, create its tests/ sibling and write the test there. Tests are TypeScript, run directly from src/ via Node's built-in test runner + tsx loader — no compile step needed for tests.

Pattern to follow (see src/lib/tests/slim.test.ts):

import { test } from "node:test";
import assert from "node:assert/strict";
import { thing } from "../thing.js";   // .js extension is the project import convention

test("describes the behavior", () => {
  assert.equal(thing(1), 2);
});

test("async case", async () => {
  assert.equal(await thing.async(1), 2);
});

Running tests

npm test            # node --import tsx --test 'src/**/*.test.ts'
npm run test:build  # build first, then test (catches type errors too)

The test script globs every *.test.ts under src/; you don't need to register individual test files anywhere. Tests are excluded from tsc build (see tsconfig.json exclude), so they never land in dist/ and never ship in the npm package.

Read the full file on GitHub · 86 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. 17d ago Changed · +9 lines · +132 tokens per session 49620334fac0
  2. 2mo ago First seen · 77 lines · 689 tokens per session scan A 329c1dd93845

Subscribe to this mod's changes

better-mcp CLAUDE.md is an instructions file published in the GitHub repository qelos-io/better-mcp (3 stars, last pushed 11d ago), licensed MIT. It adds 821 tokens to every session, about $0.0033 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

better-mcp CLAUDE.md compared with instructions from other repositories

better-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
better-mcp CLAUDE.mdqelos-io/better-mcpInstructions file311d agoMITA821Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file281ktodayMITA4,335Codex, OpenCode