textbee-mcp: Instructions file for Claude Code

CLAUDE.md

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

A set of Claude Code instructions for the textbee-mcp project, an MCP server that sends and reads SMS through a textbee.dev account. It documents project rules, commands, and the architecture of the source files.

In plain words
What is it for?
Use it when modifying textbee-mcp so agents follow its project conventions and avoid exposing API keys, phone numbers, or message contents.
Why use it?
It gives coding agents consistent rules for security, naming, errors, logging, and the supported SMS API routes.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/textbee/textbee-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/textbee/textbee-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 728 This file is loaded in full into every session.
When invoked 728 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.00728 $0.00728
Opus 5.5 $0.00291 $0.00291
Sonnet 5.5 $0.00146 $0.00146
Haiku 4.5 $0.00073 $0.00073

Measured 2mo ago against content hash 9b61532986f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

textbee-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 2mo 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 · 58 lines

How it starts

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

CLAUDE.md

Project instructions for Claude when working in the textbee-mcp repo.

What this is

@textbee/mcp: a stdio MCP server that lets Claude Desktop, Claude Code, Cursor, and any MCP client send and read SMS through a textbee.dev account. A thin wrapper over @textbee/sdk; the SDK is the only HTTP client, there is no code generation.

Hard rules

  • NEVER use em dashes or en dashes anywhere: code, comments, docs, commit messages.
  • Branding is lowercase "textbee" / "textbee.dev"; PascalCase identifiers use Textbee.
  • Acronyms are words in identifiers: sendSms, never sendSMS.
  • stdout is the MCP JSON-RPC channel. No console.log in src/; diagnostics go to stderr via stderrLogger.
  • Never log, echo, or embed API key values, phone numbers, or message bodies in errors.
  • Nothing throws across the MCP boundary: every handler returns isError: true with an actionable message via errorResult.
  • Never expose or document the deprecated device-scoped routes (send or history). Agent-facing surfaces show only account-level POST /gateway/send-sms and GET /gateway/messages.
  • The library entry (src/index.ts) must stay side-effect free: no process globals, no transport, no fetch patching. Only src/bin.ts touches process.
  • Tool handlers never close over a process-global API key; credentials come from the per-call CredentialResolver.

Commands

  • pnpm build compiles to dist/.
  • pnpm test runs vitest (capped at 2 workers).
  • pnpm run typecheck checks src and tests.
  • pnpm run check:hygiene enforces the dash, casing, and console.log rules.
  • pnpm inspect lists the tools through the MCP Inspector CLI.

Architecture (one bullet per src file)

  • bin.ts stdio bootstrap: loads env config, installs the fetch timeout, connects.
  • index.ts library entry, re-exports only.
  • tools.ts the 3 tool definitions, descriptions, zod shapes, and the McpServer factory.
  • config.ts env parsing, normalizeBaseUrl, VERSION, stderr logger.
  • credentials.ts static (stdio) and authInfo-extra (remote host) credential resolvers.
  • errors.ts the single error-to-text mapper, including the two distinct 429s.
  • format.ts message and device rendering; messageDirection is the only place that reads a message's direction.
  • dedupe.ts cross-request duplicate-send store for HTTP hosts.
  • fetch-timeout.ts opt-in process-wide fetch timeout, entrypoints only.

Read the full file on GitHub · 58 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. 2mo ago First seen · 58 lines · 728 tokens per session scan A 9b61532986f7

Subscribe to this mod's changes

textbee-mcp CLAUDE.md is an instructions file published in the GitHub repository textbee/textbee-mcp (1 stars, last pushed yesterday), licensed MIT. It adds 728 tokens to every session, about $0.0029 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

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

textbee-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
textbee-mcp CLAUDE.mdtextbee/textbee-mcpInstructions file1yesterdayMITA728Claude 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