Borrowing it
Nothing to install: this file belongs to ymuichiro/yahoo-shopping-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/ymuichiro/yahoo-shopping-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/ymuichiro/yahoo-shopping-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/ymuichiro/yahoo-shopping-mcp/agents-md)<a href="https://agentmods.dev/instructions/ymuichiro/yahoo-shopping-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/ymuichiro/yahoo-shopping-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/ymuichiro/yahoo-shopping-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/ymuichiro/yahoo-shopping-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.01712 | $0.01712 |
| Opus 5.5 | $0.00685 | $0.00685 |
| Sonnet 5.5 | $0.00342 | $0.00342 |
| Haiku 4.5 | $0.00171 | $0.00171 |
Grade A, and why
yahoo-shopping-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 — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Project Summary
このリポジトリは Yahoo!ショッピング 商品検索 API v3 を安全にラップする MCP サーバーです。 主な責務は次の 3 つです。
- MCP ツール
search_productsの提供 - Yahoo API 呼び出しのレート制御とキャッシュ
- アプリケーション全体に対するグローバルレート制限
サーバー本体は FastMCP を使っています。通常のローカル起動・Docker・セルフホストは Streamable HTTP で公開し、Glama managed 用にstdio専用エントリポイントも提供します。公開 HTTP ルートは /, /healthz, /mcp のみです。/ は /healthz と同じヘルス応答を返します。
Common Commands
- 初回セットアップ:
make sync-dev - 起動:
YAHOO_SHOPPING_APP_ID=... make run - コンテナ起動:
make init-env && make up - Named Tunnel 起動:
make up-tunnel - コンテナ停止:
make down - テスト:
make test - 依存だけ同期:
make sync - ローカル状態を掃除:
make clean
デフォルトのホストとポートは 127.0.0.1:8000 です。変更したい場合は make run HOST=0.0.0.0 PORT=8080 のように上書きします。
Environment Variables
必須:
YAHOO_SHOPPING_APP_ID
主要な任意設定:
YAHOO_SHOPPING_MCP_HOSTYAHOO_SHOPPING_MCP_PORTYAHOO_SHOPPING_MCP_DATA_DIRYAHOO_SHOPPING_MCP_CACHE_TTL_SECONDSYAHOO_SHOPPING_MCP_BASE_RATE_SECONDSYAHOO_SHOPPING_MCP_GLOBAL_RATE_LIMITYAHOO_SHOPPING_MCP_GLOBAL_WINDOW_SECONDSYAHOO_SHOPPING_MCP_ALLOWED_HOSTSYAHOO_SHOPPING_MCP_ALLOWED_ORIGINSCLOUDFLARE_TUNNEL_TOKEN
Project Structure
src/yahoo_shopping_mcp/server.pyMCP サーバー生成、lifespan 管理、HTTP ルート、stdio/HTTPエントリポイント、ツール定義src/yahoo_shopping_mcp/yahoo_api.pyYahoo API 呼び出し、直列レート制御、リトライ、レスポンス整形src/yahoo_shopping_mcp/storage.pyJSON 永続化、原子的書き込み、グローバルレート制限、キャッシュsrc/yahoo_shopping_mcp/models.py入出力モデル、永続化モデルtests/test_http_routes.pyHTTP ルートと公開 MCP 呼び出しの統合テストtests/test_yahoo_api.pyYahoo ラッパーのテストDockerfile本番用コンテナイメージcompose.yamlローカル公開と Named Tunnel を含む compose 構成.env.exampleCompose 用の環境変数テンプレート
Development Guidelines
- Yahoo への実リクエストをテストで送らないこと。テストは
httpx.MockTransportでダミーレスポンスを返す。 - レート制限を変える場合は、成功系だけでなく拒否系も追加でテストする。
search_productsの入力契約を変える場合は、models.py、README、テストを同時に更新する。search_productsの返却では、商品データを MCP tool result のcontent[0].textに JSON として含めること。ChatGPT ではstructuredContent/outputSchemaだけに置いた商品データが会話本文として認識されず、metadata だけが露出することがある。content[0].textの JSON は、先頭キーresultsにid,title,url,text,metadataを持つ商品リストを置く。metadataには少なくともprice,price_text,seller_name,image_url,badgesを含める。- 商品カード UI は
ui://yahoo-shopping/product-carousel-v4.htmlの MCP Apps Resource で提供する。tool metadata は標準の_meta.ui.resourceUri、Resource はtext/html;profile=mcp-appと Yahoo 画像 CDN の最小 CSP を返す。 content[0].textの商品本文と、カルーセル用のstructuredContent.productsを併記する。tool のoutputSchemaは後者と同じ{ products: [...] }に限定する。- UI は ChatGPT が推奨する MCP Apps
ui/*bridge を使う。旧window.openaiや legacy metadata の互換経路を追加しない。 - UI Resource の HTML/JS/CSS を変更したら URI のバージョンも上げ、ChatGPT のキャッシュを確実に更新する。
- MCP Apps の bridge や
structuredContentを触ったら、MCP Inspector でui/initialize、カルーセル、商品画像、console error がないことを確認してから完了にする。 - 診断情報や上流レスポンスは MCP tool result に返さないこと。LLM/host が検索結果として読む主データは
resultsとし、詳細な診断はサーバー側だけで扱う。 - Yahoo 向け直列レート制御とアプリ全体のグローバルレート制限は別物として扱う。目的を混同しない。
- このプロジェクトは認証を使わない。認証やユーザー単位制御、UI 画面を再導入しないこと。
- 過剰なフォールバックや用途不明の抽象化を追加しないこと。公開面は
MCP + healthzに限定する。
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 · 104 lines · 1,712 tokens per session scan A de2dbec03574
yahoo-shopping-mcp AGENTS.md is an instructions file published in the GitHub repository ymuichiro/yahoo-shopping-mcp (1 stars, last pushed 3mo ago), licensed MIT. It adds 1,712 tokens to every session, about $0.0068 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-08-31.
yahoo-shopping-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| yahoo-shopping-mcp AGENTS.mdymuichiro/yahoo-shopping-mcp | Instructions file | 1 | 3mo ago | MIT | A | 1,712 | Codex, OpenCode |
| vibetags com-example-service-PricingService.instructions.mdPIsberg/vibetags | Instructions file | 25 | yesterday | MIT | A | 296 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |