Borrowing it
Nothing to install: this file belongs to r3-yamauchi/mcp-conf-mcp-server. 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/r3-yamauchi/mcp-conf-mcp-server/main/CLAUDE.mdgit clone --depth 1 https://github.com/r3-yamauchi/mcp-conf-mcp-serverWrote 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/r3-yamauchi/mcp-conf-mcp-server/claude-md)<a href="https://agentmods.dev/instructions/r3-yamauchi/mcp-conf-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/r3-yamauchi/mcp-conf-mcp-server/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/r3-yamauchi/mcp-conf-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/r3-yamauchi/mcp-conf-mcp-server/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.01320 | $0.01320 |
| Opus 5.5 | $0.00528 | $0.00528 |
| Sonnet 5.5 | $0.00264 | $0.00264 |
| Haiku 4.5 | $0.00132 | $0.00132 |
Grade A, and why
mcp-conf-mcp-server 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.
How it starts
The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
このファイルは、このリポジトリでコードを扱う際にClaude Code(claude.ai/code)にガイダンスを提供します。
開発コマンド
環境セットアップ
# 仮想環境を作成
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# 開発モードでインストール
pip install -e ".[dev]"
テスト実行
# すべてのテストを実行
pytest
# 詳細な出力でテストを実行
pytest -v
# 特定のテストファイルを実行
pytest tests/test_server.py
pytest tests/test_edge_cases.py
# 特定のテストを実行
pytest tests/test_server.py::test_list_servers
# カバレッジ付きでテスト実行
pytest --cov=src --cov-report=html
コード品質チェック
# コードフォーマット
ruff format .
# リント
ruff check .
ruff check . --fix # 自動修正可能な問題を修正
# 型チェック
mypy src --strict
サーバー実行
# MCPサーバーを起動
mcp-conf-mcp-server
# カスタム設定ファイルパスを指定して起動
MCP_CONFIG_PATH=/path/to/custom/mcp.json mcp-conf-mcp-server
# Windows環境変数での起動
MCP_CONFIG_PATH=%APPDATA%\Claude\claude_desktop_config.json mcp-conf-mcp-server
アーキテクチャ概要
このプロジェクトは、AWS Q DeveloperとClaude DesktopのMCP設定ファイルを管理するMCPサーバーです。
コアアーキテクチャ
設定ファイル (JSON) ← → MCPサーバー (FastMCP) ← → クライアント (AWS Q/Claude Desktop)
↓ ↓
バックアップ ツール定義
(list/add/update/remove)
重要な設計判断
-
パス展開の多重サポート:
os.path.expanduser(): Unix形式のチルダ展開(~)os.path.expandvars(): Windows環境変数展開(%APPDATA%等)- 両方を組み合わせることでクロスプラットフォーム対応
-
アトミックなファイル操作:
# 一時ファイルに書き込んでから置き換え temp_path = CONFIG_PATH.with_suffix(".tmp") with open(temp_path, "w") as f: json.dump(config.model_dump(exclude_none=True), f, indent=2) temp_path.replace(CONFIG_PATH) -
エラーハンドリング階層:
- 設定ファイル不在 → 空の設定を返す(非破壊的)
- JSONパースエラー → 空の設定を返す(既存設定を保護)
- バックアップ失敗 → ログ記録して処理継続
ツールの相互作用
add_server: 重複チェック → 失敗時はupdate_serverを推奨update_server: 環境変数のマージ/置換オプションremove_server: 削除前に自動バックアップvalidate_config: 設定の構造的妥当性を検証
重要な実装詳細
環境変数の処理(server.py:27-36)
config_path_env = os.environ.get("MCP_CONFIG_PATH", str(DEFAULT_CONFIG_PATH))
CONFIG_PATH = Path(os.path.expandvars(os.path.expanduser(config_path_env)))
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 · 157 lines · 1,320 tokens per session scan A 0a5eafe544eb
mcp-conf-mcp-server CLAUDE.md is an instructions file published in the GitHub repository r3-yamauchi/mcp-conf-mcp-server (0 stars, last pushed 1y ago), licensed MIT. It adds 1,320 tokens to every session, about $0.0053 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.
mcp-conf-mcp-server CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-conf-mcp-server CLAUDE.mdr3-yamauchi/mcp-conf-mcp-server | Instructions file | 0 | 1y ago | MIT | A | 1,320 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |