Skip to content

Add MPP integration page#108

Merged
Haakam21 merged 2 commits intomainfrom
fern/add-mpp-integration
Mar 18, 2026
Merged

Add MPP integration page#108
Haakam21 merged 2 commits intomainfrom
fern/add-mpp-integration

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Mar 18, 2026

Add MPP (Stripe Machine Payments Protocol) integration page, modeled after the existing x402 integration.


Summary by cubic

Adds an MPP (Stripe Machine Payments Protocol) integration page to docs with a quickstart for agentmail + mppx, updates the Integrations nav, and points MPP docs to mpp.dev. This helps users enable per-request payments without API keys.

  • New Features
    • New page: pages/integrations/mpp.mdx with prerequisites, install (agentmail, mppx, viem), quickstart code, “How it works”, and resources (MPP docs on mpp.dev).
    • Navigation updated in fern/docs.yml (Integrations > MPP with credit-card icon).

Written for commit 6a5d035. Summary will update on new commits.

@github-actions
Copy link

@fern-api
Copy link
Contributor Author

fern-api bot commented Mar 18, 2026

Requested by: Haakam Aujla
Slack thread: View conversation

@github-actions
Copy link

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="fern/pages/integrations/mpp.mdx">

<violation number="1" location="fern/pages/integrations/mpp.mdx:38">
P2: Disable MPP's default global fetch polyfill here. `AgentMailClient({ mppx })` already consumes `mppx.fetch`, so leaving the default on adds an unnecessary process-wide side effect for unrelated requests.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.


const account = privateKeyToAccount(PRIVATE_KEY);

export const mppx = Mppx.create({ methods: [tempo({ account })] });
Copy link

@cubic-dev-ai cubic-dev-ai bot Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Disable MPP's default global fetch polyfill here. AgentMailClient({ mppx }) already consumes mppx.fetch, so leaving the default on adds an unnecessary process-wide side effect for unrelated requests.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At fern/pages/integrations/mpp.mdx, line 38:

<comment>Disable MPP's default global fetch polyfill here. `AgentMailClient({ mppx })` already consumes `mppx.fetch`, so leaving the default on adds an unnecessary process-wide side effect for unrelated requests.</comment>

<file context>
@@ -0,0 +1,83 @@
+
+const account = privateKeyToAccount(PRIVATE_KEY);
+
+export const mppx = Mppx.create({ methods: [tempo({ account })] });
+
+
</file context>
Fix with Cubic

@Haakam21 Haakam21 merged commit 3296517 into main Mar 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant