• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialdevelopment

mp-review

プラグイン
mercadopago
ライセンス
Apache-2.0
ソース
GitHub で見る ↗
説明

Mercado Pago(決済サービス)の統合内容を、地域別の包括的なセキュリティ確認表と公式のMCP品質ツールを使ってレビュー(検証・審査)します。統合の実装後、または /mp-review コマンドが実行されたときに使用できます。

原文を表示

Review a Mercado Pago integration with a local cross-cutting security checklist and official MCP quality tools on demand. Use after the integration is in place, or when /mp-review is invoked.

ユースケース
  • Mercado Pago統合のセキュリティを確認したいとき
  • /mp-reviewコマンドが実行されたとき
  • 統合の実装後に検証・審査するとき
  • 地域別の包括的なセキュリティ確認表を使って検証するとき
本文(日本語訳)

mp-review

このスキルは、Mercado Pagoの統合状況を監査します。セキュリティの基本要件は現地で評価され、MCP対応のスコープ(範囲)がそのステップに到達した場合のみ、公式品質基準がリアルタイムで取得されます。


ステップ0 — MCP対応の審査ステップ以外は接続しない

レビュー開始時にMCPの状態を調査してはいけません。統合状況を確認し、要求されたローカルチェックをすべて先に実行してください。

審査項目 MCP必須? 使用ツール
セキュリティの基本要件(scope=security) いいえ —
コード発見・レガシー検出 いいえ —
公式品質チェックリスト はい quality_checklist
支払いレベル品質評価 はい quality_evaluation
認可申請フォーム取得・提出 はい form_homologation

MCP対応の操作の直前:

  1. 呼び出し可能な場合は、目的のツールを直接試してください。接続をテストする目的だけで application_list を呼び出してはいけません。
  2. 利用不可またはAuthentication(認証)エラーが返った場合は、mcp__plugin_mercadopago_mcp__authenticate を呼び出し、OAuth(認可)リンクを開発者の言語で表示してください。
  3. Mac では Cmd+Click、Windows/Linux では Ctrl+Click で開くよう開発者に指示してください。URLを外部ブラウザーにコピーペーストさせてはいけません。
  4. 開発者が戻ってきたら、目的のツールを直接再試行してください。コールバックURLを要求してはいけません。
  5. 認証失敗が2回続いた場合は、完了したローカルチェックで続行し、MCP対応セクションを「未検証」と標記してください。

ステップ1 — 統合状況を確認する

Grep/Glob を使用して以下を探してください:

  • mercadopago をインポートするファイル(任意のSDK)
  • MP_ACCESS_TOKEN または APP_USR- / TEST- の固定文字列参照
  • エンドポイントパターン:/v1/payments、/checkout/preferences、/v1/orders、payment.create、preference.create、order.create、preapproval.create、disbursement
  • Webhook(通知受け取り)ハンドラー(パスが webhook、notification、ipn に該当するもの)

以下を特定してください:

  • 使用しているAPI:Payments API(/v1/payments)vs Orders API(/v1/orders)。両方共存することもあります。
    • 統合がレガシー Instore API を使用している場合、レガシーパスにあります。実装レポートに必ず「要注意」項目を追加してファイル:行数を示し、このマイグレーションコマンドを提案してください:「/mp-integrate migrate を実行して、Orders API への自動マイグレーション行う」。これをブロッカーとは扱わない(既存コードはまだ動作)ですが、今後対応が必要な技術的負債として標記してください。フラグを立てるべきレガシーInstoreパターン:
      • /mpmobile/instore/qr(QR Instore)
      • /instore/qr/seller/collectors(QR Instore V2)
      • /instore/orders/qr/seller/collectors(QR Dinámico)
      • /point/integration-api/devices/{id}/payment-intents(Point)
    • 統合が /v1/payments を使用している場合(オンライン):Checkout API / Marketplace のサーバー側カード決済の場合は、技術的負債として標記してください。オンライン向け /mp-integrate migrate は提案しないでください(これらの製品のマイグレーションはこのプラグインの対象外)。
    • 例外1:Checkout Pro は従来通り preferences のままです(Orders API は Checkout Pro には存在しません)。/checkout/preferences をレガシーとして標記してはいけません。
    • 例外2:Bricks は /v1/payments を正しく使用しています(CardPayment トークン化後のサーバー側)。CardPayment または onSubmit を含むファイル内の /v1/payments 呼び出しをレガシーとして標記してはいけません。
  • 使用している製品:Checkout Pro/API、Bricks、Subscriptions(自動更新)、Marketplace(マーケットプレイス)など — エンドポイントパターンとリクエストペイロードから特定してください。

