tapcard-mcp: Instructions file for Codex

AGENTS.md

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

A set of project instructions for deploying TapCard MCP, a self-hosted digital business-card and private card-library service using NFC and QR codes.

In plain words
What is it for?
Use it to install dependencies, create Cloudflare D1, R2, and KV resources, configure the project, run type generation, type checks, and tests, and record recovery actions.
Why use it?
It gives an AI agent a defined deployment process, required accounts and tools, user-confirmation points, and checks that must pass before the service is accepted.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ai-cooperation/tapcard-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/ai-cooperation/tapcard-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,377 This file is loaded in full into every session.
When invoked 1,377 The same file — it is already loaded in full.
Security scan A 1 finding. 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.01377 $0.01377
Opus 5 $0.00688 $0.00688
Sonnet 5 $0.00275 $0.00275
Haiku 4.5 $0.00138 $0.00138

Measured 8d ago against content hash 9fca913e8a35, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tapcard-mcp AGENTS.md scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X PUT "<URL>/api/profile" -H "Authorization: Bearer $ADMIN_TOKEN" \
AGENTS.md · 75 lines

How it starts

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

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

你是導遊不是裁判:每一關綠燈由機械驗證判定。同一步驟失敗 3 次即停,記錄卡點。使用者確認不超過 3 次。 自主修復邊界照 spec v0.3.0 的 AGT-1/2/3:可補裝缺漏開發依賴、生成型別、對傳播期暫態重試,但每次修復必須記入報告;不得改服務邏輯、放寬驗收或跳過閘門。

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

前置

.smallgreen/profile.yamlbuild_requirements

  • node 20+、npm;CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID(Workers+D1+R2+KV Edit 權限)
  • 帳號需已啟用 R2(未啟用時建 bucket 會 error 10042,僅 dashboard 可開)
  • 閘門指令(乾淨環境須全數 exit 0,CON-8):npx wrangler typesnpm run typechecknpm test順序不可調換——typecheck 依賴 wrangler types 生成的 worker-configuration.d.ts(生成物不入庫)

步驟

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

.smallgreen/profile.yaml 向使用者說明:這是自架的 NFC/QR 電子名片+私人名片庫。公開面只有 /p/:slug(個人簡介、contact.json、vCard、QR);私人面(收到的名片、縮圖、MCP)全部需要 token。所有資料存在自己帳號的 D1/R2/KV,無第三方後端、無遙測。NFC 卡只寫入穩定網址,資料更新不必重寫卡片。

2. 組裝

git clone <本 repo> tapcard-mcp && cd tapcard-mcp
npm install

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

3. 建立 Cloudflare 資源並填 ID

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

把 D1 database_id 與 KV id 填入 wrangler.jsonc,並設定 varsPUBLIC_BASE_URL(部署後的 URL)。

4. 閘門、migration 與部署(確認 2)

npx wrangler types && npm run typecheck && npm test    # CON-8 閘門,順序固定
npx wrangler d1 migrations apply tapcard-mcp --remote  # 三個 migration:contacts/FTS/public_profiles
npx wrangler deploy
printf "%s" "<32+ 字元亂數>" | npx wrangler secret put ADMIN_TOKEN

部署後約 60 秒內可能遇到 1042 傳播期暫態(GET 已通但 POST 尚未),重試即可——這屬 AGT-1 允許的 transient-retry,記入報告即可。

5. 建立公開簡介並驗收(確認 3)

先用 ADMIN_TOKEN 建立自己的公開簡介(slug 規則:小寫英數與連字號,開頭結尾須為英數):

curl -X PUT "<URL>/api/profile" -H "Authorization: Bearer $ADMIN_TOKEN" \
  -H "Content-Type: application/json" -d '{"slug":"me","name":"你的名字","headline":"一句話簡介"}'

欄位以 src/core/profile.tsPublicProfileSchema 為準(.strict()——多送未定義欄位會 400):必填 slugname,其餘如 headlinebioorgtitleemailsphoneslinkspublic_fields 為選填。不是 display_name(A-01 run 實測:送 display_name 回 400 Invalid public profile)。

Read the full file on GitHub · 75 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. 8d ago First seen · 75 lines · 1,377 tokens per session scan A 9fca913e8a35

Subscribe to this mod's changes

tapcard-mcp AGENTS.md is an instructions file published in the GitHub repository ai-cooperation/tapcard-mcp (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 1,377 tokens to every session, about $0.0069 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

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

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

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