MCP Integration

Usage

How to ask the agent for an integration, and what it will ask you before writing code.

With the plugin installed, ask your agent for the integration — via the skill command or in natural language.

Invoke the plugin

With the skill command (Claude):

/tonder-web-sdk-integrator Add embedded card payment to this checkout. Keep the existing amount input and deposit button.

Or in natural language:

Use the Tonder Web SDK plugin to add embedded card payments to this checkout. Keep the existing amount input and deposit button.

More examples:

Use Tonder Web SDK to add saved-card payments to this React checkout.
Use Tonder Web SDK to add card enrollment to this Angular account settings page.
Use Tonder Web SDK to add payment methods and SafetyPay bank selection to this HTML checkout.

What to expect

The plugin doesn't edit blindly: it inspects your project first and then asks you anything it can't infer with certainty, one decision at a time:

DecisionOptions
FrameworkHTML/static · React · Angular (if ambiguous, it asks you to confirm)
Target page/componentWhere the checkout goes, when several candidates exist
Payment flowCard payment · Enrollment · Saved cards · Payment methods · SafetyPay banks
Presentation modeembedded (SDK modal/iframe inside your page) · redirect (navigates to the hosted step and returns to your return_url)
SDK loadingcdn (browser script) · npm (package via your bundler)
UXTonder's default configuration · custom options (styles, callbacks, idempotency_key, metadata)

With the decisions made, it implements only the selected flow, validates that your code never collects raw card data, and closes with the changed files, the validation run, and setup notes.

PCI safety. Generated integrations never collect raw PAN, CVV, or expiration data in merchant-owned inputs — always the secure fields rendered by the Tonder SDK.

The tonder-docs MCP

The plugin bundles a local MCP server the agent uses as its only documentation source. It serves versioned snapshots of the public Web SDK README.

Tools

ToolWhat it returns
get_integration_recipeThe integration recipe for the chosen framework, flow, and presentation mode
get_sdk_api_referenceMethod signatures, payloads, CDN/npm setup, and customization details
get_error_referenceThe SDK error reference for handling and explanation
get_payment_status_referenceThe payment status reference

Prompts

PromptPurpose
integrate-web-sdk-card-paymentGuides the card payment integration
integrate-web-sdk-saved-cardsGuides the saved-cards integration

MCP boundaries. tonder-docs does not process payments, store credentials, or access merchant customer data — it only serves documentation.

After the integration

The plugin reminds you when it finishes, but this is your operational checklist:

  1. Configure your Tonder public API key (see Authentication).
  2. Keep the idempotency_key stable per checkout attempt so retries are safe.
  3. Configure your webhooks in the dashboard before fulfilling orders (see Webhooks).
  4. Update the environment/CDN values when moving from sandbox to production (see Environments).

Next steps

Was this page helpful?

On this page