ステップ2 — 公式品質チェックリストを実行する

scope=security の場合はこのステップをスキップしてください。公式品質基準を含む他のスコープについては、以下の呼び出しの直前にステップ0を実行してください。

mcp__plugin_mercadopago_mcp__quality_checklist を呼び出します。応答では以下が定義されます:

  • 必須フィールド — Mercado Pago の品質基準を満たすために実装する必要があります。
  • ベストプラクティス — 推奨される改善事項。

返されたすべての項目について(要約や省略をせず):

  1. Grep/Read でコードベースを検索し、項目の証拠を探してください(フィールド、ヘッダー、動作など)。
  2. 各項目を 実装済み、未実装、部分的 と標記し、1行の根拠を添えてください(評価を証明するファイル/行数)。

ステップ3 — 横断的なセキュリティチェックリスト

これらの項目は必ずしも quality_checklist に含まれませんが、本番環境での統合には必須です。常に評価してください:

# 確認項目 検証方法
1 アクセストークンが process.env / 同等物に含まれている — 絶対に固定値でない .env* とテストフィクスチャの外で APP_USR- / TEST- をGrep
2 .env が .gitignore に含まれている、.env.example は含まれていない .gitignore を読み取り
3 Webhookハンドラーが x-signature(HMAC-SHA256)を検証している mp-webhooks スキルを参照 — x-signature、x-request-id、createHmac をGrep
4 back_url と notification_url に HTTPS が強制されている URL 構築時の http:// をGrep
5 リダイレクト後、支払いステータスがサーバー側で検証されている back_url の後に /v1/payments/{id} または /v1/orders/{id} のサーバー側フェッチを探す
6 支払い/注文作成時、べき等性キーが送信されている X-Idempotency-Key または SDK 同等物をGrep
7 すべての preferences/orders に external_reference が設定されている external_reference をGrep
8 テストユーザー認証情報が本番環境デプロイに含まれていない テスト認証情報が別の環境ファイルまたはシークレット管理システムから読み込まれることを確認
9 sandbox_init_point がどこでも使用されていない sandbox_init_point をGrep — マッチしたものはバグとして標記してください。Mercado Pago にはサンドボックス(試験環境)がなく、このURL はすべての環境で無効です

ステップ4 — quality_evaluation を実行する(互換性がある場合)

mcp__plugin_mercadopago_mcp__quality_evaluation には実際の payment_id(支払いID)が必要です。統合が Payments API を使用して payment_id を生成した場合に実行してください。

開発者が payment_id を提供した後のみ、この呼び出しの直前にステップ0を実行してください。

統合が使用している アクション
Payments API(/v1/payments) 開発者に最近のテスト payment_id を要求し、mcp__plugin_mercadopago_mcp__quality_evaluation をそれと一緒に呼び出してください。
Orders API のみ スキップ — 互換性がありません。レポートに記載してください。
mcp__plugin_mercadopago_mcp__quality_evaluation(
  payment_id="<recent_test_payment_id>"
)

開発者が payment_id を持っていない場合は、スキップしレポートに記載してください:「quality_evaluation: スキップ — payment_id が提供されていません。」


ステップ4.5 — 認可申請フォーム(本番環境前の最終ステップ)

quality_evaluation の後(またはスキップされた場合)、開発者に認可申請フォームを提供してください:

「本番環境の認証情報に切り替える前に、公式の認可申請チェックリストを完了してください。これによって統合が認証され、本番環境での利用が有効化されます。」

  1. 開発者が同意した場合、mcp__plugin_mercadopago_mcp__form_homologation を呼び出す直前にステップ0を実行し、action="get_form"、product_id(検出された製品から)、site_id(検出された国から)、lang、is_ca(Checkout API / Bricks の場合は true)を指定してください。
  2. AskUserQuestion を使用して各ステップ/質問を開発者に提示してください。回答を収集してください。
  3. すべての質問に答えられたら、action="submit" を指定して収集した form_values を添えて呼び出してください。
  4. 成功時:開発者を祝福し、統合が認証されたことを確認してください。

