Borrowing it
Nothing to install: this file belongs to yuppie1949/yuppie-mcp-tts. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/yuppie1949/yuppie-mcp-tts/main/CLAUDE.mdgit clone --depth 1 https://github.com/yuppie1949/yuppie-mcp-ttsWrote 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.
[](https://agentmods.dev/instructions/yuppie1949/yuppie-mcp-tts/claude-md)<a href="https://agentmods.dev/instructions/yuppie1949/yuppie-mcp-tts/claude-md"><img src="https://agentmods.dev/badge/instructions/yuppie1949/yuppie-mcp-tts/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.
<a href="https://agentmods.dev/instructions/yuppie1949/yuppie-mcp-tts/claude-md"><img src="https://agentmods.dev/badge/instructions/yuppie1949/yuppie-mcp-tts/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00751 | $0.00751 |
| Opus 5.5 | $0.00300 | $0.00300 |
| Sonnet 5.5 | $0.00150 | $0.00150 |
| Haiku 4.5 | $0.00075 | $0.00075 |
Grade A, and why
yuppie-mcp-tts 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.
What it actually says
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with this repository.
项目概述
yuppie-mcp-tts 是一个 MCP (Model Context Protocol) Server,基于 edge-tts(微软 Edge 免费 TTS 引擎)提供文字转语音能力。无需 API Key。
开发命令
# 安装开发依赖
uv pip install -e ".[dev]"
# 运行测试
uv run pytest -v
# 代码检查
ruff check src/
ruff format --check src/
# 类型检查
mypy src/
# 本地运行 MCP Server(stdio 模式)
uv run yuppie-mcp-tts
架构设计
双包结构(workspace)
本仓库拆分为「纯库包 + MCP 壳包」双包结构,均发 PyPI:
packages/yuppie-tts(库包,PyPI 名yuppie-tts):核心 TTS 合成逻辑,无 MCP / pydantic 依赖src/yuppie_tts/synth.py:synthesize()(edge-tts 合成返回 MP3 bytes)、AVAILABLE_VOICES、DEFAULT_VOICE、_rate_str
packages/yuppie-mcp-tts(壳包,PyPI 名yuppie-mcp-tts):MCP Server,依赖库包src/yuppie_mcp_tts/server.py:唯一 import mcp 的文件,注册所有工具src/yuppie_mcp_tts/tools/tts.py:PydanticBaseModel(str_strip_whitespace+extra="forbid")+async def实现 + markdown 输出 + try/except 友好错误,核心合成调库包
核心模块
server.py(壳包): MCP Server 入口,MCPServer 注册所有工具tools/tts.py(壳包): TTS 工具实现,Pydantic 输入模型 + markdown 输出,调yuppie_tts.synthesizesynth.py(库包): edge-tts 原生异步合成,无需asyncio.to_thread()
传输模式
默认 stdio(MCP 主流用法)。main() 根据 MCP_TRANSPORT 环境变量切换:streamable-http 时通过 run() 的 host/port 参数启动(默认 127.0.0.1:8000)。
代码规范
- 使用
ruff(line-length = 100)和mypy(strict = true) - 异步函数
async def - 所有工具参数通过 Pydantic BaseModel 校验
- 工具返回 markdown 字符串;失败时返回
❌ ...失败:{异常}
API 参考
text_to_speech(text, voice, speed)— 文字转语音返回 base64 MP3list_voices()— 列出所有可用嗓音(50+)text_to_speech_file(text, output_path, voice, speed)— 文字转语音保存到文件
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.
- 2mo ago First seen · 63 lines · 751 tokens per session scan A 84c19853a035
yuppie-mcp-tts CLAUDE.md is an instructions file published in the GitHub repository yuppie1949/yuppie-mcp-tts (0 stars, last pushed 2mo ago), licensed MIT. It adds 751 tokens to every session, about $0.0030 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.
yuppie-mcp-tts CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| yuppie-mcp-tts CLAUDE.mdyuppie1949/yuppie-mcp-tts | Instructions file | 0 | 2mo ago | MIT | A | 751 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 8,130 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | today | MIT | A | 4,680 | Codex, OpenCode |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 283k | today | MIT | A | 4,342 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,153 | GitHub Copilot |