mcp-conf-mcp-server: Instructions file for Claude Code

CLAUDE.md

mcp-conf-mcp-server CLAUDE.md is an instructions file for Claude Code from r3-yamauchi/mcp-conf-mcp-server. It costs 1,320 tokens per session, scanned A, original, MIT.

A repository instruction file for developing and running an MCP server that manages MCP configuration files. MCP is a standard way for AI assistants to use external tools.

In plain words
What is it for?
It helps developers install dependencies, run tests and checks, start the server, and manage configuration for AWS Q Developer and Claude Desktop.
Why use it?
It records the setup, development commands, tests, and design details needed to work on the project consistently.

Instructions file for Claude Code

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

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/r3-yamauchi/mcp-conf-mcp-server/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/r3-yamauchi/mcp-conf-mcp-server

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-conf-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/r3-yamauchi/mcp-conf-mcp-server/claude-md/github.svg)](https://agentmods.dev/instructions/r3-yamauchi/mcp-conf-mcp-server/claude-md)
Your own site
<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.

agentmods 80×15 button for mcp-conf-mcp-server CLAUDE.md

Your own site · 80×15
<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>
Per session 1,320 This file is loaded in full into every session.
When invoked 1,320 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.01320 $0.01320
Opus 5 $0.00660 $0.00660
Sonnet 5 $0.00264 $0.00264
Haiku 4.5 $0.00132 $0.00132

Measured 10d ago against content hash 0a5eafe544eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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 10d 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 · 157 lines

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)

重要な設計判断

  1. パス展開の多重サポート:

    • os.path.expanduser(): Unix形式のチルダ展開(~
    • os.path.expandvars(): Windows環境変数展開(%APPDATA%等)
    • 両方を組み合わせることでクロスプラットフォーム対応
  2. アトミックなファイル操作:

    # 一時ファイルに書き込んでから置き換え
    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)
    
  3. エラーハンドリング階層:

    • 設定ファイル不在 → 空の設定を返す(非破壊的)
    • 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)))

Read the full file on GitHub · 157 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. 10d ago First seen · 157 lines · 1,320 tokens per session scan A 0a5eafe544eb

Subscribe to this mod's changes

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.0066 per session on Opus 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

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens