Add partner integration guides#770
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
brendanjryan
requested changes
Jul 2, 2026
| import { Agent } from 'agents' | ||
| import { tempo } from 'mppx/client' | ||
| import { McpClient } from 'mppx/mcp/client' | ||
| import { account } from './payments' |
Collaborator
There was a problem hiding this comment.
what is this local import? can we just inline this?
Member
Author
There was a problem hiding this comment.
it makes a little more sense in the rendered guide - but the "account" is created once on line 17 and then used on line 38 and 62 - so would have to inline in two places wdyt.
Member
Author
There was a problem hiding this comment.
lmk what you think this is the only comment i didnt address
brendanjryan
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Vercel AI SDK, Cloudflare Agents, and official MCP SDK guides under Partner Integrations for using mppx with paid MCP tools and paid HTTP requests.
The Vercel guide shows the shared Mppx.create setup, MCP tool calls through @ai-sdk/mcp, and a normal AI SDK tool that calls https://mpp.dev/api/ping/paid. The Cloudflare guide shows McpClient.wrap for MCP calls and Mppx.create for payment-aware fetch calls. The official MCP SDK guide shows the same flow with Client and StreamableHTTPClientTransport.
All guides link to managing agent spend for scoped runtime payment controls.
Validation