Borrowing it
Nothing to install: this file belongs to japan4415/fab-card-db-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.
curl -O https://raw.githubusercontent.com/japan4415/fab-card-db-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/japan4415/fab-card-db-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/japan4415/fab-card-db-mcp/agents-md)<a href="https://agentmods.dev/instructions/japan4415/fab-card-db-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/japan4415/fab-card-db-mcp/agents-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/japan4415/fab-card-db-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/japan4415/fab-card-db-mcp/agents-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.01735 | $0.01735 |
| Opus 5.5 | $0.00694 | $0.00694 |
| Sonnet 5.5 | $0.00347 | $0.00347 |
| Haiku 4.5 | $0.00173 | $0.00173 |
Grade A, and why
fab-card-db-mcp AGENTS.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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
fab-card-db-mcp 向けエージェントガイドライン
この文書について
- このリポジトリで作業するエージェントが共通の手順と期待事項を共有するためのガイドラインです。
- より狭い範囲に固有のルールが必要な場合は、該当ディレクトリに追加の
AGENTS.mdを配置してください(そこに記載された内容が優先されます)。 CLAUDE.mdが存在する場合は内容を突き合わせ、矛盾がないか確認してください。整合性が取れない場合は差異を明記しましょう。
適用範囲と基本方針
- この文書はリポジトリ全体に適用されます。新しいファイルを編集・追加する前に、ディレクトリ階層をさかのぼって他の
AGENTS.mdがないか確認してください。 - 機能追加やバグ修正は最小限の変更に絞り、不要なフォーマット変更や依存関係更新を同時に行わないでください。
- コミットや PR には必ず目的と影響範囲を明確に記述し、検証コマンドの結果を添えます。
開発環境のセットアップ
- Node.js 20 以上を使用し、
corepack enableで Yarn 4 を有効にします。 - 依存関係は
yarn installでインストールしてください(npm や pnpm は使用しません)。 - Wrangler は
yarn devやyarn deployのように Yarn 経由で実行します。 - Worker の型は
yarn cf-typegenで再生成できます。worker-configuration.d.tsはこのコマンドで更新してください。 - Cloudflare のシークレットや環境変数は Wrangler の
secret/vars機能を利用し、リポジトリに平文で保存しないでください。
実装指針
プロジェクト構造
- エントリーポイントは
src/index.tsです。createMcpHandler()(agents/mcp/server)を使ったステートレス構成で MCP サーバーのツールを公開します。Durable Object は使用していません。 - MCP SDK は
@modelcontextprotocol/server(v2.0.0)を使用し、ツールはregisterTool()API で登録します。各ツールにはtitle、outputSchema、structuredContentを定義してください。 - 入力バリデーションには
zod(v4)を使用します。 - 型定義は
worker-configuration.d.tsとsrc/index.tsのインターフェースが中心です。API から取得するデータ構造を変更したら型も更新しましょう。
コーディングスタイル
- フォーマッタとリンターは Biome を使用します。
biome.jsonに従い、インデント幅 4、最大行長 100 を守ってください。 - TypeScript の型は可能な限り厳格に保ち、
anyの使用は必要最小限にとどめます。既存のCardやCardDetailに収まらない場合は新しい型を追加してください。 - ツール入力・出力の検証には
zod(v4)を利用し、必須・任意フィールドを明示します。ツール追加時はinputSchemaとoutputSchemaの両方を定義してください。 - HTTP リクエストには
axiosを利用し、必要なヘッダーやタイムアウトを適切に設定してください。 - ログは
pinoを用いた構造化ログで出力します。toolやactionなどのメタ情報を含め、エラー時はerrorプロパティで詳細を残してください。 - 外部データの取得は CardVault JSON API を使用します。HTML スクレイピング(
cheerio)は廃止されました。
設計上の注意
- 新しい MCP ツールを追加する際は、
registerTool()API を使い、title・description・inputSchema・outputSchemaを既存のパターンにならって定義してください。ハンドラの戻り値にはcontent(テキストフォールバック)とstructuredContent(構造化データ)の両方を含めてください。 - API の変更に伴いレスポンス構造が変わる場合は、影響を受けるツールをすべて確認し、互換性を維持できない場合は README に破壊的変更を記載します。
- ネットワークエラーや外部 API の失敗は例外として投げる前にログへ記録し、ユーザーには理解しやすいメッセージを返してください。
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 · 1,735 tokens per session scan A 07522b82b5c5
fab-card-db-mcp AGENTS.md is an instructions file published in the GitHub repository japan4415/fab-card-db-mcp (0 stars, last pushed 13d ago), licensed MIT. It adds 1,735 tokens to every session, about $0.0069 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-09-01.
fab-card-db-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fab-card-db-mcp AGENTS.mdjapan4415/fab-card-db-mcp | Instructions file | 0 | 13d ago | MIT | A | 1,735 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | 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 |