fab-card-db-mcp: Instructions file for Codex

AGENTS.md

fab-card-db-mcp AGENTS.md is an instructions file for Codex, OpenCode from japan4415/fab-card-db-mcp. It costs 1,735 tokens per session, scanned A, original, MIT.

A set of project instructions for working on fab-card-db-mcp, a server that gives AI agents tools through the Model Context Protocol. It documents the project’s setup, structure, coding rules, and Cloudflare deployment practices.

In plain words
What is it for?
Setting up the Node.js and Yarn environment, adding or modifying MCP tools, validating inputs, regenerating Cloudflare Worker types, and configuring deployment variables safely.
Why use it?
It helps coding agents make changes that fit the repository’s existing conventions and avoids mistakes such as using the wrong package manager or storing secrets in code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is japan4415/fab-card-db-mcp's own configuration. It tells Codex and OpenCode how to work on fab-card-db-mcp 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 fab-card-db-mcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/japan4415/fab-card-db-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/japan4415/fab-card-db-mcp

Made for: Codex, OpenCode.

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 fab-card-db-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/japan4415/fab-card-db-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/japan4415/fab-card-db-mcp/agents-md)
Your own site
<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.

agentmods 80×15 button for fab-card-db-mcp AGENTS.md

Your own site · 80×15
<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>
Per session 1,735 This file is loaded in full into every session.
When invoked 1,735 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.01735 $0.01735
Opus 5 $0.00868 $0.00868
Sonnet 5 $0.00347 $0.00347
Haiku 4.5 $0.00173 $0.00173

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

Security

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 11d 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.

AGENTS.md · 63 lines

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 には必ず目的と影響範囲を明確に記述し、検証コマンドの結果を添えます。

開発環境のセットアップ

  1. Node.js 20 以上を使用し、corepack enable で Yarn 4 を有効にします。
  2. 依存関係は yarn install でインストールしてください(npm や pnpm は使用しません)。
  3. Wrangler は yarn devyarn deploy のように Yarn 経由で実行します。
  4. Worker の型は yarn cf-typegen で再生成できます。 worker-configuration.d.ts はこのコマンドで更新してください。
  5. Cloudflare のシークレットや環境変数は Wrangler の secret/vars 機能を利用し、リポジトリに平文で保存しないでください。

実装指針

プロジェクト構造

  • エントリーポイントは src/index.ts です。createMcpHandler()agents/mcp/server)を使ったステートレス構成で MCP サーバーのツールを公開します。Durable Object は使用していません。
  • MCP SDK は @modelcontextprotocol/server(v2.0.0)を使用し、ツールは registerTool() API で登録します。各ツールには titleoutputSchemastructuredContent を定義してください。
  • 入力バリデーションには zod(v4)を使用します。
  • 型定義は worker-configuration.d.tssrc/index.ts のインターフェースが中心です。API から取得するデータ構造を変更したら型も更新しましょう。

コーディングスタイル

  • フォーマッタとリンターは Biome を使用します。biome.json に従い、インデント幅 4、最大行長 100 を守ってください。
  • TypeScript の型は可能な限り厳格に保ち、any の使用は必要最小限にとどめます。既存の CardCardDetail に収まらない場合は新しい型を追加してください。
  • ツール入力・出力の検証には zod(v4)を利用し、必須・任意フィールドを明示します。ツール追加時は inputSchemaoutputSchema の両方を定義してください。
  • HTTP リクエストには axios を利用し、必要なヘッダーやタイムアウトを適切に設定してください。
  • ログは pino を用いた構造化ログで出力します。toolaction などのメタ情報を含め、エラー時は error プロパティで詳細を残してください。
  • 外部データの取得は CardVault JSON API を使用します。HTML スクレイピング(cheerio)は廃止されました。

設計上の注意

  • 新しい MCP ツールを追加する際は、registerTool() API を使い、titledescriptioninputSchemaoutputSchema を既存のパターンにならって定義してください。ハンドラの戻り値には content(テキストフォールバック)と structuredContent(構造化データ)の両方を含めてください。
  • API の変更に伴いレスポンス構造が変わる場合は、影響を受けるツールをすべて確認し、互換性を維持できない場合は README に破壊的変更を記載します。
  • ネットワークエラーや外部 API の失敗は例外として投げる前にログへ記録し、ユーザーには理解しやすいメッセージを返してください。

Read the full file on GitHub · 63 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. 11d ago First seen · 63 lines · 1,735 tokens per session scan A 07522b82b5c5

Subscribe to this mod's changes

fab-card-db-mcp AGENTS.md is an instructions file published in the GitHub repository japan4415/fab-card-db-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 1,735 tokens to every session, about $0.0087 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-09-01.

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,126 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