Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/mink16/xserver-mcp/claude-mdgit clone --depth 1 https://github.com/Mink16/xserver-mcpWrote 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/mink16/xserver-mcp/claude-md)<a href="https://agentmods.dev/instructions/mink16/xserver-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/mink16/xserver-mcp/claude-md.svg" alt="Measured on agentmods" 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 | $0.02449 | $0.02449 |
| Opus 5 | $0.01224 | $0.01224 |
| Sonnet 5 | $0.00490 | $0.00490 |
| Haiku 4.5 | $0.00245 | $0.00245 |
Grade A, and why
xserver-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 4d 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 — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
xserver-mcp
Xserver 公式の サーバーパネル REST API (https://api.xserver.ne.jp) をラップする MCP サーバー。
運用ルール (.claude/rules/)
リポジトリ運用の詳細ルールは .claude/rules/ 以下に分割している。各ファイルは CLAUDE.md と同様にセッション開始時のコンテキストへ読み込まれる。
tdd-workflow.md— TDD 必須ポリシーとエージェント (tdd-developer/test-writer/implementer/reviewer) の使い分け基準。src//tests/のコード変更は原則これらに委譲する。github-flow.md— ブランチ命名・マージ戦略・禁止事項。commit-messages.md— Conventional Commits の type/scope と本プロジェクトの既定フッタ。pull-requests.md— PR テンプレート・セルフレビュー観点・マージ条件。セルフレビューは read-only のreviewerエージェント (.claude/agents/reviewer.md) に委譲し、IDN 正規化・runApi・registry 登録・破壊的操作ガードなどの固有観点を Blocker/Major/Minor/Nit の verdict で機械的に受け取るのが既定運用。
Xserver API の癖
- 日本語ドメイン (IDN) は MCP が自動変換: 全ツールの
domain入力とmail_addressの domain 部はsrc/tools/domain.tsのtoPunycodeDomain/normalizeMailAddressで ASCII (Punycode) に正規化してから XServer に送る。ユーザーや上位エージェントは日本.jp/user@日本.jpをそのまま渡してよい。書き込み系ツールのレスポンスにはresolved_domain(およびresolved_mail_address) が含まれ、実際に送信された ASCII 値を確認できる。DNS レコードのhost/contentはラベル・任意文字列なので変換しない。 - 公式エラーレスポンス形式: XServer は
{ "error": { "code", "message", "errors": [...] } }を返す。src/client/errors.tsのerrorFromResponseがこれをパースし、旧{ "message": "..." }形式にもフォールバック対応する。抽出されたcode/errors[]はXserverApiError.code/XserverApiError.errorsに格納され、ツール応答のcode/detail.errorsとして LLM に届く。 - HTTP ステータス → エラークラス / code 正規化: マッピングの真の情報源は
src/client/errors.tsのSTATUS_TO_CODE/STATUS_CLASS。TXT 認証失敗など 409 の特別扱いが必要な場合はerr instanceof XserverOperationErrorで判定する (createMailAccountWithVerification.ts参照)。それ以外のステータス分岐はerr.codeで行うこと (派生クラスを増やさない)。 - レート制限ヘッダ:
httpClientはレスポンスからX-RateLimit-Limit/-Remaining/-Reset/-Concurrent-Limit/-Concurrent-RemainingとRetry-Afterを抽出 (src/client/rateLimit.ts)。429 発生時はXserverRateLimitError.rateLimitと.retryAfterSecondsに格納され、ツール応答のdetail.rate_limit/detail.retry_after_secondsとして LLM に届く。成功時のヘッダは破棄している (MVP)。 - 429 の自動リトライ:
httpClientは 429 のうち「Retry-AfterがXSERVER_HTTP_RETRY_MAX_WAIT_SEC以下」かつ「X-RateLimit-Concurrent-Remaining !== 0」のケースのみ、XSERVER_HTTP_RETRY_MAX_ATTEMPTS回まで自動待機 & 再送する。同時接続由来の 429 は他の in-flight が捌けるまで解消しないのでリトライ対象外。それ以外の status はリトライせず LLM に即返す。無効化はXSERVER_HTTP_RETRY_MAX_ATTEMPTS=1。 - 同時接続セマフォ:
createHttpClientはconfig.concurrency(既定 3) の軽量セマフォでfetchを直列化する。XServer プラン別上限 (スタンダード 5 / プレミアム 10 / ビジネス 20) に対して保守的に振る舞う。無効化したい場合はXSERVER_HTTP_CONCURRENCY=100などで十分大きな値を与える。 - 422 バリデーション:
err.errors[]に詳細メッセージが配列で入る。ツール出力ではdetail.errorsとして LLM に渡す。 - 204 No Content: DELETE などで返る場合あり。
httpClientはnullを返す。 mail_addressの URL エンコード:@を含むため必ずencodeMailAccount(=encodeURIComponent) を通すこと (IDN 正規化後に適用)。- ドメイン所有権確認 (TXT):
POST /mailは毎回_xserver-verify.{domain}TXT レコードで所有権検証を行う。サーバーパネル経由で作成済みのドメインは TXT 未登録のことが多く、初回 API 作成は409 OPERATION_ERROR「TXTレコードによるドメイン認証に失敗しました。」になる。create_mail_account_with_verificationはこれを内部で吸収する (API 内部リゾルバへの TXT 反映は 30–90 秒遅延)。
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.
- 4d ago First seen · 71 lines · 2,449 tokens per session scan A 3da2aad48a3a
xserver-mcp CLAUDE.md is an instructions file published in the GitHub repository Mink16/xserver-mcp (0 stars, last pushed 2mo ago), licensed MIT. It adds 2,449 tokens to every session, about $0.0122 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.
Other instructions, from other repositories
mcp-pihole AGENTS.md
Instructions for aplaceforallmystuff/mcp-pihole, covering agents.md - mcp-pihole, tech stack, architecture, environment variables and development.
adguardctrl AGENTS.md
Instructions for lidless-labs/adguardctrl, covering repository guidance, definition of done, project shape, hard prohibitions and safety rules: tier gates.
websupport-mcp CLAUDE.md
Claude Code instructions for tydung26/websupport-mcp, covering claude.md, source of truth, context, golden rules and working style.
pmtechdev-mcp-plugins AGENTS.md
AGENTS.md instructions for pooyanmajd/pmtechdev-mcp-plugins, covering pmtechdev mcp workspace guidance, structure, safety invariants and changes.
mcp-pihole CLAUDE.md
Instructions for aplaceforallmystuff/mcp-pihole, a project described as: MCP server for Pi-hole v6 API - control DNS blocking from Claude Code.
mcp-pihole GEMINI.md
Instructions for aplaceforallmystuff/mcp-pihole, a project described as: MCP server for Pi-hole v6 API - control DNS blocking from Claude Code.