開発者がスキップした場合:実装レポートの「要注意」に記載してください:「認可申請フォーム未提出 — 本番環境デプロイ前に必須。」


ステップ5 — 実装レポートを出力する(必須の最終ステップ)

ステップ1~4が完了したら、必ず実装レポートを出力の最後のブロックとしてレンダリングしてください。これは開発者が保持する成果物です — 完了したこと、保留中のこと、次のアクション を要約します。スキップしないでください。また、文章要約に簡略化してはいけません。以下の構造化ブロックをそのままレンダリングしてください。

レポートは開発者の次のセッションのための情報源です。確認済みの内容、標記された問題、次の具体的なアクション を正確に伝えます。なければ、レビューが未完了に見え、開発者は本番環境へのデプロイが可能かどうか判断できません。


出力形式

## Mercado Pago統合レビュー

**スコープ**:{フル | セキュリティ | webhook | チェックアウト | QR | サブスクリプション | マーケットプレイス | 品質}
**検出されたAPI**:{Payments API | Orders API | 両方}
**検出された製品**:{リスト}
**分析済みファイル**:{リスト}

### 重大な問題
- {本番環境をブロック または 認証情報を公開する問題}

### 警告
- {インシデントを引き起こす可能性があるが、リリースをブロックしない問題}

### 合格
- {正しく実装されている項目}

### 品質基準

{`quality_checklist` が実行された場合:以下にすべての公式項目をレンダリング。要求されていない場合は `このスコープでは要求されていません。` と記載。認証失敗時は `未検証 — MCP接続が利用不可。` と記載。行を作成したり、スコアを作ったりしないでください。}

#### 必須フィールド
| # | フィールド | 説明 | ステータス | 証拠 |
|---|--------|-------|-----------|-----|
| 1 | … | … | 実装済み / 未実装 / 部分的 | パス:行 |

#### ベストプラクティス
| # | プラクティス | 説明 | ステータス | 証拠 |
|---|----------|-------|-----------|-----|
| 1 | … | … | 実装済み / 未実装 / 部分的 | パス:行 |

### セキュリティチェックリスト(横断的)
| # | 確認項目 | ステータス | 証拠 |
|---|--------|----------|-----|

### 推奨事項
- {実行可能で、影響度でソート}

**概要**:{検証された場合は X/Y 必須フィールド実装、Z/W ベストプラクティス採用;それ以外は `公式品質:要求なし/未検証`}。{S}/9 セキュリティチェック合格。

