business-card-mcp: Instructions file for Codex

AGENTS.md

business-card-mcp AGENTS.md is an instructions file for Codex, OpenCode from ai-cooperation/business-card-mcp. It costs 1,386 tokens per session, scanned A, original, Apache-2.0.

Instructions for deploying a business-card management service that uses Cloudflare’s web and data services. It guides an AI assistant through setup, account checks, resource creation, authentication, and deployment.

In plain words
What is it for?
Preparing a repository, creating Cloudflare D1, R2, and KV resources, configuring Gmail one-time-password login, filling deployment settings, and recording setup problems.
Why use it?
It gives a controlled sequence for configuring the service while explaining where business-card and contact data is stored and how login works.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to ai-cooperation/business-card-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/ai-cooperation/business-card-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ai-cooperation/business-card-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 business-card-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ai-cooperation/business-card-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/ai-cooperation/business-card-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ai-cooperation/business-card-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/ai-cooperation/business-card-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 business-card-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ai-cooperation/business-card-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/ai-cooperation/business-card-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,386 This file is loaded in full into every session.
When invoked 1,386 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.01386 $0.01386
Opus 5 $0.00693 $0.00693
Sonnet 5 $0.00277 $0.00277
Haiku 4.5 $0.00139 $0.00139

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

Security

Grade A, and why

business-card-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 · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — Business Card MCP 部署引導(跨 CLI)

你是導遊不是裁判:每一關綠燈由機械驗證判定。同一步驟失敗 3 次即停,記錄卡點。使用者確認不超過 3 次。

本專案為 SmallGreen Path A(原生採用):契約三檔與本引導隨程式碼同 repo,無 adapter 層。

前置

  • Node.js 20+、npm;CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID(Workers+D1+R2+KV Edit 權限)
  • 帳號需已啟用 R2(未啟用會在建 bucket 時 error 10042,僅 dashboard 可開)
  • 網頁登入使用 Gmail OTP;不使用 Google OAuth 或 Cloudflare Zero Trust。Email Service 寄件網域需由 Cloudflare DNS 管理;寄送到帳號內 verified destination 可維持免費方案,任意收件者則依 Cloudflare Email Service 方案判定。

步驟

1. 說明與同意(確認 1)

.smallgreen/profile.yaml 向使用者說明:名片與聯絡人資料存在自己帳號的 D1(結構化欄位與 markdown)、R2(私人縮圖)、KV(MCP key);網頁 UI 用 allowlist 內的 Gmail OTP 登入,OTP challenge 與 session digest 存在自己的 D1;Turnstile 只作防濫用驗證,Email Service binding 只寄送驗證碼;名片辨識由 ChatGPT/Claude 端的視覺模型完成,本服務不呼叫任何模型 API。原始名片圖片不進 Worker,也不寫入 R2;Worker 只接收、驗證並保存模型端產生的 480px WebP 縮圖。

2. 組裝

git clone <本 repo> business-card-mcp && cd business-card-mcp
npm install
cp public/config.example.js public/config.js   # 認證不需前端設定

wrangler.jsonc 已隨 repo 提供零值佔位版(SmallGreen SAP-1 需要可靜態判定的資源宣告);下一步把真實 ID 填進去。填完建議 git update-index --skip-worktree wrangler.jsonc,避免真實 ID 被 commit。

3. 建立 Cloudflare 資源並填 ID

npx wrangler d1 create business-card-mcp
npx wrangler r2 bucket create business-card-mcp-assets
npx wrangler kv namespace create CARD_KEYS

把回傳的 D1 database_id、KV id 填入 wrangler.jsonc,並設定 varsPUBLIC_BASE_URLOTP_FROM_EMAILTURNSTILE_SITE_KEYTURNSTILE_EXPECTED_HOSTNAME。先在 Email Service onboard 寄件網域,並確認 OTP 收件 Gmail 是 verified destination(或已啟用 Workers Paid)。接著設定 secrets:

npx wrangler secret put ALLOWED_GMAILS
npx wrangler secret put OTP_PEPPER
npx wrangler secret put TURNSTILE_SECRET_KEY

填完驗證設定可解析:

npx wrangler types && npm run typecheck

4. Migration、測試與部署(確認 2)

npm test
npx wrangler d1 migrations apply business-card-mcp --remote
npx wrangler deploy

5. 驗收(確認 3)

.smallgreen/acceptance.yaml

  1. GET /healthz → 200
  2. 以 allowlist 內的 Gmail 完成 Turnstile 與 OTP 登入後產生一把 MCP key,複製 Connector URL(URL 內含 key,視同密碼
  3. 用該 key 呼叫 POST /mcp 建立一筆已確認名片(請求格式見 tests/fixtures/mcp-create-contact.valid.json
  4. npx wrangler d1 execute business-card-mcp --remote --command "SELECT COUNT(*) FROM contacts" → 該筆已寫入
  5. 以姓名搜尋回得該筆;未登入直接開詳情頁應被擋(資料層 401,非頁面狀態碼)

Read the full file on GitHub · 86 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 · 86 lines · 1,386 tokens per session scan A 9787cc82ff0f

Subscribe to this mod's changes

business-card-mcp AGENTS.md is an instructions file published in the GitHub repository ai-cooperation/business-card-mcp (0 stars, last pushed 14d ago), licensed Apache-2.0. It adds 1,386 tokens to every session, about $0.0069 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