{`quality_evaluation` は、MCP対応の
原文(English)を表示

mp-review

This skill audits a Mercado Pago integration. The security floor is evaluated locally. Official quality criteria are pulled live only when an MCP-backed scope reaches that step.


Step 0 — Connect only for the MCP-backed review step

Do not inspect MCP state when the review starts. Discover the integration and run all requested local checks first.

Review operation MCP required? Tool
Security floor (scope=security) No —
Code discovery and legacy detection No —
Official quality checklist Yes quality_checklist
Payment-level quality evaluation Yes quality_evaluation
Get or submit homologation form Yes form_homologation

Immediately before an MCP-backed operation:

  1. Attempt the intended tool directly if callable. Never call application_list merely to test the connection.
  2. If it is unavailable or returns an authentication error, call mcp__plugin_mercadopago_mcp__authenticate and show the OAuth link in the developer's language.
  3. Instruct the developer to Cmd+Click (Mac) or Ctrl+Click (Windows/Linux), without copying the URL into an external browser.
  4. When the developer returns, retry the intended tool directly. Never request the callback URL.
  5. After two authentication failures, continue with completed local checks and mark the MCP-backed section as not verified.

Step 1 — Discover the integration

Use Grep/Glob to find:

  • Files importing mercadopago (any SDK).
  • References to MP_ACCESS_TOKEN or hardcoded APP_USR- / TEST- strings.
  • Endpoint patterns: /v1/payments, /checkout/preferences, /v1/orders, payment.create, preference.create, order.create, preapproval.create, disbursement.
  • Webhook handlers (paths matching webhook, notification, ipn).

Determine:

  • API in use: Payments API (/v1/payments) vs Orders API (/v1/orders). Both can coexist.
    • If the integration uses legacy Instore APIs, it is on the legacy path. Always include a Needs attention item in the Implementation Report with the file:line, and suggest the migration command: "Run /mp-integrate migrate to automate the migration to the Orders API." Do not treat it as a Blocker (existing code still works), but flag it as forward-looking technical debt. Legacy Instore patterns to flag:
      • /mpmobile/instore/qr (QR Instore)
      • /instore/qr/seller/collectors (QR Instore V2)
      • /instore/orders/qr/seller/collectors (QR Dinámico)
      • /point/integration-api/devices/{id}/payment-intents (Point)
    • If the integration uses /v1/payments (Online): flag as technical debt if it is a server-side card payment (Checkout API / Marketplace). Do not suggest /mp-integrate migrate for Online — migration for those products is out of scope for this plugin.
    • Exception 1: Checkout Pro stays on preferences (the Orders API does not exist for Checkout Pro). Do not flag /checkout/preferences as legacy.
    • Exception 2: Bricks uses /v1/payments correctly (server-side after CardPayment tokenization). Do not flag /v1/payments calls in files that also contain CardPayment or onSubmit as legacy.
  • Products in use: Checkout Pro/API, Bricks, Subscriptions, Marketplace, etc. — derive from endpoint patterns and request payloads.

Step 2 — Run the official quality checklist

Skip this step for scope=security. For every other scope that includes official quality criteria, apply Step 0 immediately before the following call.

Call mcp__plugin_mercadopago_mcp__quality_checklist. The response defines:

  • Required fields — must be implemented to meet Mercado Pago's quality bar.
  • Best practices — recommended improvements.

For every item returned (do not summarize, do not skip):

  1. Search the codebase with Grep/Read for evidence of the item (a field, a header, a behavior).
  2. Mark each item Implemented, Missing, or Partial with a one-line justification (the file/line that proves the verdict).

Step 3 — Cross-cutting security checklist

These items are not always part of quality_checklist but are mandatory for any production integration. Always evaluate them:

# Check How to verify
1 Access token in process.env / equivalent — never hardcoded Grep for APP_USR- / TEST- outside .env* and test fixtures
2 .env is in .gitignore, .env.example is not Read .gitignore
3 Webhook handler validates x-signature (HMAC-SHA256) See mp-webhooks skill — Grep for x-signature, x-request-id, createHmac
4 HTTPS enforced for back_url and notification_url Grep for http:// in URL building
5 Payment status verified server-side after redirect Look for a server-side fetch of /v1/payments/{id} or /v1/orders/{id} after back_url
6 Idempotency key sent on payment/order creation Grep for X-Idempotency-Key or SDK equivalent
7 external_reference set on every preference/order Grep for external_reference
8 Test user credentials not committed to production deploy Confirm test credentials are loaded from a separate env file or vault
9 sandbox_init_point not used anywhere Grep for sandbox_init_point — flag any match as a bug; Mercado Pago has no sandbox, the URL is invalid in all environments

Step 4 — Run quality_evaluation (when compatible)

mcp__plugin_mercadopago_mcp__quality_evaluation requires a real payment_id. Run it when the integration used the Payments API and produced a payment ID.

Only after the developer provides the ID, apply Step 0 immediately before this call.

Integration uses Action
Payments API (/v1/payments) Ask the developer for a recent test payment_id, then call mcp__plugin_mercadopago_mcp__quality_evaluation with it.
Orders API only Skip — incompatible. Mention in the report.
mcp__plugin_mercadopago_mcp__quality_evaluation(
  payment_id="<recent_test_payment_id>"
)

If the developer doesn't have a payment ID, skip and note in the report: "quality_evaluation: skipped — no payment_id provided."


Step 4.5 — Homologation form (final step before production)

After quality_evaluation (or if it was skipped), offer the homologation form to the developer:

"Before switching to production credentials, complete the official homologation checklist. This certifies your integration and activates it for production."

  1. If the developer accepts the offer, apply Step 0 immediately before calling mcp__plugin_mercadopago_mcp__form_homologation with action="get_form", product_id (from detected product), site_id (from detected country), lang, is_ca (true for Checkout API / Bricks).
  2. Present each step/question to the developer via AskUserQuestion. Collect answers.
  3. When all questions are answered, call with action="submit" and the collected form_values.
  4. On success: congratulate the developer and confirm the integration is certified.

If the developer skips: note it in the Implementation Report under "Needs attention": "Homologation form not submitted — required before production deployment.".


Step 5 — Render the Implementation Report (MANDATORY final step)

After Steps 1–4 are complete, always render an Implementation Report as the last block of the output. This is the deliverable the developer keeps — it summarizes what's done, what's pending, and what to do next. Do not skip it, do not summarize it in prose; render the structured block below verbatim.

The report is the source of truth for the developer's next session: it tells them exactly what was verified, what was flagged, and the next concrete action. Without it, the review feels open-ended and the developer doesn't know if they can ship.


Output format

## Mercado Pago Integration Review

**Scope**: {full | security | webhooks | checkout | qr | subscriptions | marketplace | quality}
**API detected**: {Payments API | Orders API | both}
**Products detected**: {list}
**Files analyzed**: {list}

### CRITICAL
- {issues that block production or expose credentials}

### WARNINGS
- {issues that may cause incidents but do not block release}

### PASS
- {items correctly implemented}

### Quality Standards

{If `quality_checklist` ran: render every official item below. If it was not requested, write `Not requested for this scope.` If authentication failed, write `Not verified — MCP connection was unavailable.` Do not fabricate rows or scores.}

#### Required fields
| # | Field | Description | Status | Evidence |
|---|-------|-------------|--------|----------|
| 1 | … | … | Implemented / Missing / Partial | path:line |

#### Best practices
| # | Practice | Description | Status | Evidence |
|---|----------|-------------|--------|----------|
| 1 | … | … | Implemented / Missing / Partial | path:line |

### Security checklist (cross-cutting)
| # | Check | Status | Evidence |
|---|-------|--------|----------|

### Recommendations
- {actionable, ordered by impact}

**Summary**: {X/Y required fields implemented and Z/W best practices adopted, if verified; otherwise `Official quality: not requested/not verified`}. {S}/9 security checks pass.

{Offer `quality_evaluation` only for a compatible Payments API review where the developer requested MCP-backed quality analysis.}

---

## Implementation Report

### Verified
- [x] {item that passed — e.g., "Webhook handler validates x-signature with HMAC-SHA256"}
- [x] {next passing item}

### Needs attention
- [ ] {actionable item with file:line — e.g., "Add idempotency key to POST /v1/orders at api/orders.js:42"}
- [ ] {next pending item}
- [ ] {if legacy `/v1/payments` is detected — e.g., "Migrate POST /v1/payments to the Orders API (POST /v1/orders) at api/payments.js:42. The Payments API is being deprecated."}

### Blockers (must fix before production)
- [ ] {critical item — e.g., "Hardcoded APP_USR- token in config/mp.js:8 — move to env"}

### Next steps
1. {The single most impactful action the developer should take next}
2. {Follow-up actions in priority order}
3. Re-run `/mp-review` after fixes to confirm the report.

### Resources used
- Local: codebase inspection + cross-cutting security floor
- MCP: `quality_checklist` (include only if called, with date/time)
- MCP: `quality_evaluation` (include only if called, with the payment_id used)
- MCP: `form_homologation` (include only if called)
- Skill: `mp-review` v4.3.2

**Scores**: {X/Y required and Z/W best practices if verified; otherwise `official quality: N/A`}, {S}/9 security. **Verdict**: {Ready for production | Needs fixes | Blocked | Partial — MCP checks not verified}.

What this skill does NOT do

  • It does not generate or scaffold code. Use mp-integrate.
  • It does not call APIs that mutate state. quality_evaluation is read-only and only suggested.
  • It does not invent official quality criteria offline. The fixed security floor is local; official criteria are fetched only when that MCP-backed scope is requested.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。